ABS check 64 bit rootstraps for mobile profile 65/168365/1
authorhyokeun <hyokeun.jeon@samsung.com>
Fri, 26 Jan 2018 04:54:44 +0000 (13:54 +0900)
committerhyokeun <hyokeun.jeon@samsung.com>
Fri, 26 Jan 2018 05:16:54 +0000 (14:16 +0900)
Change-Id: I1bad31951f0da7c013415e4f48e4f4912a8aea0e

build.template

index c0c244c..d0adeeb 100644 (file)
@@ -12,6 +12,7 @@ PARALLEL_JOBS=__PARALLEL_JOBS__
 TMP_DIR=${BUILD_ROOT}/${PACKAGE}/_abs_out_
 SDK_CMD=$SDK_PATH/tools/ide/bin/tizen
 LIST="$SDK_CMD list rootstrap "
+BUILD_TYPE=__BUILD_TYPE__
 
 chown -R build:build $SHARE_ROOT
 su - build -c "cp $SHARE_ROOT/abs/abs $BUILD_ROOT/"
@@ -64,6 +65,17 @@ for rs in $rs_list; do
   fi
 done
 
+#FIXME: Check 64 bit rootstraps for mobile profile.
+if [[ $BUILD_TYPE = "SUBMIT" ]] && [[ $PROFILE = "mobile" ]]; then
+  if [[ $rs_list = *"device64"* ]] && [[ $rs_list = *"emulator64"* ]]; then
+    echo "OK. $PROFILE have 64 bit rootstraps"
+  else
+    echo "NOK. $PROFILE does not have 64 bit rootstraps"
+    echo "$PROFILE does not have 64 bit rootstraps" > ${SHARE_ROOT}/build_rootstrap_check.log
+    _clear 9
+  fi  
+fi
+
 _clear 0
 su - build -c "df -hT"