From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F081521A04820 for ; Fri, 31 Mar 2017 19:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1491013483; x=1522549483; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=bwk4yYEGm/kYRPP/u1BuaqtrHRHFreaFYOedpUQ8fhg=; b=BRXGyv2JKV2Gj43X3u9uu0+om39+Gt1I+e6pgBzgdc+j5tF32txQA/WR CEcdFCpiDcQnKo/NzU0q7SB1m7YcxQ==; Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Mar 2017 19:24:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,255,1486454400"; d="scan'208";a="83347909" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga006.fm.intel.com with ESMTP; 31 Mar 2017 19:24:43 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 31 Mar 2017 19:24:43 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX114.amr.corp.intel.com (10.18.116.8) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 31 Mar 2017 19:24:42 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.212]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.253]) with mapi id 14.03.0248.002; Sat, 1 Apr 2017 10:24:41 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [Patch] BaseTools: Enhance StrDefs.h to include ImageDefs.h Thread-Index: AQHSqiopBS2h/ayKfkeEKYXir9VnuaGvyeXw Date: Sat, 1 Apr 2017 02:24:40 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D707937@shsmsx102.ccr.corp.intel.com> References: <1490970115-50652-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1490970115-50652-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: Enhance StrDefs.h to include ImageDefs.h X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 02:24:44 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: Zhu, Yonghong >Sent: Friday, March 31, 2017 10:22 PM >To: edk2-devel@lists.01.org >Cc: Gao, Liming >Subject: [Patch] BaseTools: Enhance StrDefs.h to include ImageDefs.h > >Enhance StrDefs.h to include ImageDefs.h for VfrCompiler to support >IMAGE_TOKEN usage. > >Cc: Liming Gao >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Yonghong Zhu >--- > BaseTools/Source/Python/AutoGen/GenC.py | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/BaseTools/Source/Python/AutoGen/GenC.py >b/BaseTools/Source/Python/AutoGen/GenC.py >index 96b1459..0fb6b9f 100644 >--- a/BaseTools/Source/Python/AutoGen/GenC.py >+++ b/BaseTools/Source/Python/AutoGen/GenC.py >@@ -1979,10 +1979,13 @@ def CreateCode(Info, AutoGenC, AutoGenH, >StringH, UniGenCFlag, UniGenBinBuffer, > if (Pcd.TokenCName, Pcd.TokenSpaceGuidCName) in >GlobalData.MixedPcd[PcdItem]: > TokenCName =3D PcdItem[0] > break > GuidMacros.append('#define %s %s' % >('_PCD_VALUE_'+TokenCName, Value)) > >+ if Info.IdfFileList: >+ GuidMacros.append('#include "%sImgDefs.h"' % Info.Name) >+ > if GuidMacros: > StringH.Append('\n#ifdef VFRCOMPILE\n%s\n#endif\n' % >'\n'.join(GuidMacros)) > > StringH.Append("\n#endif\n") > AutoGenH.Append('#include "%s"\n' % FileName) >-- >2.6.1.windows.1