From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=yunshan.tu@intel.com; receiver=edk2-devel@lists.01.org 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 1250721A07A92 for ; Wed, 22 Aug 2018 23:13:08 -0700 (PDT) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Aug 2018 23:13:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,277,1531810800"; d="dat'59?scan'59,208,59";a="256537531" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga005.fm.intel.com with ESMTP; 22 Aug 2018 23:13:06 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 22 Aug 2018 23:13:05 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.205]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.143]) with mapi id 14.03.0319.002; Thu, 23 Aug 2018 14:13:04 +0800 From: "Tu, Yunshan" To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] [edk2-platforms/devel-IntelAtomProcessorE3900] Add /C build option. Thread-Index: AdQ6qFh+PRUUe4xATo+v7LlTZqGCOA== Date: Thu, 23 Aug 2018 06:13:03 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZWEyZWQ2MzYtNmZlNy00Zjg0LTlhYzYtN2NkYTNkZmYxZmQxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiK2UzVG9BUGdwaUNGelBaZE45cjZiVDdwUk9DVE1RbVdlYjBwQ2VyZEZ6bCtFdWFvck9ZcWlXcXFxOFd3dHRWcyJ9 dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [PATCH] [edk2-platforms/devel-IntelAtomProcessorE3900] Add /C build option. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 06:13:08 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Add /C build option for Module FAB C board in the GCC environment. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunshan Tu Reviewed-by: David Wei --- BuildBIOS.sh | 5 +++++ Platform/BroxtonPlatformPkg/BuildBxtBios.sh | 22 +++++++++++++-------- Platform/BroxtonPlatformPkg/BuildIFWI.sh | 5 +++++ 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/BuildBIOS.sh b/BuildBIOS.sh index 64eeac0687..e02a16f1bf 100644 --- a/BuildBIOS.sh +++ b/BuildBIOS.sh @@ -25,6 +25,7 @@ function Usage () { echo " Build_Flags: /UP AAEON UP2 Board" echo " Build_Flags: /A Set FabId to A " echo " Build_Flags: /B Set FabId to B (default= : FAB_B)" + echo " Build_Flags: /C Set FabId to C " echo " Build_Flags: /D Set FabId to D " echo " Build_Flags: /L Flash region access per= mission for host CPU" echo " PlatformName [optional]: Broxton " =20 @@ -82,6 +83,10 @@ for (( i=3D1; i<=3D$#; )) FabId=3DD Build_Flags=3D"$Build_Flags /D" shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/C" ]; then + FabId=3DC + Build_Flags=3D"$Build_Flags /C" + 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 index ac2c58abb1..c8060f8d25 100644 --- a/Platform/BroxtonPlatformPkg/BuildBxtBios.sh +++ b/Platform/BroxtonPlatformPkg/BuildBxtBios.sh @@ -117,12 +117,18 @@ for (( i=3D1; i<=3D$#; )) 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 "/UP" ]; then + BoardId=3DUP + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/LH" ]; then BoardId=3DLH shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/D" ]; then FabId=3DD shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/C" ]; then + FabId=3DC + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then FabId=3DB shift @@ -234,9 +240,9 @@ if [ $BoardId =3D=3D "MN" ]; then 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 + if [ $FabId =3D=3D "C" ]; then + BOARD_REV=3DC + echo BOARD_REV =3D C >> $WORKSPACE/Conf/BiosId.env else BOARD_REV=3DA echo BOARD_REV =3D A >> $WORKSPACE/Conf/BiosId.env @@ -409,11 +415,11 @@ if [ $BoardId =3D=3D "MN" ]; then fi =20 if [ $BoardId =3D=3D "MX" ]; then - if [ $FabId =3D=3D "B" ]; then - cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_B/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch - cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_B/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch - cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_B/SpiChunk3.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch - cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_B/SpiChunk1SpiAccessControl.bin $PLATFORM_PATH/Platform/Broxt= onPlatformPkg/Common/Tools/Stitch + if [ $FabId =3D=3D "C" ]; then + cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_C/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_C/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_C/SpiChunk3.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch + cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_C/SpiChunk1SpiAccessControl.bin $PLATFORM_PATH/Platform/Broxt= onPlatformPkg/Common/Tools/Stitch else cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_A/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Mod= ule/IFWI/FAB_A/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Co= mmon/Tools/Stitch diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPla= tformPkg/BuildIFWI.sh index 447cfb507c..4cc22850de 100644 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.sh +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.sh @@ -26,6 +26,7 @@ function Usage () { echo " Build_Flags: /UP AAEON UP2 Board" echo " Build_Flags: /A Set FabId to A" echo " Build_Flags: /B Set FabId to B (default= )" + echo " Build_Flags: /C Set FabId to C" echo " Build_Flags: /D Set FabId to D" echo " Build_Flags: /L Flash region access per= mission for host CPU" echo " Platform_Type [optional]: Broxton " =20 @@ -87,6 +88,10 @@ for (( i=3D1; i<=3D$#; )) FabId=3DD Build_Flags=3D"$Build_Flags /D" shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/C" ]; then + FabId=3DC + Build_Flags=3D"$Build_Flags /C" + shift elif [ "$(echo $1 | tr 'a-z' 'A-Z')" =3D=3D "/B" ]; then FabId=3DB Build_Flags=3D"$Build_Flags /B" --=20 2.18.0.windows.1