Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14013
-gerrit
commit bb5905e7f4cc8d31d6d07692fc9bfe30dcf46514
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Wed Mar 9 20:00:37 2016 +0100
[NOTFORMERGE] payloads: Set default to GRUB2 and add grub.cfg
This is just for build testing.
Change-Id: I74eb389442412bbe6336f3c637b23fd127a2e98a
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
grub.cfg | 1 +
payloads/Kconfig | 2 +-
payloads/external/GRUB2/Kconfig | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/grub.cfg b/grub.cfg
new file mode 100644
index 0000000..9daeafb
--- /dev/null
+++ b/grub.cfg
@@ -0,0 +1 @@
+test
diff --git a/payloads/Kconfig b/payloads/Kconfig
index c7b9e2a..40559aa 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -3,7 +3,7 @@ menu "Payload"
choice
prompt "Add a payload"
default PAYLOAD_NONE if !ARCH_X86
- default PAYLOAD_SEABIOS if ARCH_X86
+ default PAYLOAD_GRUB2 if ARCH_X86
config PAYLOAD_NONE
bool "None"
diff --git a/payloads/external/GRUB2/Kconfig b/payloads/external/GRUB2/Kconfig
index 7a4562c..cf533c5 100644
--- a/payloads/external/GRUB2/Kconfig
+++ b/payloads/external/GRUB2/Kconfig
@@ -27,7 +27,7 @@ config PAYLOAD_FILE
config GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
bool "Include GRUB2 runtime config file into ROM image"
depends on PAYLOAD_GRUB2
- default n
+ default y
help
The GRUB2 payload reads the runtime configuration file from the image
stored on the flash ROM chip. Without that, it’ll just drop into a
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14013
-gerrit
commit 20b6444b0dad405f1788e464769a91be8b86119e
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Wed Mar 9 20:00:37 2016 +0100
[NOTFORMERGE] payloads: Set default to GRUB2
This is just for build testing.
Change-Id: I74eb389442412bbe6336f3c637b23fd127a2e98a
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
payloads/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/payloads/Kconfig b/payloads/Kconfig
index c7b9e2a..40559aa 100644
--- a/payloads/Kconfig
+++ b/payloads/Kconfig
@@ -3,7 +3,7 @@ menu "Payload"
choice
prompt "Add a payload"
default PAYLOAD_NONE if !ARCH_X86
- default PAYLOAD_SEABIOS if ARCH_X86
+ default PAYLOAD_GRUB2 if ARCH_X86
config PAYLOAD_NONE
bool "None"
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/5109
-gerrit
commit 6d2a1a3f8d7676abbc3b11ce56c3e520161a4617
Author: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
Date: Mon Feb 3 23:09:30 2014 +0100
payloads/GRUB2: Add Kconfig option for grub.cfg
Change-Id: I5480d6a5f2a6bbae4222e05bbe92eb717e1aff65
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo(a)no-log.org>
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
payloads/external/GRUB2/Kconfig | 23 +++++++++++++++++++++++
payloads/external/Makefile.inc | 4 ++++
2 files changed, 27 insertions(+)
diff --git a/payloads/external/GRUB2/Kconfig b/payloads/external/GRUB2/Kconfig
index 04f0fa9..7a4562c 100644
--- a/payloads/external/GRUB2/Kconfig
+++ b/payloads/external/GRUB2/Kconfig
@@ -24,4 +24,27 @@ config GRUB2_EXTRA_MODULES
config PAYLOAD_FILE
default "payloads/external/GRUB2/grub2/build/default_payload.elf"
+config GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
+ bool "Include GRUB2 runtime config file into ROM image"
+ depends on PAYLOAD_GRUB2
+ default n
+ help
+ The GRUB2 payload reads the runtime configuration file from the image
+ stored on the flash ROM chip. Without that, it’ll just drop into a
+ rescue shell.
+ .
+ This configuration may need to be coreboot specific.
+ .
+ Select this option, if you want to include the GRUB2 runtime
+ configuration file into the image as `etc/grub.cfg`.
+ .
+ You can add this file manually too.
+
+config GRUB2_RUNTIME_CONFIG_FILE
+ string "Path of grub.cfg"
+ depends on GRUB2_INCLUDE_RUNTIME_CONFIG_FILE
+ default "grub.cfg"
+ help
+ The path of the GRUB2 runtime configuration file to be added to CBFS.
+
endif
diff --git a/payloads/external/Makefile.inc b/payloads/external/Makefile.inc
index 557de2a..a26762a 100644
--- a/payloads/external/Makefile.inc
+++ b/payloads/external/Makefile.inc
@@ -34,6 +34,10 @@ cbfs-files-$(CONFIG_INCLUDE_CONFIG_FILE) += payload_revision
payload_revision-file := $(PAYLOAD_VERSION)
payload_revision-type := raw
+cbfs-files-$(CONFIG_GRUB2_INCLUDE_RUNTIME_CONFIG_FILE) += etc/grub.cfg
+etc/grub.cfg-file := $(CONFIG_GRUB2_RUNTIME_CONFIG_FILE)
+etc/grub.cfg-type := raw
+
SEABIOS_CC_OFFSET=$(if $(filter %ccache,$(HOSTCC)),2,1)
seabios:
$(MAKE) -C payloads/external/SeaBIOS -f Makefile.inc \