summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuciano Dittgen <luciano.dittgen@ossystems.com.br>2026-09-17 11:03:25 -0300
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2026-09-17 19:29:27 +0000
commite11ddccde3415195d4ae41f0209cbf50e83a399c (patch)
treee042bd2eca5a07bb47fa6af2e376264982fd88d3
parent93c160a82d41717862c3e7f8db02ae0cdfed55e5 (diff)
downloadmeta-freescale-backport-2717-to-wrynose.tar.gz
qemu-qoriq: Merge the two do_install:append fragmentsbackport-2717-to-wrynose
One fragment sat above do_configure and the other below do_install, so the recipe split one function in two and read as installing before configuring; oelint flagged both as multifragments and task.order. Folding the first into the second preserves the concatenation order, so the generated task is unchanged. Tested with bitbake qemu-qoriq on ls1046ardb: do_install re-executed and the buildhistory delta was empty. Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br> (cherry picked from commit d5c2d5181bc8b2399198286cb6e5c24f32cecf82)
-rw-r--r--recipes-devtools/qemu/qemu-qoriq.inc21
1 files changed, 9 insertions, 12 deletions
diff --git a/recipes-devtools/qemu/qemu-qoriq.inc b/recipes-devtools/qemu/qemu-qoriq.inc
index 55a8bc682..b626feae5 100644
--- a/recipes-devtools/qemu/qemu-qoriq.inc
+++ b/recipes-devtools/qemu/qemu-qoriq.inc
@@ -22,11 +22,6 @@ COMPATIBLE_HOST:mipsarchn64 = "null"
22# upstream states qemu doesn't work without optimization 22# upstream states qemu doesn't work without optimization
23DEBUG_BUILD = "0" 23DEBUG_BUILD = "0"
24 24
25do_install:append() {
26 # Prevent QA warnings about installed ${localstatedir}/run
27 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
28}
29
30do_compile_ptest() { 25do_compile_ptest() {
31 make buildtest-TESTS 26 make buildtest-TESTS
32} 27}
@@ -130,19 +125,21 @@ do_install () {
130 oe_runmake 'DESTDIR=${D}' install 125 oe_runmake 'DESTDIR=${D}' install
131} 126}
132 127
133# The following fragment will create a wrapper for qemu-mips user emulation
134# binary in order to work around a segmentation fault issue. Basically, by
135# default, the reserved virtual address space for 32-on-64 bit is set to 4GB.
136# This will trigger a MMU access fault in the virtual CPU. With this change,
137# the qemu-mips works fine.
138# IMPORTANT: This piece needs to be removed once the root cause is fixed!
139do_install:append() { 128do_install:append() {
129 # Prevent QA warnings about installed ${localstatedir}/run
130 if [ -d ${D}${localstatedir}/run ]; then rmdir ${D}${localstatedir}/run; fi
131
132 # Create a wrapper for qemu-mips user emulation binary in order to work
133 # around a segmentation fault issue. Basically, by default, the reserved
134 # virtual address space for 32-on-64 bit is set to 4GB. This will trigger a
135 # MMU access fault in the virtual CPU. With this change, the qemu-mips works
136 # fine.
137 # IMPORTANT: This piece needs to be removed once the root cause is fixed!
140 if [ -e "${D}/${bindir}/qemu-mips" ]; then 138 if [ -e "${D}/${bindir}/qemu-mips" ]; then
141 create_wrapper ${D}/${bindir}/qemu-mips \ 139 create_wrapper ${D}/${bindir}/qemu-mips \
142 QEMU_RESERVED_VA=0x0 140 QEMU_RESERVED_VA=0x0
143 fi 141 fi
144} 142}
145# END of qemu-mips workaround
146 143
147# QEMU ships firmware and BIOS blobs built for guest architectures other than 144# QEMU ships firmware and BIOS blobs built for guest architectures other than
148# the build target, so the arch QA check flags them by design. 145# the build target, so the arch QA check flags them by design.