From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 0752520D770AE for ; Tue, 25 Apr 2017 05:48:26 -0700 (PDT) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 25 Apr 2017 05:48:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,249,1488873600"; d="scan'208";a="91931492" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.20]) by orsmga005.jf.intel.com with ESMTP; 25 Apr 2017 05:48:25 -0700 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng Date: Tue, 25 Apr 2017 20:48:20 +0800 Message-Id: <1493124500-19000-3-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1493124500-19000-1-git-send-email-star.zeng@intel.com> References: <1493124500-19000-1-git-send-email-star.zeng@intel.com> Subject: [RFC 2/2] Example: The PCDs configuring for multiple SKUs with sub SKU support 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: Tue, 25 Apr 2017 12:48:26 -0000 --- Nt32Pkg/Nt32Pkg.dsc | 116 ++++++++-------------------------------------------- 1 file changed, 16 insertions(+), 100 deletions(-) diff --git a/Nt32Pkg/Nt32Pkg.dsc b/Nt32Pkg/Nt32Pkg.dsc index 573875fe4b95..7b468c18ad7a 100644 --- a/Nt32Pkg/Nt32Pkg.dsc +++ b/Nt32Pkg/Nt32Pkg.dsc @@ -86,16 +86,15 @@ [Defines] ################################################################################ [SkuIds] 0|DEFAULT # The entry: 0|DEFAULT is reserved and always required. - 1 | Sku1 # CpuA + CsA + FruA - 2 | Sku2 # CpuA + CsA + FruB - 3 | Sku3 # CpuA + CsB + FruA - 4 | Sku4 # CpuA + CsB + FruB - 5 | Sku5 # CpuB + CsA + FruA - 6 | Sku6 # CpuB + CsA + FruB - 7 | Sku7 # CpuB + CsB + FruA - 8 | Sku8 # CpuB + CsB + FruB - 9 | Sku9 # CpuA + CsB - 10 | Sku10 # CpuB + CsB + CpuSku | CpuSkuA | DEFAULT + CpuSku | CpuSkuB | CpuSkuA + CsSku | CsSkuA | DEFAULT + CsSku | CsSkuB | CsSkuA + FruSku | FruSkuA | DEFAULT + FruSku | FruSkuB | FruSkuA + + Combo1 | (CpuSku , CsSku, FruSku) + Combo2 | (CpuSku , CsSkuB) ################################################################################ # @@ -348,109 +347,26 @@ [PcdsDynamicDefault.Common.DEFAULT] gXXXPkgTokenSpaceGuid.PcdFruConfig2|FALSE gXXXPkgTokenSpaceGuid.PcdFruConfig3|FALSE -[PcdsDynamicDefault.Common.Sku1] +[PcdsDynamicDefault.Common.CpuA] gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCpuConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCsConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdFruConfig3|FALSE - -[PcdsDynamicDefault.Common.Sku2] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCpuConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCsConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig3|TRUE -[PcdsDynamicDefault.Common.Sku3] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCpuConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdFruConfig3|FALSE - -[PcdsDynamicDefault.Common.Sku4] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCpuConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig3|TRUE - -[PcdsDynamicDefault.Common.Sku5] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE +[PcdsDynamicDefault.Common.CpuB] gXXXPkgTokenSpaceGuid.PcdCpuConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCsConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdFruConfig3|FALSE -[PcdsDynamicDefault.Common.Sku6] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig3|TRUE +[PcdsDynamicDefault.Common.CsA] gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCsConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig3|TRUE -[PcdsDynamicDefault.Common.Sku7] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE +[PcdsDynamicDefault.Common.CsB] gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdFruConfig3|FALSE -[PcdsDynamicDefault.Common.Sku8] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE +[PcdsDynamicDefault.Common.FruA] gXXXPkgTokenSpaceGuid.PcdFruConfig1|TRUE gXXXPkgTokenSpaceGuid.PcdFruConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdFruConfig3|TRUE -[PcdsDynamicDefault.Common.Sku9] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - # gXXXPkgTokenSpaceGuid.PcdCpuConfig3|FALSE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE - -[PcdsDynamicDefault.Common.Sku10] - gXXXPkgTokenSpaceGuid.PcdCpuConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCpuConfig3|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig1|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig2|TRUE - gXXXPkgTokenSpaceGuid.PcdCsConfig3|TRUE +[PcdsDynamicDefault.Common.FruB] + gXXXPkgTokenSpaceGuid.PcdFruConfig3|TRUE ################################################################################################### # -- 2.7.0.windows.1