public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Feng, Bob C" <bob.c.feng@intel.com>
To: Laszlo Ersek <lersek@redhat.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Gao, Liming" <liming.gao@intel.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Patch] BaseTools: Remove unused logic for EDKI
Date: Mon, 14 Jan 2019 11:15:34 +0000	[thread overview]
Message-ID: <08650203BA1BD64D8AD9B6D5D74A85D1600585C3@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <996f219e-a448-e640-6582-4a0fb2e90083@redhat.com>

Hi Laszlo,

I sent out a patch for review. Sorry for break the build.

Thanks,
bob

-----Original Message-----
From: Laszlo Ersek [mailto:lersek@redhat.com] 
Sent: Monday, January 14, 2019 6:09 PM
To: Feng, Bob C <bob.c.feng@intel.com>; edk2-devel@lists.01.org
Cc: Gao, Liming <liming.gao@intel.com>; Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [edk2] [Patch] BaseTools: Remove unused logic for EDKI

Hi Bob,

On 01/14/19 07:54, Feng, Bob C wrote:
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350
> Remove gEcpSource global variable in python tool.
>
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Bob Feng <bob.c.feng@intel.com>
> Cc: Liming Gao <liming.gao@intel.com>
> ---
>  BaseTools/Source/Python/Workspace/DscBuildData.py | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py 
> b/BaseTools/Source/Python/Workspace/DscBuildData.py
> index 93751678f9..9881dbe556 100644
> --- a/BaseTools/Source/Python/Workspace/DscBuildData.py
> +++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
> @@ -707,11 +707,10 @@ class DscBuildData(PlatformBuildClassObject):
>          return self.DefaultStores
>
>      def OverrideDuplicateModule(self):
>          RecordList = self._RawData[MODEL_META_DATA_COMPONENT, self._Arch]
>          Macros = self._Macros
> -        Macros["EDK_SOURCE"] = GlobalData.gEcpSource
>          Components = {}
>          for Record in RecordList:
>              ModuleId = Record[6]
>              file_guid = self._RawData[MODEL_META_DATA_HEADER, self._Arch, None, ModuleId]
>              file_guid_str = file_guid[0][2] if file_guid else "NULL"
>

this patch (commit 4523bc82ae8e) breaks (minimally) the ArmVirtPkg/ArmVirtQemu build:

> build.py...
>  : error C0DE: Unknown fatal error when processing 
> [OvmfPkg/Library/QemuFwCfgS3Lib/BaseQemuFwCfgS3LibNull.inf [AARCH64, 
> GCC5, NOOPT]]
>
> (Please send email to edk2-devel@lists.01.org for help, attaching 
> following call stack trace!)
>
> (Python 2.7.5 on linux2) Traceback (most recent call last):
>   File "BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2403, in Main
>     MyBuild.Launch()
>   File "BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2137, in Launch
>     self._MultiThreadBuildPlatform()
>   File "BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1927, in _MultiThreadBuildPlatform
>     CmdListDict = self._GenFfsCmd()
>   File "BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1883, in _GenFfsCmd
>     GenFfsDict = GenFds.GenFfsMakefile('', GlobalData.gFdfParser, self, self.ArchList, GlobalData)
>   File "BaseTools/Source/Python/GenFds/GenFds.py", line 544, in GenFfsMakefile
>     GenFdsGlobalVariable.SetEnv(FdfParserObject, WorkSpace, ArchList, GlobalData)
>   File "BaseTools/Source/Python/GenFds/GenFdsGlobalVariable.py", line 343, in SetEnv
>     GenFdsGlobalVariable.EdkSourceDir = 
> GlobalData.gGlobalDefines["EDK_SOURCE"]
> KeyError: 'EDK_SOURCE'

The "EDK_SOURCE" key is no longer added to the dictionary, but "GenFds/GenFdsGlobalVariable.py" still references it. Can you please fix it quickly; the build is broken.

(This was caught by Gerd's Jenkins CI setup.)

... At least I *believe* that this patch is what causes the symptom.

Thanks,
Laszlo

      reply	other threads:[~2019-01-14 11:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-14  6:54 [Patch] BaseTools: Remove unused logic for EDKI Feng, Bob C
2019-01-14  7:22 ` Gao, Liming
2019-01-14 10:08 ` Laszlo Ersek
2019-01-14 11:15   ` Feng, Bob C [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08650203BA1BD64D8AD9B6D5D74A85D1600585C3@SHSMSX101.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox