2011-03-25 22:52:33 +00:00
|
|
|
# possible arch values are arm mips mipsel mips64 mips64el ppc ppc64 ppc64abi32
|
|
|
|
# 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()
|
2011-03-25 22:52:33 +00:00
|
|
|
targets = ""
|
|
|
|
for arch in ['mips64', 'mips64el', 'ppcemb']:
|
|
|
|
if arch in archs:
|
|
|
|
targets += arch + "-softmmu,"
|
2012-07-11 17:33:43 +00:00
|
|
|
archs.remove(arch)
|
2011-03-25 22:52:33 +00:00
|
|
|
for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus']:
|
|
|
|
if arch in archs:
|
|
|
|
targets += arch + "-linux-user,"
|
2012-07-11 17:33:43 +00:00
|
|
|
archs.remove(arch)
|
2011-03-25 22:52:33 +00:00
|
|
|
return targets + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
|
|
|
|
|