coreboot: Defconfig support
authorPaul Kocialkowski <contact@paulk.fr>
Wed, 2 Sep 2015 20:54:16 +0000 (22:54 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Wed, 2 Sep 2015 20:54:16 +0000 (22:54 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
coreboot/coreboot-build.sh
coreboot/coreboot-config.sh
coreboot/coreboot.sh

index 89d9cd3..a8baa99 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/sh
 
 ./coreboot-clean.sh
-./coreboot-config.sh
+./coreboot-config.sh $1
 ./coreboot-image.sh
index a5e8acc..3051e75 100755 (executable)
@@ -2,4 +2,12 @@
 
 . ./coreboot.sh
 
-make -C $SRC obj=$DST DOTCONFIG="$DST/.config" menuconfig
+if [ "$CONFIG" != "" ]
+then
+       make -C $SRC obj=$DST DOTCONFIG="$DST/.config" KBUILD_DEFCONFIG=$CONFIG defconfig
+fi
+
+if [ "$1" = "menuconfig" ]
+then
+       make -C $SRC obj=$DST DOTCONFIG="$DST/.config" menuconfig
+fi
index ce28884..fd608a0 100755 (executable)
@@ -3,3 +3,4 @@
 PARALLEL=9
 SRC="$( pwd )/coreboot"
 DST="$( pwd )/coreboot-out"
+CONFIG=