Update scripts for cross build (#1122)
author최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Wed, 9 May 2018 01:24:29 +0000 (10:24 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Wed, 9 May 2018 01:24:29 +0000 (10:24 +0900)
* Update scripts for cross build

- Update docker_build_cross_arm_ubuntu.sh with changes in
  docker_build_cross_arm_ubuntu_without_aclbuild.sh

Signed-off-by: Hyung-Kyu Choi <hk0110.choi@samsung.com>
scripts/command/docker_build_cross_arm_ubuntu.sh

index fb3ac81..7595ed0 100755 (executable)
@@ -15,11 +15,18 @@ DOCKER_ENV_VARS+=" -e http_proxy"
 DOCKER_ENV_VARS+=" -e no_proxy"
 DOCKER_ENV_VARS+=" -e GIT_SSL_NO_VERIFY"
 
+DOCKER_ENV_VARS+=" -e TARGET_ARCH=armv7l"
+DOCKER_ENV_VARS+=" -e CROSS_BUILD=1"
+
 DOCKER_RUN_OPTS="--rm"
 DOCKER_RUN_OPTS+=" -w $DOCKER_HOME"
-DOCKER_RUN_OPTS+=" -it"
 
-CMD="export TARGET_ARCH=armv7l && export CROSS_BUILD=1 && export BENCHMARK_ACL_BUILD=1 && make acl && make && make install"
+if [ -n "$DOCKER_INTERACTIVE" ]; then
+  DOCKER_RUN_OPTS+=" -it"
+  CMD="/bin/bash"
+else
+  CMD="export BENCHMARK_ACL_BUILD=1 && make acl && make && make install && make build_test_suite"
+fi
 
 docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD"
 BUILD_RESULT=$?