aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/qemu.bbclass
blob: aead8e2809d22b50b42cc07d388f44a630b91fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# This class contains functions for recipes that need QEMU or test for its
# existence.
#

def qemu_target_binary(data):
    target_arch = data.getVar("TARGET_ARCH", True)
    if target_arch in ("i486", "i586", "i686"):
        target_arch = "i386"
    elif target_arch == "powerpc":
        target_arch = "ppc"
    elif target_arch == "powerpc64":
        target_arch = "ppc64"

    return "qemu-" + target_arch