aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-13 14:09:37 +0100
committerAndreas Oberritter <obi@opendreambox.org>2016-04-06 19:27:39 +0200
commit7a4269c9901381bb770234134aed5c84e3fbfb0f (patch)
treeb651e8bcae69b82be6e825c87a526b2937c47c8a
parent94992fc447f2d2c85a76272f46abb5d5b2bb62f7 (diff)
downloadopenembedded-core-contrib-7a4269c9901381bb770234134aed5c84e3fbfb0f.tar.gz
bitbake.conf/qemu: Move QEMU_OPTIONS to qemu.bbclass
The QEMU_OPTIONS variables belong in qemu.bbclass so move them there. The only users of them inherit qemu.bbclass. There is no point in pushing these into every recipe. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 5824293de37919e89f60192836997281933e23d6) Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
-rw-r--r--meta/classes/qemu.bbclass12
-rw-r--r--meta/conf/bitbake.conf13
2 files changed, 12 insertions, 13 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
index 3d437b0e45..abee8aaa7c 100644
--- a/meta/classes/qemu.bbclass
+++ b/meta/classes/qemu.bbclass
@@ -33,3 +33,15 @@ def qemu_run_binary(data, rootfs_path, binary):
return "PSEUDO_UNLOAD=1 " + qemu_binary + " -L " + rootfs_path\
+ " -E LD_LIBRARY_PATH=" + libdir + ":" + base_libdir + " "\
+ rootfs_path + binary
+
+QEMU_OPTIONS = ""
+QEMU_OPTIONS_iwmmxt = "-cpu pxa270-c5"
+QEMU_OPTIONS_armv6 = "-cpu arm1136"
+QEMU_OPTIONS_armv7a = "-cpu cortex-a8"
+QEMU_OPTIONS_e500v2 = "-cpu e500v2"
+QEMU_OPTIONS_e500mc = "-cpu e500mc"
+QEMU_OPTIONS_e5500 = "-cpu e5500"
+QEMU_OPTIONS_e5500-64b = "-cpu e5500"
+QEMU_OPTIONS_e6500 = "-cpu e6500"
+QEMU_OPTIONS_e6500-64b = "-cpu e6500"
+QEMU_OPTIONS_ppc7400 = "-cpu 7400"
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index dae169e0be..abc7581194 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -143,19 +143,6 @@ PACKAGE_ARCHS[vardepsexclude] = "MACHINE_ARCH"
MULTIMACH_TARGET_SYS = "${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
MULTIMACH_HOST_SYS = "${PACKAGE_ARCH}${HOST_VENDOR}-${HOST_OS}"
-# select proper CPU to get binary locales generated
-QEMU_OPTIONS = ""
-QEMU_OPTIONS_iwmmxt = "-cpu pxa270-c5"
-QEMU_OPTIONS_armv6 = "-cpu arm1136"
-QEMU_OPTIONS_armv7a = "-cpu cortex-a8"
-QEMU_OPTIONS_e500v2 = "-cpu e500v2"
-QEMU_OPTIONS_e500mc = "-cpu e500mc"
-QEMU_OPTIONS_e5500 = "-cpu e5500"
-QEMU_OPTIONS_e5500-64b = "-cpu e5500"
-QEMU_OPTIONS_e6500 = "-cpu e6500"
-QEMU_OPTIONS_e6500-64b = "-cpu e6500"
-QEMU_OPTIONS_ppc7400 = "-cpu 7400"
-
##################################################################
# Date/time variables.
##################################################################