1 parent 3153a46 commit cca04ccCopy full SHA for cca04cc
1 file changed
scripts/openwrt/build.sh
@@ -41,6 +41,11 @@ cd "$vps_root_dir/openwrt" || { errormsg "could not cd into openwrt directory";
41
42
if [ -n "$rebuild" ]; then
43
board=$(sed -n 's/^CONFIG_TARGET_BOARD="\(.*\)"/\1/p' .config)
44
+ # If board is missing -> typically means that 'make defconfig' wasn't done
45
+ if [ -z $board ]; then
46
+ make defconfig
47
+ board=$(sed -n 's/^CONFIG_TARGET_BOARD="\(.*\)"/\1/p' .config)
48
+ fi
49
target=$(sed -n 's/^CONFIG_TARGET_SUBTARGET="\(.*\)"/\1/p' .config)
50
rm "bin/targets/$board/$target"/openwrt-*
51
else
0 commit comments