# Determine the staged version of perl from the perl configuration file
def get_perl_version(d):
import re
- cfg = bb.data.expand('${STAGING_LIBDIR}/perl/config.sh', d)
+ cfg = bb.data.expand('${STAGING_LIBDIR}/perl/config.sh', d)
try:
f = open(cfg, 'r')
except IOError:
valid_archs = "alpha cris ia64 \
x86_64 i386 x86 \
m68knommu m68k ppc powerpc ppc64 \
- sparc sparc64 \
+ sparc sparc64 \
arm arm26 \
m32r mips \
- sh sh64 um h8300 \
- parisc s390 v850 \
- avr32 blackfin"
+ sh sh64 um h8300 \
+ parisc s390 v850 \
+ avr32 blackfin"
def map_kernel_arch(a, d):
import re
elif re.match('mipsel$', a): return 'mips'
elif re.match('sh(3|4)$', a): return 'sh'
elif re.match('bfin', a): return 'blackfin'
- elif a in valid_archs: return a
+ elif a in valid_archs: return a
else:
bb.error("cannot map '%s' to a linux kernel architecture" % a)
bb.parse.parse_py.BBHandler.feeder(line, l, fn, os.path.basename(fn), d)
line += 1
fp.close()
- anonqueue = bb.data.getVar("__anonqueue", d, True) or []
- body = [x['content'] for x in anonqueue]
- flag = { 'python' : 1, 'func' : 1 }
- bb.data.setVar("__anonfunc", "\n".join(body), d)
- bb.data.setVarFlags("__anonfunc", flag, d)
- try:
- t = bb.data.getVar('T', d)
- bb.data.setVar('T', '${TMPDIR}/', d)
- bb.build.exec_func("__anonfunc", d)
- bb.data.delVar('T', d)
- if t:
- bb.data.setVar('T', t, d)
- except Exception, e:
- bb.msg.debug(1, bb.msg.domain.Parsing, "Exception when executing anonymous function: %s" % e)
- raise
- bb.data.delVar("__anonqueue", d)
- bb.data.delVar("__anonfunc", d)
+ anonqueue = bb.data.getVar("__anonqueue", d, True) or []
+ body = [x['content'] for x in anonqueue]
+ flag = { 'python' : 1, 'func' : 1 }
+ bb.data.setVar("__anonfunc", "\n".join(body), d)
+ bb.data.setVarFlags("__anonfunc", flag, d)
+ try:
+ t = bb.data.getVar('T', d)
+ bb.data.setVar('T', '${TMPDIR}/', d)
+ bb.build.exec_func("__anonfunc", d)
+ bb.data.delVar('T', d)
+ if t:
+ bb.data.setVar('T', t, d)
+ except Exception, e:
+ bb.msg.debug(1, bb.msg.domain.Parsing, "Exception when executing anonymous function: %s" % e)
+ raise
+ bb.data.delVar("__anonqueue", d)
+ bb.data.delVar("__anonfunc", d)
python package_do_package () {
packages = (bb.data.getVar('PACKAGES', d, True) or "").split()
# Remove the stamps and files we added above
# FIXME - we should really only remove the stamps we added
- for fname in glob.glob(stamp + '.*'):
- oe.path.remove(fname)
+ for fname in glob.glob(stamp + '.*'):
+ oe.path.remove(fname)
oe.path.remove(bb.data.expand("${WORKDIR}/tstage", d))
if stageok:
# so we need to remove the autogenerated stamps.
for task in taskscovered:
covered = "%s.do_%s" % (e.stampPrefix[fn], task)
- oe.path.remove(covered)
- oe.path.remove(stamp)
+ oe.path.remove(covered)
+ oe.path.remove(stamp)
}
populate_sysroot_preamble () {
if not abi.isdigit():
f = file(abifile, "w")
f.write(current_abi)
- elif abi == "3" and current_abi == "4":
+ elif abi == "3" and current_abi == "4":
import bb
bb.note("Converting staging from layout version 2 to layout version 3")
os.system(bb.data.expand("mv ${TMPDIR}/staging ${TMPDIR}/sysroots", e.data))
"i486-mingw32": "endian-little bit-32 common-mingw ix86-common",\
"i586-mingw32": "endian-little bit-32 common-mingw ix86-common",\
"i686-mingw32": "endian-little bit-32 common-mingw ix86-common",\
- "ia64-linux": "endian-little bit-64 common-linux common-glibc",\
+ "ia64-linux": "endian-little bit-64 common-linux common-glibc",\
"mipsel-linux": "endian-little bit-32 common-linux common-glibc mips-common",\
"mipsel-linux-uclibc": "endian-little bit-32 common-linux common-uclibc mips-common",\
"mips-linux": "endian-big bit-32 common-linux common-glibc mips-common",\
"powerpc-darwin": "endian-big bit-32 common-darwin",\
"ppc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\
"ppc64-linux": "endian-big bit-64 common-linux common-glibc powerpc-common powerpc64-linux",\
- "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\
- "powerpc-linux-gnuspe": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\
+ "powerpc-linux": "endian-big bit-32 common-linux common-glibc powerpc-common",\
+ "powerpc-linux-gnuspe": "endian-big bit-32 common-linux common-glibc powerpc-common powerpc-linux",\
"powerpc-linux-uclibc": "endian-big bit-32 common-linux common-uclibc powerpc-common",\
"powerpc-linux-uclibcspe": "endian-big bit-32 common-linux common-uclibc powerpc-common powerpc-linux-uclibc",\
"sh3-linux": "endian-little bit-32 common-linux common-glibc sh-common",\
#qemu has taken a dislike to armeb as well
ENABLE_BINARY_LOCALE_GENERATION_armeb = "0"
def detect_arm_abi (d):
- import bb
+ import bb
if bb.data.getVar('DISTRO_FEATURES',d) is None:
if bb.data.getVar('TARGET_ARCH', d, 1) in [ 'arm', 'armeb' ]:
return "oabi"
armv5te iwmmxt armv7a armv7 armv5teb armv4t"
ppc_spe_supporting_arches = "ppce500v2 ppce500"
gnu_suffix = ""
- if bb.data.getVar('LIBC', d, 1) == "uclibc":
- libc_suffix = "uclibc"
+ if bb.data.getVar('LIBC', d, 1) == "uclibc":
+ libc_suffix = "uclibc"
else:
libc_suffix = ""
else:
os_suffix = "uclinux"
else:
- os_suffix = "linux"
+ os_suffix = "linux"
bparch = bb.data.getVar('BASE_PACKAGE_ARCH', d,1)
if bb.data.getVar('DISTRO_FEATURES',d,1) is not None and \