ABS check 64 bit rootstraps for mobile profile
[scm/meta/abs.git] / 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"