diff options
-rw-r--r-- | Makefile | 2 | ||||
-rwxr-xr-x | scripts/prereq.sh | 11 |
2 files changed, 9 insertions, 4 deletions
@@ -4,5 +4,5 @@ # GNU make and BSD make compatible make file wrapper MAKECMDGOALS+= ${.TARGETS} -all v help targethelp kernelconfig image menuconfig download clean cleankernel cleansystem cleandir distclean hostclean hostpackage fetch package extract patch dep menu: +all v help targethelp kernelconfig image menuconfig defconfig oldconfig download clean cleankernel cleansystem cleandir distclean hostclean hostpackage fetch package extract patch dep menu: @./scripts/prereq.sh ${MAKECMDGOALS} diff --git a/scripts/prereq.sh b/scripts/prereq.sh index 44aef4ef9..0ccbc589f 100755 --- a/scripts/prereq.sh +++ b/scripts/prereq.sh @@ -561,10 +561,15 @@ case $os in ;; esac +if [ "$target" = "defconfig" ]; then + $makebin ADK_TOPDIR=$topdir --no-print-directory -f Makefile.adk $flags $target + exit 0 +fi + if [ ! -f $topdir/.config ]; then - # create a config if no exist - touch .firstrun - $makebin ADK_TOPDIR=$topdir --no-print-directory -f Makefile.adk menuconfig + # create a config if no exist + touch .firstrun + $makebin ADK_TOPDIR=$topdir --no-print-directory -f Makefile.adk menuconfig else # scan host-tool prerequisites of certain packages before building. . $topdir/.config |