summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-08 15:05:19 -0300
committerLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-10 14:12:25 -0300
commit58b42364d2317d487256ea344df8c6fb566721df (patch)
tree12fb5b079bf93c1b2f9d52f60fbeb960b60724e1
parent95c228d4308eae47ba65dd0c24f5536adbf3ee18 (diff)
downloadmeta-freescale-58b42364d2317d487256ea344df8c6fb566721df.tar.gz
qemu-qoriq: Declare the qemu PROVIDES statically
BPN is always qemu-qoriq here, so PROVIDES needed no parse-time code. The per-package rename stays: it generates RPROVIDES:<pkg> names over the PACKAGES that bitbake.conf and ptest.bbclass build, and inline python can compute a value but not a variable name. Tested with bitbake qemu-qoriq -C package on ls1046ardb; bitbake -e is byte-identical and buildhistory reports no change. Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
-rw-r--r--recipes-devtools/qemu/qemu-qoriq_4.2.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq_4.2.bb b/recipes-devtools/qemu/qemu-qoriq_4.2.bb
index 95612f50e..b8164c3d7 100644
--- a/recipes-devtools/qemu/qemu-qoriq_4.2.bb
+++ b/recipes-devtools/qemu/qemu-qoriq_4.2.bb
@@ -6,6 +6,8 @@ COMPATIBLE_MACHINE = "(qoriq)"
6 6
7DEPENDS += "bison-native glib-2.0 pixman zlib" 7DEPENDS += "bison-native glib-2.0 pixman zlib"
8 8
9PROVIDES += "qemu"
10
9SRC_URI = "gitsm://github.com/nxp-qoriq/qemu;protocol=https;nobranch=1 \ 11SRC_URI = "gitsm://github.com/nxp-qoriq/qemu;protocol=https;nobranch=1 \
10 file://powerpc_rom.bin \ 12 file://powerpc_rom.bin \
11 file://run-ptest \ 13 file://run-ptest \
@@ -14,8 +16,10 @@ SRC_URI = "gitsm://github.com/nxp-qoriq/qemu;protocol=https;nobranch=1 \
14 16
15SRCREV = "a46ddbbe661677dcfa342f00ab7ab71e5f6f1a09" 17SRCREV = "a46ddbbe661677dcfa342f00ab7ab71e5f6f1a09"
16 18
19# The rename must follow PACKAGES, not a copy of it: BitBake cannot generate
20# RPROVIDES:<pkg> variable names declaratively.
21# nooelint: oelint.task.noanonpython
17python() { 22python() {
18 d.appendVar('PROVIDES', ' ' + d.getVar('BPN').replace('-qoriq', ''))
19 pkgs = d.getVar('PACKAGES').split() 23 pkgs = d.getVar('PACKAGES').split()
20 for p in pkgs: 24 for p in pkgs:
21 if '-qoriq' in p: 25 if '-qoriq' in p: