summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-08-02 18:56:04 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-13 23:37:30 +0100
commit512d3b713c4eaa492909bd98ffaa707c50e03e02 (patch)
tree288f5495488d54e4060e0573a4b15b92c1bf6d98 /meta/classes
parent2c11926528df4459de9c4b6eca3f45c6d3908f06 (diff)
downloadopenembedded-core-512d3b713c4eaa492909bd98ffaa707c50e03e02.tar.gz
openembedded-core-512d3b713c4eaa492909bd98ffaa707c50e03e02.tar.bz2
openembedded-core-512d3b713c4eaa492909bd98ffaa707c50e03e02.zip
eglibc: import eglibc_2.12 recipe from OE
use http proto for svn checkout cosmetic cleanups to metadata Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/qemu.bbclass15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/classes/qemu.bbclass b/meta/classes/qemu.bbclass
new file mode 100644
index 0000000000..66dfb2b0d2
--- /dev/null
+++ b/meta/classes/qemu.bbclass
@@ -0,0 +1,15 @@
+#
+# This class contains functions for recipes that need QEMU or test for its
+# existance.
+#
+
+def qemu_target_binary(data):
+ import bb
+
+ target_arch = bb.data.getVar("TARGET_ARCH", data, 1)
+ if target_arch in ("i486", "i586", "i686"):
+ target_arch = "i386"
+ elif target_arch == "powerpc":
+ target_arch = "ppc"
+
+ return "qemu-" + target_arch