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 <[email protected]> Reviewed-by: David Wei <[email protected]> --- 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 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

