Skip to content

Commit 7277ac7

Browse files
committed
busybox: fix defconfig build
If no config is provided and no config already exists use 'make defconfig' to create a default config.
1 parent 064d2ef commit 7277ac7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

recipes/core/busybox.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ buildScript: |
3535
elif [[ ${BUSYBOX_CONFIG:+true} ]] ; then
3636
CFG="$1/configs/${BUSYBOX_CONFIG}"
3737
else
38-
CFG="defconfig"
38+
if [ ! -e .config ]; then
39+
make -C $1 O=$PWD defconfig
40+
fi
41+
CFG=".config"
3942
fi
4043
4144
# check if the defconfig exists

0 commit comments

Comments
 (0)