uclibc.inc,uclibc-config.inc: Untabify python snippets
To appease bitbake (From OE-Core rev: cf975073a11c93f4a9fb5bdd72c16dc0ca9c3c54) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
48df3fe947
commit
9a33e7b9a8
|
@ -37,16 +37,26 @@ def map_uclibc_arch(a, d):
|
|||
|
||||
valid_archs = d.getVar('valid_archs', True).split()
|
||||
|
||||
if re.match('^(arm|sa110).*', a): return 'arm'
|
||||
elif re.match('^(i.86|athlon)$', a): return 'i386'
|
||||
elif re.match('^mips.*', a): return 'mips'
|
||||
elif re.match('^parisc.*', a): return 'hppa'
|
||||
elif re.match('^ppc.*', a): return 'powerpc'
|
||||
elif re.match('^s390.*', a): return 's390'
|
||||
elif re.match('^sh.*', a): return 'sh'
|
||||
elif re.match('^(sun|sparc).*', a): return 'sparc'
|
||||
elif re.match('^xtensa.*', a): return 'xtensa'
|
||||
elif a in valid_archs: return a
|
||||
if re.match('^(arm|sa110).*', a):
|
||||
return 'arm'
|
||||
elif re.match('^(i.86|athlon)$', a):
|
||||
return 'i386'
|
||||
elif re.match('^mips.*', a):
|
||||
return 'mips'
|
||||
elif re.match('^parisc.*', a):
|
||||
return 'hppa'
|
||||
elif re.match('^ppc.*', a):
|
||||
return 'powerpc'
|
||||
elif re.match('^s390.*', a):
|
||||
return 's390'
|
||||
elif re.match('^sh.*', a):
|
||||
return 'sh'
|
||||
elif re.match('^(sun|sparc).*', a):
|
||||
return 'sparc'
|
||||
elif re.match('^xtensa.*', a):
|
||||
return 'xtensa'
|
||||
elif a in valid_archs:
|
||||
return a
|
||||
else:
|
||||
bb.error("cannot map '%s' to a uClibc architecture" % a)
|
||||
|
||||
|
@ -58,11 +68,15 @@ def map_uclibc_abi(o, d):
|
|||
|
||||
arch = d.getVar('TARGET_ARCH', True)
|
||||
if map_uclibc_arch(d.getVar('TARGET_ARCH', True), d) == "arm":
|
||||
if re.match('.*eabi$', o): return 'ARM_EABI'
|
||||
else: return 'ARM_OABI'
|
||||
if re.match('.*eabi$', o):
|
||||
return 'ARM_EABI'
|
||||
else:
|
||||
return 'ARM_OABI'
|
||||
# FIXME: This is inaccurate! Handle o32, n32, n64
|
||||
elif re.match('^mips.*64$', arch): return 'MIPS_N64_ABI'
|
||||
elif re.match('^mips.*', arch): return 'MIPS_O32_ABI'
|
||||
elif re.match('^mips.*64$', arch):
|
||||
return 'MIPS_N64_ABI'
|
||||
elif re.match('^mips.*', arch):
|
||||
return 'MIPS_O32_ABI'
|
||||
return ""
|
||||
|
||||
export UCLIBC_ABI = "${@map_uclibc_abi(d.getVar('TARGET_OS', True), d)}"
|
||||
|
|
Loading…
Reference in New Issue