From 345c74d10cba710712c56325c042fe52e115e1a4 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Mon, 13 Feb 2017 11:31:50 +1030 Subject: 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 --- op-build-env | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'op-build-env') 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 -- cgit v1.2.1