From: "Tu, Yunshan" <yunshan.tu@intel.com>
To: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: [PATCH] [edk2-platforms/devel-IntelAtomProcessorE3900] Add /C build option.
Date: Thu, 23 Aug 2018 06:13:03 +0000 [thread overview]
Message-ID: <D68E27480DCD2945A7DDF4306C9A49AF3F71AE@SHSMSX101.ccr.corp.intel.com> (raw)
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 <yunshan.tu@intel.com>
Reviewed-by: David Wei <david.wei@intel.com>
---
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 permission for host CPU"
echo " PlatformName [optional]: Broxton "
@@ -82,6 +83,10 @@ for (( i=1; i<=$#; ))
FabId=D
Build_Flags="$Build_Flags /D"
shift
+ elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
+ FabId=C
+ Build_Flags="$Build_Flags /C"
+ shift
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/B" ]; then
FabId=B
Build_Flags="$Build_Flags /B"
diff --git a/Platform/BroxtonPlatformPkg/BuildBxtBios.sh b/Platform/BroxtonPlatformPkg/BuildBxtBios.sh
index ac2c58abb1..c8060f8d25 100644
--- a/Platform/BroxtonPlatformPkg/BuildBxtBios.sh
+++ b/Platform/BroxtonPlatformPkg/BuildBxtBios.sh
@@ -117,12 +117,18 @@ for (( i=1; i<=$#; ))
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/MX" ]; then
BoardId=MX
shift
+ elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/UP" ]; then
+ BoardId=UP
+ shift
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/LH" ]; then
BoardId=LH
shift
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/D" ]; then
FabId=D
shift
+ elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
+ FabId=C
+ shift
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/B" ]; then
FabId=B
shift
@@ -234,9 +240,9 @@ if [ $BoardId == "MN" ]; then
fi
if [ $BoardId == "MX" ]; then
- if [ $FabId == "B" ]; then
- BOARD_REV=B
- echo BOARD_REV = B >> $WORKSPACE/Conf/BiosId.env
+ if [ $FabId == "C" ]; then
+ BOARD_REV=C
+ echo BOARD_REV = C >> $WORKSPACE/Conf/BiosId.env
else
BOARD_REV=A
echo BOARD_REV = A >> $WORKSPACE/Conf/BiosId.env
@@ -409,11 +415,11 @@ if [ $BoardId == "MN" ]; then
fi
if [ $BoardId == "MX" ]; then
- if [ $FabId == "B" ]; then
- cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_B/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
- cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_B/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
- cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_B/SpiChunk3.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
- cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_B/SpiChunk1SpiAccessControl.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
+ if [ $FabId == "C" ]; then
+ cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_C/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
+ cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_C/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
+ cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_C/SpiChunk3.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
+ cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_C/SpiChunk1SpiAccessControl.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
else
cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_A/SpiChunk1.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
cp -f $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Board/MinnowBoard3Module/IFWI/FAB_A/SpiChunk2.bin $PLATFORM_PATH/Platform/BroxtonPlatformPkg/Common/Tools/Stitch
diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.sh b/Platform/BroxtonPlatformPkg/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 permission for host CPU"
echo " Platform_Type [optional]: Broxton "
@@ -87,6 +88,10 @@ for (( i=1; i<=$#; ))
FabId=D
Build_Flags="$Build_Flags /D"
shift
+ elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/C" ]; then
+ FabId=C
+ Build_Flags="$Build_Flags /C"
+ shift
elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/B" ]; then
FabId=B
Build_Flags="$Build_Flags /B"
--
2.18.0.windows.1
next reply other threads:[~2018-08-23 6:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-23 6:13 Tu, Yunshan [this message]
-- strict thread matches above, loose matches on Subject: below --
2018-08-21 8:00 [Patch][edk2-platforms/devel-IntelAtomProcessorE3900] Add /C build option Guo, Mang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D68E27480DCD2945A7DDF4306C9A49AF3F71AE@SHSMSX101.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox