From 3b9f0b5245f41501b41eae017489f30e526cd791 Mon Sep 17 00:00:00 2001 From: "u.harbuz" Date: Thu, 4 May 2017 13:22:16 +0200 Subject: [PATCH] Add TOOLCHAIN parameter to build script Change-Id: Ideab343585ea3f7f6725212e37f6c8a9958658bf --- build/build.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/build/build.sh b/build/build.sh index 4eac26d..204083d 100755 --- a/build/build.sh +++ b/build/build.sh @@ -23,6 +23,7 @@ SSFLIB_PATH=$DIR/ssflib TEESTUB_PATH=$DIR/TEEStub SIMDAEMON_PATH=$DIR/simulatordaemon Package=$2 +TOOLCHAIN=$3 #check error case check_make_error() @@ -64,7 +65,7 @@ build_log() cd $LOG_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error cd $DIR } @@ -74,7 +75,7 @@ build_osal() cd $OSAL_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error cd $DIR } @@ -84,7 +85,7 @@ build_libteec() cd $TEECLIB_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error echo "Copying libteec.so in Package" cp libteec2.so $Package/CA/simulator/usr/lib/ @@ -97,7 +98,7 @@ build_ssflib() cd $SSFLIB_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error echo "Copying libssflib.so in Package" cp libssflib.so $Package/TA/simulator/usr/lib/ @@ -110,7 +111,7 @@ build_teestub() cd $TEESTUB_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error echo "Copying libTEEStub.a in Package" cp libTEEStub.a $Package/TA/simulator/usr/lib/ @@ -123,7 +124,7 @@ build_simdaemon() cd $SIMDAEMON_PATH make clean check_make_error -make +make TOOLCHAIN=$TOOLCHAIN check_make_error echo "Copying SimulatorDaemon in Package" cp SimulatorDaemon $Package/CA/simulator/usr/lib/ @@ -136,8 +137,8 @@ cd $DIR echo_invalid() { echo "Simulator Build script Invalid arguments -Format: ./build.sh -Example:./build.sh buildall ~/Package +Format: ./build.sh +Example:./build.sh buildall ~/Package \"\" log : Build Logger module @@ -152,7 +153,7 @@ Example:./build.sh buildall ~/Package } # Verify number of arguments to build.sh -if [[ "$#" -ne 2 ]]; then +if [[ "$#" -ne 3 ]]; then echo "Illegal number of arguments" echo_invalid exit 0 -- 2.7.4