[1/2] allarch: Fix interaction with qemu class

Message ID 20220107135348.1505019-1-richard.purdie@linuxfoundation.org
State Accepted, archived
Commit 049879ba842d89f268b8e3a4e26410d13bc54158
Headers show
Series [1/2] allarch: Fix interaction with qemu class | expand

Commit Message

Richard Purdie Jan. 7, 2022, 1:53 p.m. UTC
The qemu class declares functions which are architecture specific. If a user such
as meson is used in an allarch recipe, this leads to sstate which is machine
specific. To fix this, remove the architecture specific part, since there are no
binaries in allarch classes, this change shouldn't break anything.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 meta/classes/allarch.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/classes/allarch.bbclass b/meta/classes/allarch.bbclass
index 5bd5c44a276..a766a654a9b 100644
--- a/meta/classes/allarch.bbclass
+++ b/meta/classes/allarch.bbclass
@@ -61,3 +61,5 @@  python () {
         bb.error("Please ensure recipe %s sets PACKAGE_ARCH before inherit packagegroup" % d.getVar("FILE"))
 }
 
+def qemu_wrapper_cmdline(data, rootfs_path, library_paths):
+    return 'false'