diff options
author | Joel Stanley <joel@jms.id.au> | 2017-02-13 11:31:50 +1030 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2017-02-13 11:34:05 +1030 |
commit | 345c74d10cba710712c56325c042fe52e115e1a4 (patch) | |
tree | e9cac3d6618be46ba44fbf881ae2c32c7ac93aa3 /op-build-env | |
parent | a74ece26fabaa2c9d6cb45dcc3b0bd56423b56ec (diff) | |
download | talos-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-x | op-build-env | 6 |
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 |