2010-08-03 01:56:04 +00:00
|
|
|
#
|
|
|
|
# This class contains functions for recipes that need QEMU or test for its
|
|
|
|
# existance.
|
|
|
|
#
|
|
|
|
|
|
|
|
def qemu_target_binary(data):
|
|
|
|
import bb
|
|
|
|
|
2012-03-03 10:59:25 +00:00
|
|
|
target_arch = data.getVar("TARGET_ARCH", True)
|
2010-08-03 01:56:04 +00:00
|
|
|
if target_arch in ("i486", "i586", "i686"):
|
|
|
|
target_arch = "i386"
|
|
|
|
elif target_arch == "powerpc":
|
|
|
|
target_arch = "ppc"
|
|
|
|
|
|
|
|
return "qemu-" + target_arch
|