summaryrefslogtreecommitdiff
path: root/payloads/external/linux
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2015-06-30 15:58:56 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2015-07-07 22:49:47 +0200
commit1a8b7bfe506c39ee595eef84f19d8c75245e27de (patch)
tree8eb3eb074de11f4c52a55e8b747e7eaac4863c3e /payloads/external/linux
parent06f1f8fed62408cebf3ea32bcb486e5bcb450c23 (diff)
payloads: Reorganize Kconfig for external payloads
The integration of external payloads in coreboot is a bit messy. You have to change the to level Kconfig file for every payload (something that we recently fixed for mainboards and chipsets). This means that updating e.g. the SeaBIOS version requires a change outside of the SeaBIOS directory. With this patch you can create a new directory under payloads/external and place a Kconfig and Kconfig.name file in there, and the payload will automatically show up when you do "make menuconfig". Change-Id: I293abcb8eae581d4b3934e64897c0d339a27e7c1 Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: http://review.coreboot.org/10828 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'payloads/external/linux')
-rw-r--r--payloads/external/linux/Kconfig21
-rw-r--r--payloads/external/linux/Kconfig.name9
2 files changed, 30 insertions, 0 deletions
diff --git a/payloads/external/linux/Kconfig b/payloads/external/linux/Kconfig
new file mode 100644
index 0000000000..8b15f99cdc
--- /dev/null
+++ b/payloads/external/linux/Kconfig
@@ -0,0 +1,21 @@
+if PAYLOAD_LINUX
+
+config PAYLOAD_FILE
+ string "Linux path and filename"
+ default "bzImage"
+ help
+ The path and filename of the bzImage kernel to use as payload.
+
+config LINUX_COMMAND_LINE
+ string "Linux command line"
+ default ""
+ help
+ A command line to add to the Linux kernel.
+
+config LINUX_INITRD
+ string "Linux initrd"
+ default ""
+ help
+ An initrd image to add to the Linux kernel.
+
+endif
diff --git a/payloads/external/linux/Kconfig.name b/payloads/external/linux/Kconfig.name
new file mode 100644
index 0000000000..ae1d906f17
--- /dev/null
+++ b/payloads/external/linux/Kconfig.name
@@ -0,0 +1,9 @@
+config PAYLOAD_LINUX
+ bool "A Linux payload"
+ help
+ Select this option if you have a Linux bzImage which coreboot
+ should run as soon as the basic hardware initialization
+ is completed.
+
+ You will be able to specify the location and file name of the
+ payload image later.