diff options
author | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 12:11:42 -0600 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2014-11-04 12:11:42 -0600 |
commit | 9ec1e5177acad06672f458d92a57d012251ffefd (patch) | |
tree | b3f88ab41829df7fac776f33c915431ca7bbd179 /setup.sh | |
parent | 2fb6395ce9da9a9faf7e727d9f58ca157df58481 (diff) | |
download | mlinux-9ec1e5177acad06672f458d92a57d012251ffefd.tar.gz mlinux-9ec1e5177acad06672f458d92a57d012251ffefd.tar.bz2 mlinux-9ec1e5177acad06672f458d92a57d012251ffefd.zip |
add setup.sh
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..6f090cf --- /dev/null +++ b/setup.sh @@ -0,0 +1,53 @@ +#!/usr/bin/env bash + +set -e + +echo "" +echo "Updating git submodules..." +git submodule update --init + +response=y +test -f env-oe.sh && read -p "Overwrite env-oe.sh with defaults? (y/N) " response +if [[ $response =~ ^y$ || $response =~ ^yes$ ]]; then + echo "Copying default environment script..." + cp layers/meta-mlinux/contrib/env-oe.sh . +else + echo "Leaving existing env-oe.sh alone." +fi + +echo "" +response=y +test -f conf/local.conf && read -p "Overwrite conf/local.conf with defaults? (y/N) " response +if [[ $response =~ ^y$ || $response =~ ^yes$ ]]; then + echo "Creating default bitbake configuration..." + cp layers/meta-mlinux/contrib/local.conf conf/ +else + echo "Leaving existing conf/local.conf alone." +fi + +echo "" +echo "Creating user-layer..." +mkdir -p layers/user-layer/conf +mkdir -p layers/user-layer/recipes-core + +echo "" +response=y +test -f layers/user-layer/conf/layer.conf && read -p "Overwrite layers/user-layer/conf/layer.conf with defaults? (y/N) " response +if [[ $response =~ ^y$ || $response =~ ^yes$ ]]; then + echo "Creating default user-layer configuration..." + cp layers/meta-mlinux/contrib/user-layer.conf layers/user-layer/conf/layer.conf +else + echo "Leaving existing layers/user-layer/conf/layer.conf alone." +fi + +echo "" +echo "Creating directory structure..." +mkdir -p downloads +mkdir -p build + +echo "" +echo "Setup Done." +echo "" +echo "To build mlinux-base-image:" +echo " source env-oe.sh" +echo " bitbake mlinux-base-image" |