From: 이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 Date: Mon, 9 Jul 2018 04:54:00 +0000 (+0900) Subject: --env-file option for docker cross arm build (#1879) X-Git-Tag: 0.2~492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa5d3e14053b7bf9f6e6a92a0b87321688c7361e;p=platform%2Fcore%2Fml%2Fnnfw.git --env-file option for docker cross arm build (#1879) * --env-file option for docker cross arm build 1. support --env-file option via $ENV_FILE 2. add env_file for pureacl, new_runtime build Signed-off-by: Chunseok Lee * Rename env files Signed-off-by: Chunseok Lee * remove empty line Signed-off-by: Chunseok Lee --- diff --git a/scripts/command/docker_build_cross_arm_ubuntu.sh b/scripts/command/docker_build_cross_arm_ubuntu.sh index 409c4ed..1b966e9 100755 --- a/scripts/command/docker_build_cross_arm_ubuntu.sh +++ b/scripts/command/docker_build_cross_arm_ubuntu.sh @@ -22,6 +22,10 @@ if [[ ! -d $ROOTFS_DIR ]]; then exit 1 fi +if [[ ! -z $ENV_FILE ]]; then + DOCKER_ENV_VARS+=" --env-file ${ENV_FILE} " +fi + DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs" # Change .gitmodules to work around the permission issue diff --git a/scripts/command/docker_env_newruntime b/scripts/command/docker_env_newruntime new file mode 100644 index 0000000..45e251f --- /dev/null +++ b/scripts/command/docker_env_newruntime @@ -0,0 +1 @@ +OPTIONS=-DBUILD_NEW_RUNTIME=ON diff --git a/scripts/command/docker_env_pureacl b/scripts/command/docker_env_pureacl new file mode 100644 index 0000000..35c3b5d --- /dev/null +++ b/scripts/command/docker_env_pureacl @@ -0,0 +1 @@ +OPTIONS=-DBUILD_PURE_ARM_COMPUTE=ON