From nobody Sat Nov 2 08:32:47 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zoho.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1494387834273994.6807119710096; Tue, 9 May 2017 20:43:54 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id DFE1221A1349E; Tue, 9 May 2017 20:43:51 -0700 (PDT) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 13BC821A6F107 for ; Tue, 9 May 2017 20:43:51 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2017 20:43:50 -0700 Received: from zwei4-mobl.ccr.corp.intel.com ([10.239.198.35]) by fmsmga005.fm.intel.com with ESMTP; 09 May 2017 20:43:49 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,317,1491289200"; d="scan'208";a="99577585" From: zwei4 To: edk2-devel@lists.01.org Date: Wed, 10 May 2017 11:43:44 +0800 Message-Id: <20170510034344.24924-1-david.wei@intel.com> X-Mailer: git-send-email 2.11.0.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3] GCC build scripts. 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: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 --- BuildBIOS.sh | 18 ++ Platform/BroxtonPlatformPkg/BuildAll.sh | 12 ++ Platform/BroxtonPlatformPkg/BuildBios.sh | 102 +++++------- Platform/BroxtonPlatformPkg/BuildIFWI.sh | 17 +- .../Common/Tools/GenBiosId/GenBiosId | Bin 0 -> 12236 bytes .../PlatformDsc/BuildOptions.EDKII.Gcc.dsc | 108 ++++++++++++ Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc | 181 +++++++++++++++++= ++++ 7 files changed, 376 insertions(+), 62 deletions(-) create mode 100644 BuildBIOS.sh create mode 100644 Platform/BroxtonPlatformPkg/Common/Tools/GenBiosId/GenB= iosId create mode 100644 Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.ED= KII.Gcc.dsc create mode 100644 Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc diff --git a/BuildBIOS.sh b/BuildBIOS.sh new file mode 100644 index 000000000..cc1cb783c --- /dev/null +++ b/BuildBIOS.sh @@ -0,0 +1,18 @@ +# +# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BS= D License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php +#=20 +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +# + +export WORKSPACE=3D`pwd` +export PACKAGES_PATH=3D$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WOR= KSPACE/Platform:$WORKSPACE/Platform/BroxtonPlatformPkg:$WORKSPACE/Silicon/B= roxtonSoC:$WORKSPACE/Platform/BroxtonPlatformPkg/Common + +. edksetup.sh + +./Platform/BroxtonPlatformPkg/BuildIFWI.sh APLI Release + diff --git a/Platform/BroxtonPlatformPkg/BuildAll.sh b/Platform/BroxtonPlat= formPkg/BuildAll.sh index 2a2afd686..8d5d803bb 100644 --- a/Platform/BroxtonPlatformPkg/BuildAll.sh +++ b/Platform/BroxtonPlatformPkg/BuildAll.sh @@ -1,3 +1,15 @@ +# +# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BS= D License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php +#=20 +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +# + + ##********************************************************************** ## Function define ##********************************************************************** diff --git a/Platform/BroxtonPlatformPkg/BuildBios.sh b/Platform/BroxtonPla= tformPkg/BuildBios.sh index be4400903..8702fbeaa 100644 --- a/Platform/BroxtonPlatformPkg/BuildBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBios.sh @@ -1,3 +1,14 @@ +# +# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BS= D License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php +#=20 +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +# + ##********************************************************************** ## Function define ##********************************************************************** @@ -12,12 +23,11 @@ echo -e $(date) ##********************************************************************** ## Initial Setup ##********************************************************************** -#WORKSPACE=3D$(pwd) -EDK_TOOLS_PATH=3D + Build_Flags=3D SV_String=3D_ exitCode=3D0 -Arch=3DIA32 +Arch=3DX64 =20 ## Initialize all the build flags to FALSE ## depending on the cmd line input, some will be set to TRUE prior to buil= ding @@ -59,11 +69,12 @@ fi =20 ## Override tools_def.txt #cp $WORKSPACE\BaseTools\Conf\tools_def.template $WORKSPACE\Conf\tools_def= .txt +#:: Override tools_def.txt +echo Creating Conf folder and build config files... +cp $WORKSPACE/BaseTools/Conf/target.template $WORKSPACE/Conf/target.txt +cp $WORKSPACE/BaseTools/Conf/tools_def.template $WORKSPACE/Conf/tools_def.= txt +cp $WORKSPACE/BaseTools/Conf/build_rule.template $WORKSPACE/Conf/build_rul= e.txt =20 -## Setup EDK environment. Edksetup puts new copies of target.txt, tools_de= f.txt, build_rule.txt in WorkSpace\Conf -## Also run edksetup as soon as possible to avoid it from changing environ= ment variables we're overriding -##. edksetup.sh > /dev/null -. edksetup.sh =20 ## Get gcc version to determine which tool_def.template to use. ## If gcc version is 4.6 or before, use default. If not, use new one. @@ -78,11 +89,10 @@ else fi =20 #make -C BaseTools > /dev/null -make -C BaseTools=20 =20 ## Define platform specific environment variables. -PLATFORM_NAME=3DBxtPlatformPkg -PLATFORM_PACKAGE=3DPlatform/BxtPlatformPkg +PLATFORM_NAME=3DBroxtonPlatformPkg +PLATFORM_PACKAGE=3DPlatform/BroxtonPlatformPkg EFI_SOURCE=3D$WORKSPACE EDK_SOURCE=3D$WORKSPACE =20 @@ -149,36 +159,16 @@ if [ "$2" =3D=3D "" ]; then fi =20 ## Remove the values for Platform_Type and Build_Target from BiosId.env an= d stage in Conf/ -cp $PLATFORM_PACKAGE/BiosId.env Conf/BiosId.env -sed -i '/^BOARD_ID/d' Conf/BiosId.env -sed -i '/^BUILD_TYPE/d' Conf/BiosId.env - -## BOARD_ID needs to be exactly 7 characters (GenBiosId.exe limitation) -echo "Setting $1 platform configuration and BIOS ID..." -if [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "$eNB_RVP" ]; then ## Lower case= to upper case - BOARD_ID=3D"$eNB_RVP"RVP - echo BOARD_ID =3D "$eNB_RVP"RVP >> Conf/BiosId.env - ENBDT_PF_BUILD=3DTRUE - PLATFORM_NAME=3DAplPlatSamplePkg - PLATFORM_PACKAGE=3DPlatform/AplPlatSamplePkg - -elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "$Phblt_RVP" ]; then - BOARD_ID=3D"$Phblt_RVP"RVP - echo BOARD_ID =3D "$Phblt_RVP"RVP >> Conf/BiosId.env - TABLET_PF_BUILD=3DTRUE - -elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "$Embd_RVP" ]; then - BOARD_ID=3D"$Embd_RVP"RVP - echo BOARD_ID =3D "$Embd_RVP"RVP >> Conf/BiosId.env - BYTI_PF_BUILD=3DTRUE - PLATFORM_PACKAGE=3DPlatform/IsgPlatPkg +cp $WORKSPACE/$PLATFORM_PACKAGE/BiosId.env $WORKSPACE/Conf/BiosId.env +sed -i '/^BOARD_ID/d' $WORKSPACE/Conf/BiosId.env +sed -i '/^BUILD_TYPE/d' $WORKSPACE/Conf/BiosId.env =20 -else - echo "Error - Unsupported PlatformType: $1" - echo "Please review the Help screen "/?"" - ErrorExit -fi - =20 + +BOARD_ID=3DMNW3 +echo BOARD_ID =3D MINNOW3 >> $WORKSPACE/Conf/BiosId.env +ENBDT_PF_BUILD=3DTRUE +PLATFORM_NAME=3DBroxtonPlatformPkg +PLATFORM_PACKAGE=3DPlatform/BroxtonPlatformPkg =20 Platform_Type=3D$1 =20 ## Create new DefineAtBuildMacros.dsc file @@ -209,11 +199,11 @@ fi if [ "$(echo $2 | tr 'a-z' 'A-Z')" =3D=3D "RELEASE" ]; then TARGET=3DRELEASE BUILD_TYPE=3DR - echo BUILD_TYPE =3D R >> Conf/BiosId.env + echo BUILD_TYPE =3D R >> $WORKSPACE/Conf/BiosId.env else TARGET=3DDEBUG BUILD_TYPE=3DD - echo BUILD_TYPE =3D D >> Conf/BiosId.env + echo BUILD_TYPE =3D D >> $WORKSPACE/Conf/BiosId.env fi =20 =20 @@ -221,14 +211,14 @@ fi ## Additional EDK Build Setup/Configuration ##********************************************************************** echo "Ensuring correct build directory is present for GenBiosId..." -ACTIVE_PLATFORM=3D$PLATFORM_PACKAGE/PlatformPkg.dsc +ACTIVE_PLATFORM=3D$PLATFORM_PACKAGE/PlatformPkgX64.dsc #TOOL_CHAIN_TAG=3DGCC47 MAX_CONCURRENT_THREAD_NUMBER=3D1 -sed -i '/^ACTIVE_PLATFORM/d' Conf/target.txt -sed -i '/^TARGET /d' Conf/target.txt -sed -i '/^TARGET_ARCH/d' Conf/target.txt -sed -i '/^TOOL_CHAIN_TAG/d' Conf/target.txt -sed -i '/^MAX_CONCURRENT_THREAD_NUMBER/d' Conf/target.txt +sed -i '/^ACTIVE_PLATFORM/d' $WORKSPACE/Conf/target.txt +sed -i '/^TARGET /d' $WORKSPACE/Conf/target.txt +sed -i '/^TARGET_ARCH/d' $WORKSPACE/Conf/target.txt +sed -i '/^TOOL_CHAIN_TAG/d' $WORKSPACE/Conf/target.txt +sed -i '/^MAX_CONCURRENT_THREAD_NUMBER/d' $WORKSPACE/Conf/target.txt echo ACTIVE_PLATFORM =3D $ACTIVE_PLATFORM >> Con= f/target.txt echo TARGET =3D $TARGET >> Con= f/target.txt echo TOOL_CHAIN_TAG =3D $TOOL_CHAIN_TAG >> Con= f/target.txt @@ -242,10 +232,9 @@ fi ### ### Update ASL path for GCC47 & 46 ### - echo "*_GCC46_*_ASL_PATH =3D \"wine $WORKSPACE/PlatformTools/ASL/iasl.e= xe\"" >> Conf/tools_def.txt - echo "*_GCC47_*_ASL_PATH =3D \"wine $WORKSPACE/PlatformTools/ASL/iasl.e= xe\"" >> Conf/tools_def.txt + ## Fix error due to '\' in OBJCOPY_ADDDEBUGFLAG GCC Common rule - echo DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debuglink=3D\$\(DE= BUG_DIR\)/\$\(MODULE_NAME\).debug >> Conf/tools_def.txt + echo DEBUG_*_*_OBJCOPY_ADDDEBUGFLAG =3D --add-gnu-debuglink=3D\$\(DE= BUG_DIR\)/\$\(MODULE_NAME\).debug >> $WORKSPACE/Conf/tools_def.txt ###=20 =20 ##********************************************************************** @@ -259,11 +248,9 @@ fi if [ -e "$BUILD_PATH/$Arch/BiosId.bin" ]; then rm -f $BUILD_PATH/$Arch/BiosId.bin fi -wine PlatformTools/GenBiosId/GenBiosId.exe -i Conf/BiosId.env -o $BUILD_PA= TH/$Arch/BiosId.bin +./Platform/BroxtonPlatformPkg/Common/Tools/GenBiosId/GenBiosId -i Conf/Bio= sId.env -o $BUILD_PATH/$Arch/BiosId.bin + =20 -echo "Running UniTool..." -## Scan the main CRB tree, excluding R8VlvDeviceSvRestrictedPkg folders -wine PlatformTools/UniTool/UniTool.exe -b -u -x Platform/BxtPlatformPkg P= latformSetupDxe/UqiList.uni 1>>Unitool.log 2>&1 =20 echo echo "**** Replace DebugLib.h to save space.... ****" @@ -272,17 +259,16 @@ cp PlatformTools/GCC/DebugLib.h Core/MdePkg/Include/L= ibrary/ echo echo "**** Copy ResetVector to original folder ****" echo "**** Due to nasm can't execute in Ubuntu ****" -cp PlatformTools/GCC/Vtf0/ResetVector.ia32.port80.raw $PLATFORM_PACKAGE/Ov= erride/UefiCpuPkg/ResetVector/Vtf0/Bin -cp PlatformTools/GCC/Vtf1/ResetVector.ia32.port80.raw $PLATFORM_PACKAGE/Ov= erride/UefiCpuPkg/ResetVector/Vtf1/Bin + =20 echo "Invoking EDK2 build..." -build $Build_Flags =20 +build $Build_Flags =20 ##********************************************************************** ## Post Build processing and cleanup ##********************************************************************** -grep "_PCD_VALUE_" $BUILD_PATH/IA32/$PLATFORM_PACKAGE/PlatformPei/Platform= Pei/DEBUG/AutoGen.h > FlashMap.h +grep "_PCD_VALUE_" $BUILD_PATH/IA32/BroxtonPlatformPkg/PlatformPei/Platfor= mPei/DEBUG/AutoGen.h > FlashMap.h =20 #echo "Running fce..." ## Extract Hii data from build and store in HiiDefaultData.txt diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPla= tformPkg/BuildIFWI.sh index 98b5b7141..df518287f 100644 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.sh +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.sh @@ -1,3 +1,15 @@ +# +# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
+# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BS= D License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php +#=20 +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +# + + ##********************************************************************** ## Function define ##********************************************************************** @@ -144,14 +156,11 @@ else IFWI_Suffix=3D"/S $3" fi =20 -# Go to root directory of work space.=20 -cd .. -cd .. =20 ## Build BIOS echo "=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D" echo "Build_IFWI: Calling BIOS build Script..." -./Platform/BroxtonPlatformPkg/BuildBios.sh $Build_Flags $Platform_Type $Bu= ild_Target +sh Platform/BroxtonPlatformPkg/BuildBios.sh $Build_Flags $Platform_Type $B= uild_Target =20 echo echo Finished Building BIOS. diff --git a/Platform/BroxtonPlatformPkg/Common/Tools/GenBiosId/GenBiosId b= /Platform/BroxtonPlatformPkg/Common/Tools/GenBiosId/GenBiosId new file mode 100644 index 0000000000000000000000000000000000000000..ef1578f2bcb8922905e06930352= 45c4329809aa7 GIT binary patch literal 12236 zcmeHNeQ;dWb-yb;!9rw7c0^*Z3a?>pY_Qjok&SGi=3Dxc3cj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C)d{i~Z>ZtiG< z2?s~s5f#RUO#}nt=3DiJ3Lj9@Zug#EE#)D-ykh}S8rJ6?!a>HXZ|MOvpqM{pS5 zfla0#7kc})hY`4~1OCA8xOMAn?if`0f>v_fcUJTobsu=3DPqQSoOJ6lyR)YK}>qR@a5 zz6%or?`4GnmUn(JWun~}ovoI?e?S-;2aPVXFOtOTXj{~uOqxkC+b21-3Kx=3D{cGSn@ Oj(!g3>{OC7S^N)t{R~b3 literal 0 HcmV?d00001 diff --git a/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc= .dsc b/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc new file mode 100644 index 000000000..7c7f9c2b1 --- /dev/null +++ b/Platform/BroxtonPlatformPkg/PlatformDsc/BuildOptions.EDKII.Gcc.dsc @@ -0,0 +1,108 @@ +## @file +# Define build options tokens. +# +# Copyright (c) 2017, Intel Corporation. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the B= SD License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php. +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. +# +## + +## +## Many of these should be converted to FixedAtBuild (or at minimum Featur= eFlag) PCDs ! +##########################################################################= ############## + +# +# Define Platform specific pre-processor tokens +# +!if $(APLK_SETUP_ENABLE_BUILD) =3D=3D TRUE + DEFINE APLK_SETUP_ENABLE =3D -DAPLK_SETUP_ENABLE=3D1 +!else + DEFINE APLK_SETUP_ENABLE =3D -DAPLK_SETUP_ENABLE=3D0 +!endif + +!if $(ENBDT_PF_BUILD) =3D=3D TRUE + DEFINE ENBDT_PF_ENABLE =3D -DENBDT_PF_ENABLE=3D1 +!else + DEFINE ENBDT_PF_ENABLE =3D -DENBDT_PF_ENABLE=3D0 +!endif + +# +# Define common pre-processor tokens. +# +!if $(PERFORMANCE_ENABLE) =3D=3D TRUE + DEFINE PERFORMANCE_ENABLE_BUILD_OPTION =3D -D_PERFORMANCE_ENABLE_=3D1 +!endif + +!if $(X64_CONFIG) =3D=3D TRUE + DEFINE X64_BUILD_ENABLE =3D -DX64_BUILD_ENABLE=3D1 +!endif + +!if $(PCIESC_ENABLE) =3D=3D TRUE + DEFINE PCIESC_SUPPORT_BUILD_OPTION =3D -DPCIESC_SUPPORT=3D1 +!endif + +!if $(SATA_ENABLE) =3D=3D TRUE + DEFINE SATA_SUPPORT_BUILD_OPTION =3D -DSATA_SUPPORT=3D1 +!endif + +!if $(PRAM_ENABLE) =3D=3D TRUE + DEFINE PRAM_SUPPORT_BUILD_OPTION =3D -DPRAM_SUPPORT=3D1 +!endif + + DEFINE BDAT_SUPPORT_BUILD_OPTION =3D -DBDAT_SUPPORT=3D0 + +!if $(NVM_VARIABLE_ENABLE) =3D=3D TRUE + DEFINE NVM_VARIABLE_BUILD_OPTION =3D -DNVM_VARIABLE_ENABLE=3D1 +!endif + +!if $(FTPM_ENABLE) =3D=3D TRUE + DEFINE FTPM_SUPPORT_BUILD_OPTIONS =3D -DFTPM_SUPPORT=3D1 +!endif + +!if $(SMM_VARIABLE_ENABLE) =3D=3D TRUE + DEFINE SMM_VARIABLE_ENABLE_BUILD_OPTIONS =3D -DSMM_VARIABLE_ENABLE=3D1 +!else + DEFINE SMM_VARIABLE_ENABLE_BUILD_OPTIONS =3D +!endif + + DEFINE MEMORY_BUILD_OPTIONS =3D -DEFI_MEMORY_INIT=3D1 + +DEFINE EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS =3D $(PERFORMANCE_ENABLE_BUILD_= OPTION) $(ENBDT_PF_ENABLE) $(X64_BUILD_ENABLE) $(NVM_VARIABLE_BUILD_OPTION)= $(FTPM_SUPPORT_BUILD_OPTIONS) $(PCIESC_SUPPORT_BUILD_OPTION) $(SATA_SUPPOR= T_BUILD_OPTION) $(PRAM_SUPPORT_BUILD_OPTION) $(HDAUDIO_SUPPORT_BUILD_OPTION= ) $(APLK_SETUP_ENABLE) $(MEMORY_BUILD_OPTIONS) $(BDAT_SUPPORT_BUILD_OPTION)= $(SMM_VARIABLE_ENABLE_BUILD_OPTIONS) + +!if gPlatformModuleTokenSpaceGuid.PcdDeprecatedFunctionRemove =3D=3D TRUE + DEFINE DISABLE_NEW_DEPRECATED_INTERFACES_BUILD_OPTION =3D -DDISABLE_NEW_= DEPRECATED_INTERFACES=3D1 +!else + DEFINE DISABLE_NEW_DEPRECATED_INTERFACES_BUILD_OPTION =3D +!endif + +DEFINE EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS =3D $(EDK_EDKII_DSC_FEATURE_BUI= LD_OPTIONS) $(DISABLE_NEW_DEPRECATED_INTERFACES_BUILD_OPTION) + +# +# Compiler flags +# +#format: ___ + + *_*_IA32_ASM_FLAGS =3D $(VP_BUILD_OPTIONS) -DEDKII_GLUE_PciExpressBa= seAddress=3D$(PLATFORM_PCIEXPRESS_BASE)h + + + *_*_IA32_CC_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) -Wno-u= nused-function -Wno-unused-but-set-variable -Wno-switch + *_*_IA32_VFRPP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_IA32_APP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_IA32_PP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_IA32_ASLPP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + + *_*_X64_CC_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) -Wno-u= nused-function -Wno-unused-but-set-variable -Wno-switch -Wno-unused-variabl= e -Wno-missing-braces + *_*_X64_VFRPP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_X64_APP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_X64_PP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_X64_ASLPP_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) + *_*_*_ASL_FLAGS =3D $(EDK_EDKII_DSC_FEATURE_BUILD_OPTIONS) -we + + RELEASE_*_*_CC_FLAGS =3D /Zi + diff --git a/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc b/Platform/B= roxtonPlatformPkg/PlatformPkgX64Gcc.dsc new file mode 100644 index 000000000..1339b44b2 --- /dev/null +++ b/Platform/BroxtonPlatformPkg/PlatformPkgX64Gcc.dsc @@ -0,0 +1,181 @@ +## @file +# Platform description. +# +# Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.
+# +# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the B= SD License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php. +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. +# +## + +##########################################################################= ###### +# +# Defines Section - statements that will be processed to create a Makefile. +# +##########################################################################= ###### +[Defines] + PLATFORM_NAME =3D BroxtonPlatformPkg + PLATFORM_GUID =3D 1D3686CF-D2CE-4B6E-9F59-28F61976= CB73 + PLATFORM_VERSION =3D 0.1 + DSC_SPECIFICATION =3D 0x00010005 + + OUTPUT_DIRECTORY =3D Build/$(PLATFORM_NAME) + SUPPORTED_ARCHITECTURES =3D IA32|X64 + BUILD_TARGETS =3D DEBUG|RELEASE + SKUID_IDENTIFIER =3D DEFAULT + + # + # Set platform specific package/folder names, same as passed from PREBUI= LD script. + # PLATFORM_PACKAGE would be the same as PLATFORM_NAME as well as package= build folder + # The CORE_PACKAGES value could be set to '.' if Core packages get moved= to Workspace root + # + DEFINE SILICON_NAME =3D BroxtonSoC + DEFINE PLATFORM_PACKAGE_COMMON =3D $(PLATFORM_NAME)/Common + DEFINE PLATFORM_SI_PACKAGE =3D $(SILICON_NAME)/BroxtonSiPkg + + !include DefineAtBuildMacros.dsc + !include PlatformDsc/Defines.dsc + +##########################################################################= ###### +# +# SKU Identification section - list of all SKU IDs supported by this Platf= orm. +# +##########################################################################= ###### +[SkuIds] + 0|DEFAULT # The entry: 0|DEFAULT is reserved and always req= uired. + +##########################################################################= ###### +# +# Library Class section - list of all Library Classes needed by this Platf= orm. +# +##########################################################################= ###### +[LibraryClasses.Common] + # + # RC Package + # + !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgCommonLib.dsc + # + # Platform + # + !include PlatformDsc/LibraryClasses.dsc + +[LibraryClasses.IA32.SEC] + !if $(PERFORMANCE_ENABLE) =3D=3D TRUE + PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLi= bNull.inf + !endif + +!if $(SOURCE_DEBUG_ENABLE) =3D=3D TRUE +[LibraryClasses.common.SEC] + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib= .inf + +[LibraryClasses.common.DXE_CORE] + DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf +!endif + +[LibraryClasses.IA32.PEIM, LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA= 32.SEC] +!if $(PERFORMANCE_ENABLE) =3D=3D TRUE + !if $(INTEL_FPDT_ENABLE) =3D=3D TRUE + PerformanceLib|$(PLATFORM_PACKAGE_COMMON)/Library/PeiFpdtPerformanceLi= b/PeiFpdtPerformanceLib.inf + !else + PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLi= b.inf + !endif +!endif + # + # RC Package + # + !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgPeiLib.dsc + + !include PlatformDsc/LibraryClasses.IA32.PEI.dsc + +[LibraryClasses.IA32.PEIM, LibraryClasses.IA32.PEI_CORE] +!if $(PERFORMANCE_ENABLE) =3D=3D TRUE + !if $(INTEL_FPDT_ENABLE) =3D=3D TRUE + PerformanceLib|$(PLATFORM_PACKAGE_COMMON)/Library/PeiFpdtPerformanceLi= b/PeiFpdtPerformanceLib.inf + !else + PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLi= b.inf + !endif + TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTscTi= merLib.inf +!endif + +[LibraryClasses.IA32.DXE_DRIVER] + !if $(PERFORMANCE_ENABLE) =3D=3D TRUE + PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf + TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf + !endif + +[LibraryClasses.Common.DXE_DRIVER, LibraryClasses.Common.DXE_CORE, Library= Classes.Common.DXE_SMM_DRIVER, LibraryClasses.Common.SMM_CORE, LibraryClass= es.Common.DXE_RUNTIME_DRIVER] + # + # RC Package + # + !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgDxeLib.dsc + +[LibraryClasses.Common.DXE_DRIVER] + !if $(PERFORMANCE_ENABLE) =3D=3D TRUE + PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLi= b.inf + TimerLib|$(PLATFORM_PACKAGE_COMMON)/Library/PlatformTscTimerLib/DxeTsc= TimerLib.inf + !endif + +[LibraryClasses.Common.DXE_CORE] + !include PlatformDsc/LibraryClasses.DxeCore.dsc + +[LibraryClasses.Common.DXE_SMM_DRIVER] + !include PlatformDsc/LibraryClasses.DxeSmmDriver.dsc + +[LibraryClasses.Common.SMM_CORE] + !include PlatformDsc/LibraryClasses.SmmCore.dsc + +[LibraryClasses.Common.DXE_RUNTIME_DRIVER] + !include PlatformDsc/LibraryClasses.DxeRuntimeDriver.dsc + +[LibraryClasses.Common.UEFI_APPLICATION] + PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf + +##########################################################################= ###### +# +# Pcd Section - list of all EDK II PCD Entries defined by this Platform +# +##########################################################################= ###### +[PcdsFeatureFlag.Common] + !include PlatformDsc/PcdsFeatureFlag.dsc + +[PcdsFixedAtBuild.Common] + gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported|0x9 + !include PlatformDsc/PcdsFixedAtBuild.dsc + +[PcdsPatchableInModule.Common] + gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x807B05FF + gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0x$(PLATFORM_PCIEXPRES= S_BASE) + gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion= |FALSE + ## Default Creator ID for ACPI table creation, override to "BRXT" + gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultCreatorId|0x54585242 + +[PcdsDynamicHii.Common.DEFAULT] + !include PlatformDsc/PcdsDynamicHii.Default.dsc + +[PcdsDynamicDefault.Common.DEFAULT] + !include PlatformDsc/PcdsDynamicDefault.Default.dsc + +[Components.IA32] + !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgPei.dsc + !include PlatformDsc/Components.IA32.dsc + +[Components.X64] + !include $(WORKSPACE)/Silicon/$(PLATFORM_SI_PACKAGE)/SiPkgDxe.dsc + !include PlatformDsc/Components.dsc + $(PLATFORM_SI_PACKAGE)/SouthCluster/ScInit/Dxe/ScInitDxe.inf + +##########################################################################= ###### +# +# Build Options section - list of all Build Flags used by this Platform. +# +##########################################################################= ###### +#[BuildOptions.Common] + +[BuildOptions.Common.EDKII] + !include PlatformDsc/BuildOptions.EDKII.dsc + --=20 2.11.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel