From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=148.163.129.52; helo=dispatch1-us1.ppe-hosted.com; envelope-from=tpilar@solarflare.com; receiver=edk2-devel@lists.01.org Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 40AA7211616A2 for ; Tue, 2 Oct 2018 06:09:53 -0700 (PDT) X-Virus-Scanned: Proofpoint Essentials engine Received: from webmail.solarflare.com (webmail.solarflare.com [12.187.104.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1-us3.ppe-hosted.com (Proofpoint Essentials ESMTP Server) with ESMTPS id EB492B40079 for ; Tue, 2 Oct 2018 13:09:51 +0000 (UTC) Received: from tp-desktop.uk.solarflarecom.com (10.17.20.51) by ocex03.SolarFlarecom.com (10.20.40.36) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Oct 2018 06:09:49 -0700 To: "edk2-devel@lists.01.org" From: "Tomas Pilar (tpilar)" Message-ID: Date: Tue, 2 Oct 2018 14:09:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 X-Originating-IP: [10.17.20.51] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.5.1010-24130.005 X-TM-AS-Result: No-13.119100-4.000000-10 X-TMASE-MatchedRID: VJEx4ytxQeKsKNgx4GNeOrMjW/sniEQKf2g6KJZtxl29K1jOJyKSa1Un QAOplXiG8IW0ZLh0Dxr946TpKTgKBP/8zeX9WucyQML2WBMvCAV5y+Nu7/EOOhSVYgoSgYGZRR5 GEZjhUx2iig6cXfXQYqz57T9V2nussbrrpvzFsu+QOktEo73GFF3sro2+2l4EN2WxgvaD/zvzF/ nUc7t79WuClnnkmsasVNyxJG9+U00g8yzBUoLSh6b8GfRpncAzGxTsKkwM4IANmPMcsvd5Fu4oo uvxmgWopGbio6vxnOY7AagIFXZW52Nwa9aM37neNs3S39zaoXa49IoBojnioaMp6Bv7l3BNo8WM kQWv6iVJeFvFlVDkf46HM5rqDwqt09599dmobv1vTwFBESTVR0mbvplEpxee/omX3RBWkBcBevL k7TkpRQ== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--13.119100-4.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.5.1010-24130.005 X-MDID: 1538485792-d3Q3kwMI30bo Subject: Problems with FDF for OptionROM when using GCC X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2018 13:09:53 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Content-Language: en-US Hi, I am trying to move the OptionROM flash specification in my package to a FDF file. I use the following snippet to define the OptionROM: [Defines]   FDF_VERSION = 0x00000100   FDF_SPECIFICATION = 0x0001001B   [OptionROM.SfcNicDriver]   INF USE = $(ARCH) SfcPkg/SfcNicDriver/SfcNicDriver.inf {     PCI_VENDOR_ID             = 0x1924     PCI_DEVICE_ID             = 0x0903     PCI_CLASS_CODE            = 0x02 # Network Controller     PCI_REVISION              = 0x00 # Vendor defined Revision ID     PCI_COMPRESS              = TRUE   } which results in a error F003: Don't Find common rule RULE.COMMON.UEFI_DRIVER for INF SfcPkg/SfcNicDriver/SfcNicDriver.inf so then I cargo cult copy an example rule from FDF: [Rule.Common.UEFI_DRIVER] FILE DRIVER = $(NAMED_GUID) {   COMPRESS PI_STD {     GUIDED {       PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi       UI STRING = "$(MODULE_NAME)" Optional       VERSION STRING = "$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)     }   } } which results in the following error: GenFds.py...  : error C0DE: Tools code failure         Please send email to edk2-devel@lists.01.org for help, attaching following call stack trace! Traceback (most recent call last):   File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/local/sauce/uefi/BuildTree/BaseTools/Source/Python/GenFds/GenFds.py", line 735, in     r = main()   File "/local/sauce/uefi/BuildTree/BaseTools/Source/Python/GenFds/GenFds.py", line 356, in main     RaiseError=False   File "/home/tp/sauce/uefi/BuildTree/BaseTools/Source/Python/Common/EdkLogger.py", line 203, in error     raise FatalError(ErrorCode) Common.BuildToolError.FatalError: 49374 build.py...  : error 7000: Failed to execute command         GenFds -f /home/tp/sauce/uefi/BuildTree/SfcPkg/SfcPkg.fdf --conf=/home/tp/sauce/uefi/BuildTree/Conf -o /home/tp/sauce/uefi/BuildTree/Build/SfcPkg/DEBUG_GCC49 -t GCC49 -b DEBUG -p /home/tp/sauce/uefi/BuildTree/SfcPkg/SfcPkg.dsc -a X64 -D "EFI_SOURCE=/home/tp/sauce/uefi/BuildTree/EdkCompatibilityPkg" -D "EDK_SOURCE=/home/tp/sauce/uefi/BuildTree/EdkCompatibilityPkg" -D "TOOL_CHAIN_TAG=GCC49" -D "TOOLCHAIN=GCC49" -D "TARGET=DEBUG" -D "FAMILY=GCC" -D "WORKSPACE=/home/tp/sauce/uefi/BuildTree" -D "EDK_TOOLS_PATH=/home/tp/sauce/uefi/BuildTree/BaseTools" -D "ARCH=X64" -D "ECP_SOURCE=/home/tp/sauce/uefi/BuildTree/EdkCompatibilityPkg" [/local/sauce/uefi/BuildTree] - Failed - Build end time: 14:07:26, Oct.02 2018 Build total time: 00:00:04 Help?