2014-08-14 09:55:49 +00:00
|
|
|
# possible arch values are arm aarch64 mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
|
2011-03-25 22:52:33 +00:00
|
|
|
# ppcemb armeb alpha sparc32plus i386 x86_64 cris m68k microblaze sparc sparc32
|
|
|
|
# sparc32plus
|
|
|
|
|
|
|
|
def get_qemu_target_list(d):
|
|
|
|
import bb
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
archs = d.getVar('QEMU_TARGETS', True).split()
|
2014-08-17 08:51:01 +00:00
|
|
|
tos = d.getVar('HOST_OS', True)
|
|
|
|
softmmuonly = ""
|
2015-10-28 04:34:55 +00:00
|
|
|
for arch in ['ppcemb']:
|
2011-03-25 22:52:33 +00:00
|
|
|
if arch in archs:
|
2014-08-17 08:51:01 +00:00
|
|
|
softmmuonly += arch + "-softmmu,"
|
2012-07-11 17:33:43 +00:00
|
|
|
archs.remove(arch)
|
2014-08-17 08:51:01 +00:00
|
|
|
linuxuseronly = ""
|
2011-03-25 22:52:33 +00:00
|
|
|
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
|
|
|
if arch in archs:
|
2014-08-17 08:51:01 +00:00
|
|
|
linuxuseronly += arch + "-linux-user,"
|
2012-07-11 17:33:43 +00:00
|
|
|
archs.remove(arch)
|
2014-08-17 08:51:01 +00:00
|
|
|
if 'linux' not in tos:
|
|
|
|
return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
|
|
|
return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
2011-03-25 22:52:33 +00:00
|
|
|
|