mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 10:13:03 +01:00
Using "1" with getVar is bad coding style and "True" is preferred. This patch is a sed over the meta directory of the form: sed \ -e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \ -e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \ -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 lines
336 B
Plaintext
16 lines
336 B
Plaintext
#
|
|
# This class contains functions for recipes that need QEMU or test for its
|
|
# existance.
|
|
#
|
|
|
|
def qemu_target_binary(data):
|
|
import bb
|
|
|
|
target_arch = data.getVar("TARGET_ARCH", True)
|
|
if target_arch in ("i486", "i586", "i686"):
|
|
target_arch = "i386"
|
|
elif target_arch == "powerpc":
|
|
target_arch = "ppc"
|
|
|
|
return "qemu-" + target_arch
|