Greetings,

I have an application package that uses the
ConvertDevicePathToText/ConvertTextToDevicePath functions of the
EFI_DEVICE_PATH_TO_TEXT_PROTOCOL/EFI_DEVICE_PATH_FROM_TEXT_PROTOCOL
respectively. It was found that UEFI bioses in the wild frequently do not
include these protocols. If the first iteration of the app the solution was
to use a shell script to run the app which loaded the DevicePathDxe to make
these protocols available. This was deemed a problematic implementation.
The solution was to copy the relevant files in
MdeModulePkg/Universal/DevicePathDxe/ into that app's package and build the
needed functions into the app. This works but it means duplicated code
outside of the EDK2 tree which is a nuisance. Really, all that is needed is
to simply link to the need object files in
MdeModulePkg/Universal/DevicePathDxe/. My problem is that I have not found
a way to do this with build. I have included MdeModulePkg/MdeModulePkg.dec
in the [Packages] section of the app .inf file. However, I don't see a way
to instruct build to make
MdeModulePkg/Universal/DevicePathDxe/.DevicePath.h part of the include path
so I can simply statically link against the EDK2 library. Can this be done
with build?

TIA!
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to