summaryrefslogtreecommitdiff
path: root/payloads/external/GRUB2
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2016-02-17 18:21:24 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2016-02-17 18:41:39 +0100
commit2e8117143a695b5331f9c79eeb77bb870db407b3 (patch)
tree635cedac1cd0c4e49eb28cfd44a034d255e39c73 /payloads/external/GRUB2
parent6a622311e477d2ac387dc6bb2b9f0f287b149531 (diff)
payloads/external/GRUB2: Add a possibility to add custom modules.
Change-Id: I3004eac248561b0cd4e44bcef90fc66fae5d77ca Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: https://review.coreboot.org/13727 Tested-by: build bot (Jenkins) Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@googlemail.com>
Diffstat (limited to 'payloads/external/GRUB2')
-rw-r--r--payloads/external/GRUB2/Kconfig10
-rw-r--r--payloads/external/GRUB2/Makefile.inc2
2 files changed, 11 insertions, 1 deletions
diff --git a/payloads/external/GRUB2/Kconfig b/payloads/external/GRUB2/Kconfig
index 3d0fa6ca81..04f0fa98af 100644
--- a/payloads/external/GRUB2/Kconfig
+++ b/payloads/external/GRUB2/Kconfig
@@ -11,6 +11,16 @@ config GRUB2_MASTER
endchoice
+config GRUB2_EXTRA_MODULES
+ string "Extra modules to include in GRUB image"
+ help
+ Space-separated list of additional modules to include. Few common
+ ones:
+ * bsd for *BSD
+ * png/jpg for PNG/JPG images
+ * gfxmenu for graphical menus (you'll need a theme as well)
+ * gfxterm_background for setting background
+
config PAYLOAD_FILE
default "payloads/external/GRUB2/grub2/build/default_payload.elf"
diff --git a/payloads/external/GRUB2/Makefile.inc b/payloads/external/GRUB2/Makefile.inc
index 4b08e7df43..11630c8469 100644
--- a/payloads/external/GRUB2/Makefile.inc
+++ b/payloads/external/GRUB2/Makefile.inc
@@ -42,7 +42,7 @@ config: checkout
grub2: config
echo " MAKE GRUB2 $(NAME-y)"
$(MAKE) -C grub2/build CC="$(HOSTCC)"
- $(MAKE) -C grub2/build default_payload.elf
+ $(MAKE) -C grub2/build default_payload.elf EXTRA_PAYLOAD_MODULES="$(GRUB2_EXTRA_MODULES)"
clean:
test -d grub2 && $(MAKE) -C grub2 clean || exit 0