DOCKER_VOLUMES=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $EXT_ACL_FOLDER:/opt/acl"
-export DOCKER_VOLUMES
# docker image name
if [[ -z $DOCKER_IMAGE_NAME ]]; then
echo "It will use default docker image name"
-else
- export DOCKER_IMAGE_NAME
fi
DOCKER_ENV_VARS=" -e TARGET_ARCH=armv7l"
DOCKER_ENV_VARS+=" -e CROSS_BUILD=1"
DOCKER_ENV_VARS+=" -e ROOTFS_DIR=/opt/rootfs"
DOCKER_ENV_VARS+=" -e EXT_ACL_FOLDER=/opt/acl"
-DOCKER_ENV_VARS+=" -e BENCHMARK_ACL_BUILD=1"
-
# Mirror server setting
if [[ -z $EXTERNAL_DOWNLOAD_SERVER ]]; then
echo "It will not use mirror server"
-else
- DOCKER_ENV_VARS+=" -e EXTERNAL_DOWNLOAD_SERVER=$EXTERNAL_DOWNLOAD_SERVER"
fi
-export DOCKER_ENV_VARS
pushd $ROOT_PATH > /dev/null
# TODO use command instead of makefile
-CMD="make && make install && make build_test_suite"
+CMD="make && \
+ make install && \
+ make build_test_suite"
source nnfw docker-run-user bash -c "${CMD}"
popd > /dev/null
DOCKER_VOLUMES=" -v $ROOTFS_DIR:/opt/rootfs"
DOCKER_VOLUMES+=" -v $EXT_ACL_FOLDER:/opt/acl"
-export DOCKER_VOLUMES
# docker image name
if [[ -z $DOCKER_IMAGE_NAME ]]; then
echo "It will use default docker image name"
-else
- export DOCKER_IMAGE_NAME
fi
DOCKER_ENV_VARS=" -e TARGET_ARCH=armv7l"
DOCKER_ENV_VARS+=" -e CROSS_BUILD=1"
DOCKER_ENV_VARS+=" -e ROOTFS_DIR=/opt/rootfs"
DOCKER_ENV_VARS+=" -e EXT_ACL_FOLDER=/opt/acl"
-DOCKER_ENV_VARS+=" -e BENCHMARK_ACL_BUILD=1"
DOCKER_ENV_VARS+=" -e BUILD_TYPE=release"
# Mirror server setting
if [[ -z $EXTERNAL_DOWNLOAD_SERVER ]]; then
echo "It will not use mirror server"
-else
- DOCKER_ENV_VARS+=" -e EXTERNAL_DOWNLOAD_SERVER=$EXTERNAL_DOWNLOAD_SERVER"
fi
-export DOCKER_ENV_VARS
pushd $ROOT_PATH > /dev/null
# TODO use command instead of makefile
-CMD="make && make install && make build_test_suite"
+CMD="make && \
+ make install && \
+ make build_test_suite"
source nnfw docker-run-user bash -c "${CMD}"
popd > /dev/null
# docker image name
if [[ -z $DOCKER_IMAGE_NAME ]]; then
echo "It will use default docker image name"
-else
- export DOCKER_IMAGE_NAME
fi
# Mirror server setting
if [[ -z $EXTERNAL_DOWNLOAD_SERVER ]]; then
echo "It will not use mirror server"
-else
- DOCKER_ENV_VARS=" -e EXTERNAL_DOWNLOAD_SERVER=$EXTERNAL_DOWNLOAD_SERVER"
fi
-export DOCKER_ENV_VARS
pushd $ROOT_PATH > /dev/null
fi
DOCKER_VOLUMES=" -v $ROOTFS_DIR/:/opt/rootfs"
-export DOCKER_VOLUMES
# docker image name
if [[ -z $DOCKER_IMAGE_NAME ]]; then
echo "It will use default docker image name"
-else
- export DOCKER_IMAGE_NAME
fi
DOCKER_ENV_VARS=" -e TARGET_ARCH=armv7l"
# Mirror server setting
if [[ -z $EXTERNAL_DOWNLOAD_SERVER ]]; then
echo "It will not use mirror server"
-else
- DOCKER_ENV_VARS+=" -e EXTERNAL_DOWNLOAD_SERVER=$EXTERNAL_DOWNLOAD_SERVER"
fi
-export DOCKER_ENV_VARS
-
pushd $ROOT_PATH > /dev/null
CMD="make && \
GBS_RPM_DIR=$ROOT_PATH/Product/out/rpm
mkdir -p $GBS_RPM_DIR
DOCKER_VOLUMES=" -v $GBS_RPM_DIR:/opt/rpm"
-export DOCKER_VOLUMES
if [[ -z $DOCKER_IMAGE_NAME ]]; then
echo "It will use default docker image name for tizen gbs build"
- export DOCKER_IMAGE_NAME="nnfw_docker_tizen"
-else
- export DOCKER_IMAGE_NAME
+ DOCKER_IMAGE_NAME="nnfw_docker_tizen"
fi
DOCKER_ENV_VARS=" --privileged"
-export DOCKER_ENV_VARS
pushd $ROOT_PATH > /dev/null
echo "Need model file server setting"
exit 1
fi
-export $MODELFILE_SERVER
pushd $ROOT_PATH > /dev/null