Skip to content

Commit 345c74d

Browse files
committed
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 <[email protected]>
1 parent a74ece2 commit 345c74d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

op-build-env

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ if [ -e ./customrc ]; then
55
source ./customrc
66
fi
77

8+
if [ ! -e buildroot/Makefile ]; then
9+
echo "Please make sure you've checked out the buildroot submodule"
10+
echo " git submodule init && git submodule update"
11+
return -1
12+
fi
13+
814
export BR2_EXTERNAL=${__PWD}/openpower
915
export BR2_DL_DIR=${__PWD}/dl
1016

0 commit comments

Comments
 (0)