--env-file option for docker cross arm build (#1879)
author이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Mon, 9 Jul 2018 04:54:00 +0000 (13:54 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 9 Jul 2018 04:54:00 +0000 (13:54 +0900)
* --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 <chunseok.lee@samsung.com>
* Rename env files

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
* remove empty line

Signed-off-by: Chunseok Lee <chunseok.lee@samsung.com>
scripts/command/docker_build_cross_arm_ubuntu.sh
scripts/command/docker_env_newruntime [new file with mode: 0644]
scripts/command/docker_env_pureacl [new file with mode: 0644]

index 409c4ed..1b966e9 100755 (executable)
@@ -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 (file)
index 0000000..45e251f
--- /dev/null
@@ -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 (file)
index 0000000..35c3b5d
--- /dev/null
@@ -0,0 +1 @@
+OPTIONS=-DBUILD_PURE_ARM_COMPUTE=ON