From 27937da87f585a2f2f6c3dfadd83cf05b3748b67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=B6=98=EC=84=9D/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Thu, 31 May 2018 16:49:03 +0900 Subject: [PATCH] set ROOTFS_DIR on docker_build_cross_arm_ubuntu.sh (#1467) To run docker_build_cross_arm_ubuntu, ROOTFS_DIR should be passed. It takes 6min to complete build. Signed-off-by: Chunseok Lee --- scripts/command/docker_build_cross_arm_ubuntu.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/command/docker_build_cross_arm_ubuntu.sh b/scripts/command/docker_build_cross_arm_ubuntu.sh index 83e3149..409c4ed 100755 --- a/scripts/command/docker_build_cross_arm_ubuntu.sh +++ b/scripts/command/docker_build_cross_arm_ubuntu.sh @@ -11,10 +11,19 @@ DOCKER_VOLUMES+=" -v $HOST_HOME:$DOCKER_HOME" DOCKER_ENV_VARS+=" -e TARGET_ARCH=armv7l" DOCKER_ENV_VARS+=" -e CROSS_BUILD=1" +DOCKER_ENV_VARS+=" -e ROOTFS_DIR=/opt/rootfs" DOCKER_RUN_OPTS="--rm" DOCKER_RUN_OPTS+=" -w $DOCKER_HOME" +# prepare rootfs +if [[ ! -d $ROOTFS_DIR ]]; then + echo "cannot find rootfs" + exit 1 +fi + +DOCKER_VOLUMES+=" -v $ROOTFS_DIR:/opt/rootfs" + # Change .gitmodules to work around the permission issue CMD_SUBMODULE="./scripts/command/change_gitmodule.sh" docker run $DOCKER_RUN_OPTS $DOCKER_ENV_VARS $DOCKER_VOLUMES $DOCKER_IMAGE_NAME sh -c "$CMD_SUBMODULE" -- 2.7.4