[Linaro-uefi] opteed-build.sh: Read TOS_ARCH from config file..

Message ID 20180329023218.22772-1-victor.chong@linaro.org
State New
Headers show
Series
  • [Linaro-uefi] opteed-build.sh: Read TOS_ARCH from config file..
Related show

Commit Message

Victor Chong March 29, 2018, 2:32 a.m.
..before setting it to its default value if not specified.

Signed-off-by: Victor Chong <victor.chong@linaro.org>
---
 opteed-build.sh | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/opteed-build.sh b/opteed-build.sh
index 6840484..2dd40ff 100755
--- a/opteed-build.sh
+++ b/opteed-build.sh
@@ -21,6 +21,7 @@  function usage
 function build_platform
 {
 	unset CFG_ARM64_core PLATFORM PLATFORM_FLAVOR DEBUG
+	TOS_ARCH="`$TOOLS_DIR/parse-platforms.py $PLATFORM_CONFIG -p $1 get -o tos_arch`"
 	if [ X"$TOS_ARCH" = X"" ]; then
 		TOS_ARCH=arm
 	fi