From 512d3b713c4eaa492909bd98ffaa707c50e03e02 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Mon, 2 Aug 2010 18:56:04 -0700 Subject: eglibc: import eglibc_2.12 recipe from OE use http proto for svn checkout cosmetic cleanups to metadata Signed-off-by: Nitin A Kamble --- meta/classes/qemu.bbclass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta/classes/qemu.bbclass (limited to 'meta/classes/qemu.bbclass') 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 -- cgit v1.2.3-54-g00ecf