[coreboot-gerrit] Patch set updated for coreboot: 3b789ca kconfig: example of how to automatically include mainboards
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Sat Apr 4 02:00:46 CEST 2015
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9295
-gerrit
commit 3b789ca332fd7c46f5f5b04be7fb70fa6701cff4
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date: Fri Apr 3 20:11:13 2015 +0200
kconfig: example of how to automatically include mainboards
This is an unfinished example that shows how vendor and mainboard
directories could be "drop in", e.g. be placed in coreboot without
having to modify any higher level coreboot files.
DO NOT COMMIT! This is only a demonstration of what's possible.
If we decide to go down this road, there is a lot more to do.
Change-Id: Ib68ce1478a2e12562aeac6297128a21eb174d58a
Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
src/mainboard/Kconfig | 69 +------------------------------
src/mainboard/google/Kconfig | 25 +----------
src/mainboard/google/Kconfig.name | 2 +
src/mainboard/google/panther/Kconfig.name | 2 +
4 files changed, 8 insertions(+), 90 deletions(-)
diff --git a/src/mainboard/Kconfig b/src/mainboard/Kconfig
index 610bfbb..91eb6a8 100644
--- a/src/mainboard/Kconfig
+++ b/src/mainboard/Kconfig
@@ -60,8 +60,7 @@ config VENDOR_GIGABYTE
bool "GIGABYTE"
config VENDOR_GIZMOSPHERE
bool "GizmoSphere"
-config VENDOR_GOOGLE
- bool "Google"
+source src/mainboard/google/Kconfig.name
config VENDOR_HP
bool "HP"
config VENDOR_IBASE
@@ -137,71 +136,7 @@ config VENDOR_WYSE
endchoice
-source "src/mainboard/a-trend/Kconfig"
-source "src/mainboard/aaeon/Kconfig"
-source "src/mainboard/abit/Kconfig"
-source "src/mainboard/adlink/Kconfig"
-source "src/mainboard/advansus/Kconfig"
-source "src/mainboard/amd/Kconfig"
-source "src/mainboard/aopen/Kconfig"
-source "src/mainboard/apple/Kconfig"
-source "src/mainboard/arima/Kconfig"
-source "src/mainboard/artecgroup/Kconfig"
-source "src/mainboard/asrock/Kconfig"
-source "src/mainboard/asus/Kconfig"
-source "src/mainboard/avalue/Kconfig"
-source "src/mainboard/azza/Kconfig"
-source "src/mainboard/bachmann/Kconfig"
-source "src/mainboard/bcom/Kconfig"
-source "src/mainboard/bifferos/Kconfig"
-source "src/mainboard/biostar/Kconfig"
-source "src/mainboard/broadcom/Kconfig"
-source "src/mainboard/compaq/Kconfig"
-source "src/mainboard/cubietech/Kconfig"
-source "src/mainboard/digitallogic/Kconfig"
-source "src/mainboard/dmp/Kconfig"
-source "src/mainboard/ecs/Kconfig"
-source "src/mainboard/emulation/Kconfig"
-source "src/mainboard/getac/Kconfig"
-source "src/mainboard/gigabyte/Kconfig"
-source "src/mainboard/gizmosphere/Kconfig"
-source "src/mainboard/google/Kconfig"
-source "src/mainboard/hp/Kconfig"
-source "src/mainboard/ibase/Kconfig"
-source "src/mainboard/ibm/Kconfig"
-source "src/mainboard/iei/Kconfig"
-source "src/mainboard/intel/Kconfig"
-source "src/mainboard/iwave/Kconfig"
-source "src/mainboard/iwill/Kconfig"
-source "src/mainboard/jetway/Kconfig"
-source "src/mainboard/kontron/Kconfig"
-source "src/mainboard/lanner/Kconfig"
-source "src/mainboard/lenovo/Kconfig"
-source "src/mainboard/linutop/Kconfig"
-source "src/mainboard/lippert/Kconfig"
-source "src/mainboard/mitac/Kconfig"
-source "src/mainboard/msi/Kconfig"
-source "src/mainboard/nec/Kconfig"
-source "src/mainboard/newisys/Kconfig"
-source "src/mainboard/nokia/Kconfig"
-source "src/mainboard/nvidia/Kconfig"
-source "src/mainboard/packardbell/Kconfig"
-source "src/mainboard/pcengines/Kconfig"
-source "src/mainboard/rca/Kconfig"
-source "src/mainboard/roda/Kconfig"
-source "src/mainboard/samsung/Kconfig"
-source "src/mainboard/siemens/Kconfig"
-source "src/mainboard/soyo/Kconfig"
-source "src/mainboard/sunw/Kconfig"
-source "src/mainboard/supermicro/Kconfig"
-source "src/mainboard/technexion/Kconfig"
-source "src/mainboard/thomson/Kconfig"
-source "src/mainboard/ti/Kconfig"
-source "src/mainboard/traverse/Kconfig"
-source "src/mainboard/tyan/Kconfig"
-source "src/mainboard/via/Kconfig"
-source "src/mainboard/winent/Kconfig"
-source "src/mainboard/wyse/Kconfig"
+source "src/mainboard/*/Kconfig"
config BOARD_ROMSIZE_KB_64
bool
diff --git a/src/mainboard/google/Kconfig b/src/mainboard/google/Kconfig
index c193d81..2d1bba0 100644
--- a/src/mainboard/google/Kconfig
+++ b/src/mainboard/google/Kconfig
@@ -37,8 +37,7 @@ config BOARD_GOOGLE_NYAN_BIG
bool "Nyan Big"
config BOARD_GOOGLE_NYAN_BLAZE
bool "Nyan Blaze"
-config BOARD_GOOGLE_PANTHER
- bool "Panther"
+source src/mainboard/google/panther/Kconfig.name
config BOARD_GOOGLE_PARROT
bool "Parrot"
config BOARD_GOOGLE_PEACH_PIT
@@ -66,27 +65,7 @@ config BOARD_GOOGLE_VEYRON_PINKY
endchoice
-source "src/mainboard/google/bolt/Kconfig"
-source "src/mainboard/google/butterfly/Kconfig"
-source "src/mainboard/google/daisy/Kconfig"
-source "src/mainboard/google/falco/Kconfig"
-source "src/mainboard/google/link/Kconfig"
-source "src/mainboard/google/nyan/Kconfig"
-source "src/mainboard/google/nyan_big/Kconfig"
-source "src/mainboard/google/nyan_blaze/Kconfig"
-source "src/mainboard/google/panther/Kconfig"
-source "src/mainboard/google/parrot/Kconfig"
-source "src/mainboard/google/peach_pit/Kconfig"
-source "src/mainboard/google/peppy/Kconfig"
-source "src/mainboard/google/rambi/Kconfig"
-source "src/mainboard/google/rush/Kconfig"
-source "src/mainboard/google/rush_ryu/Kconfig"
-source "src/mainboard/google/samus/Kconfig"
-source "src/mainboard/google/slippy/Kconfig"
-source "src/mainboard/google/storm/Kconfig"
-source "src/mainboard/google/stout/Kconfig"
-source "src/mainboard/google/urara/Kconfig"
-source "src/mainboard/google/veyron_pinky/Kconfig"
+source "src/mainboard/google/*/Kconfig"
config MAINBOARD_VENDOR
string "Mainboard Vendor"
diff --git a/src/mainboard/google/Kconfig.name b/src/mainboard/google/Kconfig.name
new file mode 100644
index 0000000..6ae874b
--- /dev/null
+++ b/src/mainboard/google/Kconfig.name
@@ -0,0 +1,2 @@
+config VENDOR_GOOGLE
+ bool "Google"
diff --git a/src/mainboard/google/panther/Kconfig.name b/src/mainboard/google/panther/Kconfig.name
new file mode 100644
index 0000000..c8cd14b
--- /dev/null
+++ b/src/mainboard/google/panther/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_GOOGLE_PANTHER
+ bool "Panther"
More information about the coreboot-gerrit
mailing list