summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe/barebox.bbclass
diff options
context:
space:
mode:
authorEnrico Jorns <ejo@pengutronix.de>2024-10-11 14:01:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-10-11 15:57:44 +0100
commit776c12c5c860bd0be4e2399724b7fbe04107a838 (patch)
tree7e1123af7843609facbee8a3c6ad3ef30ca69f58 /meta/classes-recipe/barebox.bbclass
parenta9531159c55f018984c58ed0cea1da0e9263b2d2 (diff)
downloadpoky-776c12c5c860bd0be4e2399724b7fbe04107a838.tar.gz
barebox: set default BAREBOX_CONFIG for qemu machines
These are set in the barebox class rather in the corresponding machines (where they would belong otherwise) to keep the impact of barebox to oe-core minimal for now. "multi_v7_defconfig" is used for qemuarm since this is the default barebox armv7 config that just enables all supported platforms. "multi_v8_defconfig" is used for qemuarm64 sine this is the default barebox armv8 config that just enables all supported platforms. "efi_defconfig" is used for qemux86-64 which is the primary platform where barebox will not be the first stage bootloader but an EFI payload. Since these changes make barebox a provider for virtual/bootloader, explicitly default to u-boot in the corresponding MACHINE configs to not unnecessarily surprise users. (From OE-Core rev: 93da14f8f85202bad3dec9d979d01f4e8f9708d6) Signed-off-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/barebox.bbclass')
-rw-r--r--meta/classes-recipe/barebox.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes-recipe/barebox.bbclass b/meta/classes-recipe/barebox.bbclass
index 413a78f18c..200ba08326 100644
--- a/meta/classes-recipe/barebox.bbclass
+++ b/meta/classes-recipe/barebox.bbclass
@@ -57,6 +57,11 @@ EXTRA_OEMAKE = " \
57BAREBOX_CONFIG[doc] = "The barebox kconfig defconfig file. Not used if a file called defconfig is added to the SRC_URI." 57BAREBOX_CONFIG[doc] = "The barebox kconfig defconfig file. Not used if a file called defconfig is added to the SRC_URI."
58BAREBOX_CONFIG ?= "" 58BAREBOX_CONFIG ?= ""
59 59
60# set sensible default configs for some of oe-core's QEMU MACHINEs
61BAREBOX_CONFIG:qemuarm = "multi_v7_defconfig"
62BAREBOX_CONFIG:qemuarm64 = "multi_v8_defconfig"
63BAREBOX_CONFIG:qemux86-64 = "efi_defconfig"
64
60# prevent from acting as non-buildable provider 65# prevent from acting as non-buildable provider
61python () { 66python () {
62 bareboxconfig = d.getVar('BAREBOX_CONFIG') 67 bareboxconfig = d.getVar('BAREBOX_CONFIG')