kconfig: automatically include mainboards
This change switches all mainboard vendors and mainboards
to be autoincluded by Kconfig, rather than having to be mentioned
explicitly.
This means, vendor and mainboard directories are becoming more
"drop in", e.g. be placed in the coreboot directory hierarchy
without having to modify any higher level coreboot files.
The long term plan is to enable out of tree mainboards / components
to be built with a given coreboot version (given that the API did
not change)
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Change-Id: Ib68ce1478a2e12562aeac6297128a21eb174d58a
Reviewed-on: http://review.coreboot.org/9295
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
diff --git a/src/mainboard/iei/Kconfig b/src/mainboard/iei/Kconfig
index d6578de..1d0a1e2 100644
--- a/src/mainboard/iei/Kconfig
+++ b/src/mainboard/iei/Kconfig
@@ -21,21 +21,11 @@
choice
prompt "Mainboard model"
-config BOARD_IEI_KINO_FAM10
- bool "Kino-780AM2(Fam10)"
-config BOARD_IEI_PCISA_LX_800_R10
- bool "PCISA LX-800-R10"
-config BOARD_IEI_PM_LX_800_R11
- bool "PM LX-800-R11"
-config BOARD_IEI_PM_LX2_800_R10
- bool "PM LX2-800-R10"
+source "src/mainboard/iei/*/Kconfig.name"
endchoice
-source "src/mainboard/iei/kino-780am2-fam10/Kconfig"
-source "src/mainboard/iei/pcisa-lx-800-r10/Kconfig"
-source "src/mainboard/iei/pm-lx-800-r11/Kconfig"
-source "src/mainboard/iei/pm-lx2-800-r10/Kconfig"
+source "src/mainboard/iei/*/Kconfig"
config MAINBOARD_VENDOR
string
diff --git a/src/mainboard/iei/Kconfig.name b/src/mainboard/iei/Kconfig.name
new file mode 100644
index 0000000..1dec78d
--- /dev/null
+++ b/src/mainboard/iei/Kconfig.name
@@ -0,0 +1,2 @@
+config VENDOR_IEI
+ bool "IEI"
diff --git a/src/mainboard/iei/kino-780am2-fam10/Kconfig.name b/src/mainboard/iei/kino-780am2-fam10/Kconfig.name
new file mode 100644
index 0000000..20dfeda
--- /dev/null
+++ b/src/mainboard/iei/kino-780am2-fam10/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_IEI_KINO_FAM10
+ bool "Kino-780AM2(Fam10)"
diff --git a/src/mainboard/iei/pcisa-lx-800-r10/Kconfig.name b/src/mainboard/iei/pcisa-lx-800-r10/Kconfig.name
new file mode 100644
index 0000000..84d2f49
--- /dev/null
+++ b/src/mainboard/iei/pcisa-lx-800-r10/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_IEI_PCISA_LX_800_R10
+ bool "PCISA LX-800-R10"
diff --git a/src/mainboard/iei/pm-lx-800-r11/Kconfig.name b/src/mainboard/iei/pm-lx-800-r11/Kconfig.name
new file mode 100644
index 0000000..e07451a
--- /dev/null
+++ b/src/mainboard/iei/pm-lx-800-r11/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_IEI_PM_LX_800_R11
+ bool "PM LX-800-R11"
diff --git a/src/mainboard/iei/pm-lx2-800-r10/Kconfig.name b/src/mainboard/iei/pm-lx2-800-r10/Kconfig.name
new file mode 100644
index 0000000..af78c50
--- /dev/null
+++ b/src/mainboard/iei/pm-lx2-800-r10/Kconfig.name
@@ -0,0 +1,2 @@
+config BOARD_IEI_PM_LX2_800_R10
+ bool "PM LX2-800-R10"