summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/grub-efi-cfg.bbclass8
-rw-r--r--meta/recipes-bsp/grub/grub-bootconf_1.00.bb2
2 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes-recipe/grub-efi-cfg.bbclass b/meta/classes-recipe/grub-efi-cfg.bbclass
index 52e85a3bb0..9a5cb99c52 100644
--- a/meta/classes-recipe/grub-efi-cfg.bbclass
+++ b/meta/classes-recipe/grub-efi-cfg.bbclass
@@ -23,6 +23,7 @@ GRUB_TIMEOUT ?= "10"
23GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" 23GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1"
24 24
25GRUB_ROOT ?= "${ROOT}" 25GRUB_ROOT ?= "${ROOT}"
26GRUB_TITLE ?= ""
26APPEND ?= "" 27APPEND ?= ""
27 28
28# Uses MACHINE specific KERNEL_IMAGETYPE 29# Uses MACHINE specific KERNEL_IMAGETYPE
@@ -91,10 +92,15 @@ python build_efi_cfg() {
91 if not overrides: 92 if not overrides:
92 bb.fatal('OVERRIDES not defined') 93 bb.fatal('OVERRIDES not defined')
93 94
95 localdata.need_overrides()
94 localdata.setVar('OVERRIDES', 'grub_' + label + ':' + overrides) 96 localdata.setVar('OVERRIDES', 'grub_' + label + ':' + overrides)
95 97
96 for btype in btypes: 98 for btype in btypes:
97 cfgfile.write('\nmenuentry \'%s%s\'{\n' % (label, btype[0])) 99 title = localdata.getVar('GRUB_TITLE')
100 if not title or len(title) == 0:
101 title = label
102
103 cfgfile.write('\nmenuentry \'%s%s\'{\n' % (title, btype[0]))
98 lb = label 104 lb = label
99 if label == "install": 105 if label == "install":
100 lb = "install-efi" 106 lb = "install-efi"
diff --git a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
index fed3c7e9a3..a004e3a3b2 100644
--- a/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
+++ b/meta/recipes-bsp/grub/grub-bootconf_1.00.bb
@@ -23,7 +23,7 @@ python do_configure() {
23 bb.build.exec_func('build_efi_cfg', d) 23 bb.build.exec_func('build_efi_cfg', d)
24} 24}
25 25
26do_configure[vardeps] += "APPEND ROOT" 26do_configure[vardeps] += "APPEND ROOT GRUB_TITLE"
27 27
28do_install() { 28do_install() {
29 install -d ${D}${EFI_FILES_PATH} 29 install -d ${D}${EFI_FILES_PATH}