public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: lushifex <shifeix.a.lu@intel.com>
To: david.wei@intel.com;
Cc: edk2-devel@lists.01.org
Subject: [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Change BIOS ID.
Date: Fri, 16 Jun 2017 17:13:06 +0800	[thread overview]
Message-ID: <9f35fb65-9536-4cfd-b5ad-1ccd933b01a6@SHWDEOPENPSI011.local> (raw)

Change BIOS ID to differentiate FAB A and FAB B Board.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
---
 Platform/BroxtonPlatformPkg/BuildBios.bat | 10 ++++++++--
 Platform/BroxtonPlatformPkg/BuildBios.sh  |  8 ++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/Platform/BroxtonPlatformPkg/BuildBios.bat b/Platform/BroxtonPlatformPkg/BuildBios.bat
index b59e8eb..f656876 100644
--- a/Platform/BroxtonPlatformPkg/BuildBios.bat
+++ b/Platform/BroxtonPlatformPkg/BuildBios.bat
@@ -216,9 +216,9 @@ if "%Arch%"=="IA32" (
 ::Stage of copy of BiosId.env in Conf/ with Platform_Type and Build_Target values removed
 
 if "%Arch%"=="X64" (
-    findstr /b /v "BOARD_ID BUILD_TYPE" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
+    findstr /b /v "BOARD_ID BUILD_TYPE VERSION_MINOR" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
 ) else if "%Arch%"=="IA32" (
-    findstr /b /v "BOARD_ID BUILD_TYPE BOARD_EXT" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
+    findstr /b /v "BOARD_ID BUILD_TYPE VERSION_MINOR BOARD_EXT" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
     echo BOARD_EXT = I32 >> Conf\BiosId.env
 )
 
@@ -230,6 +230,12 @@ if /i "%~2" == "RELEASE" (
     echo BUILD_TYPE = D >> Conf\BiosId.env
 )
 
+if %FabId%==B (
+    echo VERSION_MINOR = 0B >> Conf\BiosId.env
+) else (
+    echo VERSION_MINOR = 0A >> Conf\BiosId.env
+)
+
 :: Set the Build_Type, Version_Major, and Version_Minor environment variables
 find /v "#" Conf\BiosId.env > ver_strings
 for /f "tokens=1,3" %%i in (ver_strings) do set %%i=%%j
diff --git a/Platform/BroxtonPlatformPkg/BuildBios.sh b/Platform/BroxtonPlatformPkg/BuildBios.sh
index 533993a..2195af6 100644
--- a/Platform/BroxtonPlatformPkg/BuildBios.sh
+++ b/Platform/BroxtonPlatformPkg/BuildBios.sh
@@ -159,6 +159,7 @@ fi
 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
+sed -i '/^VERSION_MINOR/d' $WORKSPACE/Conf/BiosId.env
 
 
 BOARD_ID=MNW3
@@ -203,6 +204,13 @@ else
   echo BUILD_TYPE = D >> $WORKSPACE/Conf/BiosId.env
 fi
 
+if [ $FabId == "B" ]; then
+  VERSION_MINOR=0B
+  echo VERSION_MINOR = 0B >> $WORKSPACE/Conf/BiosId.env
+else
+  VERSION_MINOR=0A
+  echo VERSION_MINOR = 0A >> $WORKSPACE/Conf/BiosId.env
+fi
 
 ##**********************************************************************
 ## Additional EDK Build Setup/Configuration
-- 
2.7.0.windows.1




             reply	other threads:[~2017-06-16  9:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-16  9:13 lushifex [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-06-15  6:45 [Patch][edk2-platforms/devel-MinnowBoard3-UDK2017] Change BIOS ID lushifex

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=9f35fb65-9536-4cfd-b5ad-1ccd933b01a6@SHWDEOPENPSI011.local \
    --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