On Oct 15, 2014, at 2:48 AM, Gurinder Singh <[email protected]>
wrote:
> Hi guys,
>
> I tried to get the resource compiler invoked in the build process. However, I
> am not quite sure how I can link the .res file generated by the resource
> compiler to the efi file (you need to link to the .res file for the file
> metadata to get baked into the binary). How do I hook into the EDKII build
> chain and get this to work? Any ideas?
>
Gurinder,
The edksetup.bat/edksetup.sh script will copy the BaseTools/Conf/*.template to
Conf/*.txt if the Conf/*.txt files do not exist.
So you can add rules for new file types, or change the build steps in
build_rule.*, and the compiler location an flags are set in tools_de.*
https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools/Conf/build_rule.template
https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools/Conf/tools_def.template
Note there is some support for resource compiler to support Hii
[Hii-Binary-Package.UEFI_HII]
<InputFile>
*.hpk
<OutputFile.MSFT, OutputFile.INTEL, OutputFile.GCC>
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.lib
<OutputFile.XCODE, OutputFile.RVCT, OutputFile.ARMGCC>
$(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
<Command.MSFT, Command.INTEL>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiipackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
"$(RC)" /Fo${dst} $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc
<Command.GCC>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
"$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}
<Command.XCODE, Command.RVCT, Command.ARMGCC, Command.ARMLINUXGCC>
GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID)
--hiibinpackage $(HII_BINARY_PACKAGES)
Thanks,
Andrew Fish
> Thanks in advance.
>
> -Gurinder
>
>
>
> On Mon, Oct 13, 2014 at 4:45 PM, Gurinder Singh
> <[email protected]> wrote:
> Hi guys,
>
> How can I set the Windows files system fields like "File Version", "File
> Description", "Product Name", "Copyright" etc. on an .efi binary I'm building?
>
> I know I can do this by creating a resource file containing these fields and
> then linking it to the .efi. But I was wondering if there's some standard way
> of achieving this in EDKII (perhaps by setting some fields in the .inf file
> or something).
>
> Thanks in advance.
>
> Regards,
> Gurinder
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://p.sf.net/sfu/Zoho_______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel