summaryrefslogtreecommitdiff
path: root/scripts/init
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/init')
-rwxr-xr-xscripts/init15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/init b/scripts/init
index 29c23ba..3bde6f2 100755
--- a/scripts/init
+++ b/scripts/init
@@ -69,6 +69,20 @@ ${PHYTEC_DIR}/scripts/init_bblayers.py
${PHYTEC_DIR}/scripts/copy_site_conf.py
${PHYTEC_DIR}/scripts/init_machine.py
+container_usage() {
+ CONTAINER=$(sed -n 's:.*build_container="\([^"]*\).*:\1:p' ${ROOTDIR}/.repo/manifest.xml)
+ if [ ! -z "${CONTAINER}" ]; then
+ echo "A docker image can also be used as your build environment.\n"
+ echo "Set up your shell environment with:\n"
+ echo " $ docker run --rm -it -v \${PWD}:/\${PWD} ${CONTAINER} --workdir=\${PWD} bash\n"
+ echo "Or start a build with:\n"
+ echo " $ docker run --rm -it -v \${PWD}:/\${PWD} ${CONTAINER} --workdir=\${PWD} \\"
+ echo " bash -c '. sources/poky/oe-init-build-env && bitbake phytec-headless-image'"
+ echo ""
+ echo ""
+ fi
+}
+
echo ""
echo "Before you start your work, please check your build/conf/local.conf for"
echo "host specific configuration. Check the documentation especially for:"
@@ -82,3 +96,4 @@ echo ""
echo " $ . sources/poky/oe-init-build-env"
echo ""
echo ""
+container_usage