summaryrefslogtreecommitdiffstats
path: root/op-build-env
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2017-02-13 11:31:50 +1030
committerJoel Stanley <joel@jms.id.au>2017-02-13 11:34:05 +1030
commit345c74d10cba710712c56325c042fe52e115e1a4 (patch)
treee9cac3d6618be46ba44fbf881ae2c32c7ac93aa3 /op-build-env
parenta74ece26fabaa2c9d6cb45dcc3b0bd56423b56ec (diff)
downloadtalos-op-build-345c74d10cba710712c56325c042fe52e115e1a4.tar.gz
talos-op-build-345c74d10cba710712c56325c042fe52e115e1a4.zip
op-build-env: warn when user forgets buildroot submodule
If you don't have the buildroot submodule present, the build fails in a confusing way: op-build witherspoon_defconfig make: Entering directory '/home/benh/op-build/buildroot' make: *** No rule to make target 'witherspoon_defconfig'. Stop. make: Leaving directory '/home/benh/op-build/buildroot This change gives the user a better chance: $ . op-build-env Please make sure you've checked out the buildroot submodule git submodule init && git submodule update Signed-off-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'op-build-env')
-rwxr-xr-xop-build-env6
1 files changed, 6 insertions, 0 deletions
diff --git a/op-build-env b/op-build-env
index 9cd5cb5c..e6ca40ef 100755
--- a/op-build-env
+++ b/op-build-env
@@ -5,6 +5,12 @@ if [ -e ./customrc ]; then
source ./customrc
fi
+if [ ! -e buildroot/Makefile ]; then
+ echo "Please make sure you've checked out the buildroot submodule"
+ echo " git submodule init && git submodule update"
+ return -1
+fi
+
export BR2_EXTERNAL=${__PWD}/openpower
export BR2_DL_DIR=${__PWD}/dl
OpenPOWER on IntegriCloud