diff mbox

[U-Boot,v2,05/12] x86: coreboot: Make SYS_CONFIG_NAME and DEFAULT_DEVICE_TREE configurable

Message ID 1420471690-13541-6-git-send-email-bmeng.cn@gmail.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng Jan. 5, 2015, 3:28 p.m. UTC
In theory U-Boot built for coreboot is supposed to run as a payload
to be loaded by coreboot on every board that coreboot supports.
The U-Boot build process uses SYS_CONFIG_NAME and DEFAULT_DEVICE_TREE
which are hardcoded in board defconfig and Kconfig files. For better
support of coreboot, we want to make these two options configurable
so that we can easily change them during 'make menuconfig' so that
the generated U-Boot image for coreboot is board configuration aware.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

---

Changes in v2:
- New patch to make SYS_CONFIG_NAME and DEFAULT_DEVICE_TREE configurable

 board/coreboot/coreboot/Kconfig | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Simon Glass Jan. 6, 2015, 1:50 a.m. UTC | #1
On 5 January 2015 at 08:28, Bin Meng <bmeng.cn@gmail.com> wrote:
> In theory U-Boot built for coreboot is supposed to run as a payload
> to be loaded by coreboot on every board that coreboot supports.
> The U-Boot build process uses SYS_CONFIG_NAME and DEFAULT_DEVICE_TREE
> which are hardcoded in board defconfig and Kconfig files. For better
> support of coreboot, we want to make these two options configurable
> so that we can easily change them during 'make menuconfig' so that
> the generated U-Boot image for coreboot is board configuration aware.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
>
> ---
>
> Changes in v2:
> - New patch to make SYS_CONFIG_NAME and DEFAULT_DEVICE_TREE configurable
>
>  board/coreboot/coreboot/Kconfig | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Acked-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

diff --git a/board/coreboot/coreboot/Kconfig b/board/coreboot/coreboot/Kconfig
index 6ca6ced..45e808f 100644
--- a/board/coreboot/coreboot/Kconfig
+++ b/board/coreboot/coreboot/Kconfig
@@ -9,7 +9,20 @@  config SYS_VENDOR
 config SYS_SOC
 	default "coreboot"
 
+comment "coreboot specific options"
+
 config SYS_CONFIG_NAME
+	string "Board configuration file"
 	default "coreboot"
+	help
+	  This option selects the board configuration file in include/configs/
+	  directory to be used to build U-Boot for coreboot.
+
+config DEFAULT_DEVICE_TREE
+	string "Board Device Tree Source (dts) file"
+	default "link"
+	help
+	  This option selects the board Device Tree Source (dts) file in
+	  arch/x86/dts/ directory to be used to build U-Boot for coreboot.
 
 endif