From 70396690aa79bee8770caa07e1717c87e12ae4cb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 13 Dec 2015 18:20:44 +0100 Subject: special case for defconfig used by embedded-test.sh --- Makefile | 2 +- scripts/prereq.sh | 11 ++++++++--- 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 -- cgit v1.2.3