Browse Source

special case for defconfig used by embedded-test.sh

Waldemar Brodkorb 8 years ago
parent
commit
70396690aa
2 changed files with 9 additions and 4 deletions
  1. 1 1
      Makefile
  2. 8 3
      scripts/prereq.sh

+ 1 - 1
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}

+ 8 - 3
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