Skip to contentSkip to conversation

bootimg: set default value for LABELS variable

PATCH New Ed Bartosh 1 participant 1 message Mar 1, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 bootimg: set default value for LABELS variable

With empty LABELS variable build_efi_cfg skips most of its functionality producing warning message:
'LABELS not defined, nothing to do'
This causes build failure for efi images.

Setting default value for LABELS to 'boot install' should fix this issue.

---
 meta/classes/bootimg.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/bootimg.bbclass +2 -0
index 7946839..0249a9d 100644
@@ -49,6 +49,8 @@ EFI_CLASS = "${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER}",
 
 KERNEL_IMAGETYPE ??= "bzImage"
 
+LABELS ?= "boot install"
+
 # Include legacy boot if MACHINE_FEATURES includes "pcbios" or if it does not
 # contain "efi". This way legacy is supported by default if neither is
 # specified, maintaining the original behavior.
Signature · 1 line
2.1.4