> On May 29, 2015, at 9:23 AM, Cohen, Eugene <eug...@hp.com> wrote:
> 
> Dear edk2 tools experts,
>  
> We are trying to invoke Signtool to sign applications (module type 
> UEFI_APPLICATION) in the edk2 build with a development key.   After reviewing 
> the FDF and build specifications I’ve been unable to find a way to invoke 
> this correctly.
>  
> We were trying to create a build rule using this sort of syntax and it failed 
> miserably:
>  
> [Efi-Image.UEFI_APPLICATION]
>     <InputFile>
>         ?.efi, ?.EFI, ?.Efi
>  
>     <OutputFile>
>         $(BIN_DIR)(+)$(MODULE_NAME).efi
>  
>     <Command>
>          "$(SIGNTOOL)"  $(SIGNTOOL_FLAGS) $(SIGNTOOL_CERT) ${src}
>  
>  
> Looking at the build specification it’s hard for me to tell how these rules 
> really work.
>  

Its a little whacky. I usually end up looking in the makefile to “see what 
happened”..

> I’d appreciate some recommendations on how to go about doing this.  I’d 
> prefer a solution that is in the platform FDF file so we can customize this 
> for each build.
>  

It looks like are trying to copy the UEFI_OPTIONROM rule?

https://svn.code.sf.net/p/edk2/code/trunk/edk2/BaseTools/Conf/build_rule.template
[EFI-Image-File]
    <InputFile>
        ?.efi, ?.Efi, ?.EFI

    <OutputFile>

    <Command>
[Efi-Image.UEFI_OPTIONROM]
    <InputFile>
        ?.efi, ?.EFI, ?.Efi

    <OutputFile>
        $(BIN_DIR)(+)$(MODULE_NAME).rom

    <Command>
        $(OPTROM) -i $(PCI_DEVICE_ID) -f $(PCI_VENDOR_ID) -l $(PCI_CLASS_CODE) 
-r $(PCI_REVISION) -o $dst $(OPTROM_FLAGS) $src

What happens if you make <OutputFile> extension something other than .efi? Like 
.sefi?Or omit <OutputFile>?

Thanks,

Andrew Fish


> Your help is greatly appreciated.
>  
> Thanks,
>  
> Eugene
>  
> ------------------------------------------------------------------------------
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net <mailto:edk2-devel@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/edk2-devel 
> <https://lists.sourceforge.net/lists/listinfo/edk2-devel>
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to