summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xscripts/prereq.sh11
2 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cce700bd8..7acacf833 100644
--- a/Makefile
+++ b/Makefile
@@ -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