From nobody Fri May 3 19:51:49 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.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 1511769199080932.2749298864214; Sun, 26 Nov 2017 23:53:19 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E227E21A1099E; Sun, 26 Nov 2017 23:48:55 -0800 (PST) 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 479E621B00DC1 for ; Sun, 26 Nov 2017 23:48:54 -0800 (PST) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Nov 2017 23:53:15 -0800 Received: from zwei4-mobl1.ccr.corp.intel.com ([10.239.193.213]) by fmsmga005.fm.intel.com with ESMTP; 26 Nov 2017 23:53:14 -0800 X-Original-To: edk2-devel@lists.01.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; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=david.wei@intel.com; receiver=edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,463,1505804400"; d="scan'208";a="180542991" From: zwei4 To: edk2-devel@lists.01.org Date: Mon, 27 Nov 2017 15:53:11 +0800 Message-Id: <20171127075311.6556-1-david.wei@intel.com> X-Mailer: git-send-email 2.14.1.windows.1 Subject: [edk2] [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Change Build Script 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" Change GCC build script for Benson Glacier FAB B and Minnowboard 3 Next pre-production board. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: zwei4 --- BuildBIOS.sh | 7 +++- Platform/BroxtonPlatformPkg/BuildBxtBios.sh | 54 +++++++++++++++++++++++++= ---- Platform/BroxtonPlatformPkg/BuildIFWI.sh | 11 ++++-- 3 files changed, 62 insertions(+), 10 deletions(-) mode change 100644 =3D> 100755 Platform/BroxtonPlatformPkg/BuildBxtBios.sh diff --git a/BuildBIOS.sh b/BuildBIOS.sh index 5ea0dd8..d679d2e 100755 --- a/BuildBIOS.sh +++ b/BuildBIOS.sh @@ -18,8 +18,9 @@ function Usage () { echo echo "Usage: BuildBios.sh Build_Flags [PlatformName] Target_Flag" echo - echo " Build_Flags: /MN Minnow3 Board (default:= MN)" + echo " Build_Flags: /MN MinnowBoard3 (default: = MN)" echo " Build_Flags: /BG Benson Glacier Board" + echo " Build_Flags: /MX MinnowBoard3 Next" echo " Build_Flags: /A Set FabId to A (default= : FAB_B)" echo " Build_Flags: /B Set FabId to B (default= : FAB_B)" echo " PlatformName [optional]: Broxton " =20 @@ -59,6 +60,10 @@ for (( i=3D1; i<=3D$#; )) BoardId=3DBG Build_Flags=3D"$Build_Flags /BG" shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/MX" ]; then + BoardId=3DMX + Build_Flags=3D"$Build_Flags /MX" + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then FabId=3DB Build_Flags=3D"$Build_Flags /B" diff --git a/Platform/BroxtonPlatformPkg/BuildBxtBios.sh b/Platform/Broxton= PlatformPkg/BuildBxtBios.sh old mode 100644 new mode 100755 index d0b677f..cf02ceb --- a/Platform/BroxtonPlatformPkg/BuildBxtBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBxtBios.sh @@ -104,6 +104,9 @@ for (( i=3D1; i<=3D$#; )) elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/BG" ]; then BoardId=3DBG shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/MX" ]; then + BoardId=3DMX + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then FabId=3DB shift @@ -132,10 +135,14 @@ sed -i '/^BUILD_TYPE/d' $WORKSPACE/Conf/BiosId.env if [ $BoardId =3D=3D "MN" ]; then BOARD_ID=3DMNW3 echo BOARD_ID =3D MINNOW3 >> $WORKSPACE/Conf/BiosId.env +elif [ $BoardId =3D=3D "MX" ]; then + BOARD_ID=3DMNXT + echo BOARD_ID =3D MINNEXT >> $WORKSPACE/Conf/BiosId.env else BOARD_ID=3DBEN1 echo BOARD_ID =3D BENSONV >> $WORKSPACE/Conf/BiosId.env fi + ENBDT_PF_BUILD=3DTRUE PLATFORM_NAME=3DBroxtonPlatformPkg PLATFORM_PACKAGE=3DPlatform/BroxtonPlatformPkg =20 @@ -176,8 +183,13 @@ else fi =20 if [ $BoardId =3D=3D "BG" ]; then - BOARD_REV=3DA - echo BOARD_REV =3D A >> $WORKSPACE/Conf/BiosId.env + if [ $FabId =3D=3D "B" ]; then + BOARD_REV=3DB + echo BOARD_REV =3D B >> $WORKSPACE/Conf/BiosId.env + else + BOARD_REV=3DA + echo BOARD_REV =3D A >> $WORKSPACE/Conf/BiosId.env + fi fi =20 if [ $BoardId =3D=3D "MN" ]; then @@ -190,6 +202,15 @@ if [ $BoardId =3D=3D "MN" ]; then fi fi =20 +if [ $BoardId =3D=3D "MX" ]; then + if [ $FabId =3D=3D "B" ]; then + BOARD_REV=3DB + echo BOARD_REV =3D B >> $WORKSPACE/Conf/BiosId.env + else + BOARD_REV=3DA + echo BOARD_REV =3D A >> $WORKSPACE/Conf/BiosId.env + fi +fi =20 ##********************************************************************** ## Additional EDK Build Setup/Configuration @@ -291,10 +312,17 @@ cp -f $BUILD_PATH/FV/FVIBBM.Fv $WORKSPACE/Platform/Br= oxtonPlatformPkg/Common/Too cp -f $BUILD_PATH/FV/FVIBBL.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/Comm= on/Tools/Stitch =20 if [ $BoardId =3D=3D "BG" ]; then - cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Benson= Glacier/FAB_A/SpiChunk1.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Common/= Tools/Stitch - cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Benson= Glacier/FAB_A/SpiChunk2.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Common/= Tools/Stitch - cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Benson= Glacier/FAB_A/SpiChunk3.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Common/= Tools/Stitch - cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Benson= Glacier/FAB_A/GCC/NvStorage.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + if [ $FabId =3D=3D "B" ]; then + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_B/SpiChunk1.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_B/SpiChunk2.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_B/SpiChunk3.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_B/GCC/NvStorage.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/Com= mon/Tools/Stitch + else=20 + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_A/SpiChunk1.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_A/SpiChunk2.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_A/SpiChunk3.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Commo= n/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Bens= onGlacier/FAB_A/GCC/NvStorage.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/Com= mon/Tools/Stitch + fi fi =20 if [ $BoardId =3D=3D "MN" ]; then @@ -311,6 +339,20 @@ if [ $BoardId =3D=3D "MN" ]; then fi fi =20 +if [ $BoardId =3D=3D "MX" ]; then + if [ $FabId =3D=3D "B" ]; then + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_B/SpiChunk1.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_B/SpiChunk2.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_B/SpiChunk3.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_B/GCC/NvStorage.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/= Common/Tools/Stitch + else + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_A/SpiChunk1.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_A/SpiChunk2.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_A/SpiChunk3.bin $WORKSPACE/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $WORKSPACE/Platform/BroxtonPlatformPkg/Common/Binaries/IFWI/Minn= owBoard3Next/FAB_A/GCC/NvStorage.Fv $WORKSPACE/Platform/BroxtonPlatformPkg/= Common/Tools/Stitch + fi +fi + # # Assmeble components # diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPla= tformPkg/BuildIFWI.sh index f5fb4b4..33dd249 100755 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.sh +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.sh @@ -19,10 +19,11 @@ function Usage () { echo echo "Usage: BuildIFWI.sh Build_Flags Platform_Type Build_Target" echo - echo " Build_Flags: /MN Minnow3 Board (default:= MN) " + echo " Build_Flags: /MN Minnowboard 3 (default)= " echo " Build_Flags: /BG Benson Glacier Board " - echo " Build_Flags: /A Set FabId to A (default= : FAB_B) " - echo " Build_Flags: /B Set FabId to B (default= : FAB_B) " + echo " Build_Flags: /MX Minnowboard 3 Next " + echo " Build_Flags: /A Set FabId to A" + echo " Build_Flags: /B Set FabId to B (default= )" echo " Platform_Type [optional]: Broxton " =20 echo " Build_Target: Release, Debug " echo @@ -66,6 +67,10 @@ for (( i=3D1; i<=3D$#; )) BoardId=3DBG Build_Flags=3D"$Build_Flags /BG" shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/MX" ]; then + BoardId=3DMX + Build_Flags=3D"$Build_Flags /MX" + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then FabId=3DB Build_Flags=3D"$Build_Flags /B" --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel