summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-09 15:00:01 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:51:19 +0000
commitc8dee9b92dfd545852ecac8dc2adfc95ac02e957 (patch)
tree5f1b86954646a0f3bb914407994388a6a4346769 /meta/recipes-core
parent5d3860f4a8abb8e95442b04f8b84a333af362fcd (diff)
downloadpoky-c8dee9b92dfd545852ecac8dc2adfc95ac02e957.tar.gz
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>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/busybox/busybox.inc6
-rw-r--r--meta/recipes-core/eglibc/eglibc-options.inc6
-rw-r--r--meta/recipes-core/eglibc/eglibc-package.inc4
-rw-r--r--meta/recipes-core/eglibc/eglibc_2.13.bb4
-rw-r--r--meta/recipes-core/eglibc/eglibc_2.14.bb4
-rw-r--r--meta/recipes-core/glib-2.0/glib-2.0_2.30.0.bb2
-rw-r--r--meta/recipes-core/libxml/libxml2.inc4
-rw-r--r--meta/recipes-core/tasks/task-base.bb10
-rw-r--r--meta/recipes-core/tasks/task-core-sdk.bb6
-rw-r--r--meta/recipes-core/uclibc/uclibc-config.inc16
-rw-r--r--meta/recipes-core/uclibc/uclibc.inc10
11 files changed, 36 insertions, 36 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index f8fee51725..0b74ea6780 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -49,8 +49,8 @@ def busybox_cfg(feature, features, tokens, cnf, rem):
49# Map distro and machine features to config settings 49# Map distro and machine features to config settings
50def features_to_busybox_settings(d): 50def features_to_busybox_settings(d):
51 cnf, rem = ([], []) 51 cnf, rem = ([], [])
52 distro_features = bb.data.getVar('DISTRO_FEATURES', d, True).split() 52 distro_features = d.getVar('DISTRO_FEATURES', True).split()
53 machine_features = bb.data.getVar('MACHINE_FEATURES', d, True).split() 53 machine_features = d.getVar('MACHINE_FEATURES', True).split()
54 busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IPV6', cnf, rem) 54 busybox_cfg('ipv6', distro_features, 'CONFIG_FEATURE_IPV6', cnf, rem)
55 busybox_cfg('largefile', distro_features, 'CONFIG_LFS', cnf, rem) 55 busybox_cfg('largefile', distro_features, 'CONFIG_LFS', cnf, rem)
56 busybox_cfg('largefile', distro_features, 'CONFIG_FDISK_SUPPORT_LARGE_DISKS', cnf, rem) 56 busybox_cfg('largefile', distro_features, 'CONFIG_FDISK_SUPPORT_LARGE_DISKS', cnf, rem)
@@ -79,7 +79,7 @@ DO_IPv6 := ${@base_contains('DISTRO_FEATURES', 'ipv6', 1, 0, d)}
79 79
80python () { 80python () {
81 if "${OE_DEL}": 81 if "${OE_DEL}":
82 bb.data.setVar('configmangle_append', "${OE_DEL}" + "\n", d) 82 d.setVar('configmangle_append', "${OE_DEL}" + "\n")
83 if "${OE_FEATURES}": 83 if "${OE_FEATURES}":
84 bb.data.setVar('configmangle_append', 84 bb.data.setVar('configmangle_append',
85 "/^### DISTRO FEATURES$/a\\\n%s\n\n" % 85 "/^### DISTRO FEATURES$/a\\\n%s\n\n" %
diff --git a/meta/recipes-core/eglibc/eglibc-options.inc b/meta/recipes-core/eglibc/eglibc-options.inc
index 112029dab8..baf4f4b06c 100644
--- a/meta/recipes-core/eglibc/eglibc-options.inc
+++ b/meta/recipes-core/eglibc/eglibc-options.inc
@@ -83,7 +83,7 @@ def distro_features_check_deps(distro_features):
83# Map distro features to eglibc options settings 83# Map distro features to eglibc options settings
84def features_to_eglibc_settings(d): 84def features_to_eglibc_settings(d):
85 cnf = ([]) 85 cnf = ([])
86 distro_features = (bb.data.getVar('DISTRO_FEATURES', d, True) or '').split() 86 distro_features = (d.getVar('DISTRO_FEATURES', True) or '').split()
87 87
88 distro_features_check_deps(distro_features) 88 distro_features_check_deps(distro_features)
89 89
@@ -128,8 +128,8 @@ def features_to_eglibc_settings(d):
128 128
129 # try to fix disable charsets/locales/locale-code compile fail 129 # try to fix disable charsets/locales/locale-code compile fail
130 if 'libc-charsets' in distro_features and 'libc-locales' in distro_features and 'libc-locale-code' in distro_features: 130 if 'libc-charsets' in distro_features and 'libc-locales' in distro_features and 'libc-locale-code' in distro_features:
131 bb.data.setVar('PACKAGE_NO_GCONV', '0', d) 131 d.setVar('PACKAGE_NO_GCONV', '0')
132 else: 132 else:
133 bb.data.setVar('PACKAGE_NO_GCONV', '1', d) 133 d.setVar('PACKAGE_NO_GCONV', '1')
134 134
135 return "\n".join(cnf) 135 return "\n".join(cnf)
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 519a49c75f..020f55876b 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -8,10 +8,10 @@
8 8
9python __anonymous () { 9python __anonymous () {
10 import bb, re 10 import bb, re
11 uc_os = (re.match('.*uclibc*', bb.data.getVar('TARGET_OS', d, 1)) != None) 11 uc_os = (re.match('.*uclibc*', d.getVar('TARGET_OS', 1)) != None)
12 if uc_os: 12 if uc_os:
13 raise bb.parse.SkipPackage("incompatible with target %s" % 13 raise bb.parse.SkipPackage("incompatible with target %s" %
14 bb.data.getVar('TARGET_OS', d, 1)) 14 d.getVar('TARGET_OS', 1))
15} 15}
16 16
17# Set this to zero if you don't want ldconfig in the output package 17# Set this to zero if you don't want ldconfig in the output package
diff --git a/meta/recipes-core/eglibc/eglibc_2.13.bb b/meta/recipes-core/eglibc/eglibc_2.13.bb
index fc8ac64a1c..f076ae7c7f 100644
--- a/meta/recipes-core/eglibc/eglibc_2.13.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.13.bb
@@ -53,10 +53,10 @@ FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/eglibc-${PV}', '${FILE_DIR
53 53
54python __anonymous () { 54python __anonymous () {
55 import bb, re 55 import bb, re
56 uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None) 56 uc_os = (re.match('.*uclibc$', d.getVar('TARGET_OS', 1)) != None)
57 if uc_os: 57 if uc_os:
58 raise bb.parse.SkipPackage("incompatible with target %s" % 58 raise bb.parse.SkipPackage("incompatible with target %s" %
59 bb.data.getVar('TARGET_OS', d, 1)) 59 d.getVar('TARGET_OS', 1))
60} 60}
61 61
62export libc_cv_slibdir = "${base_libdir}" 62export libc_cv_slibdir = "${base_libdir}"
diff --git a/meta/recipes-core/eglibc/eglibc_2.14.bb b/meta/recipes-core/eglibc/eglibc_2.14.bb
index 571d39d26e..501987525e 100644
--- a/meta/recipes-core/eglibc/eglibc_2.14.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.14.bb
@@ -54,10 +54,10 @@ FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/eglibc-${PV}', '${FILE_DIR
54 54
55python __anonymous () { 55python __anonymous () {
56 import bb, re 56 import bb, re
57 uc_os = (re.match('.*uclibc$', bb.data.getVar('TARGET_OS', d, 1)) != None) 57 uc_os = (re.match('.*uclibc$', d.getVar('TARGET_OS', 1)) != None)
58 if uc_os: 58 if uc_os:
59 raise bb.parse.SkipPackage("incompatible with target %s" % 59 raise bb.parse.SkipPackage("incompatible with target %s" %
60 bb.data.getVar('TARGET_OS', d, 1)) 60 d.getVar('TARGET_OS', 1))
61} 61}
62 62
63export libc_cv_slibdir = "${base_libdir}" 63export libc_cv_slibdir = "${base_libdir}"
diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.30.0.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.30.0.bb
index 0efce406e0..634a4e4f4a 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.30.0.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.30.0.bb
@@ -7,7 +7,7 @@ DEPENDS += "libffi python-argparse-native"
7DEPENDS_virtclass-native += "libffi-native python-argparse-native" 7DEPENDS_virtclass-native += "libffi-native python-argparse-native"
8DEPENDS_virtclass-nativesdk += "libffi-nativesdk python-argparse-native zlib-nativesdk" 8DEPENDS_virtclass-nativesdk += "libffi-nativesdk python-argparse-native zlib-nativesdk"
9 9
10SHRT_VER = "${@bb.data.getVar('PV',d,1).split('.')[0]}.${@bb.data.getVar('PV',d,1).split('.')[1]}" 10SHRT_VER = "${@d.getVar('PV',1).split('.')[0]}.${@d.getVar('PV',1).split('.')[1]}"
11 11
12QSORT_PATCH = "file://remove.test.for.qsort_r.patch" 12QSORT_PATCH = "file://remove.test.for.qsort_r.patch"
13QSORT_PATCH_virtclass-native = "" 13QSORT_PATCH_virtclass-native = ""
diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc
index 6f79333b91..1f7a4e6ec8 100644
--- a/meta/recipes-core/libxml/libxml2.inc
+++ b/meta/recipes-core/libxml/libxml2.inc
@@ -33,8 +33,8 @@ export LDFLAGS += "-ldl"
33 33
34python populate_packages_prepend () { 34python populate_packages_prepend () {
35 # autonamer would call this libxml2-2, but we don't want that 35 # autonamer would call this libxml2-2, but we don't want that
36 if bb.data.getVar('DEBIAN_NAMES', d, 1): 36 if d.getVar('DEBIAN_NAMES', 1):
37 bb.data.setVar('PKG_libxml2', '${MLPREFIX}libxml2', d) 37 d.setVar('PKG_libxml2', '${MLPREFIX}libxml2')
38} 38}
39 39
40PACKAGES += "${PN}-utils" 40PACKAGES += "${PN}-utils"
diff --git a/meta/recipes-core/tasks/task-base.bb b/meta/recipes-core/tasks/task-base.bb
index 99b7e17a69..e0960b5e0e 100644
--- a/meta/recipes-core/tasks/task-base.bb
+++ b/meta/recipes-core/tasks/task-base.bb
@@ -126,17 +126,17 @@ python __anonymous () {
126 126
127 import bb 127 import bb
128 128
129 distro_features = set(bb.data.getVar("DISTRO_FEATURES", d, 1).split()) 129 distro_features = set(d.getVar("DISTRO_FEATURES", 1).split())
130 machine_features= set(bb.data.getVar("MACHINE_FEATURES", d, 1).split()) 130 machine_features= set(d.getVar("MACHINE_FEATURES", 1).split())
131 131
132 if "bluetooth" in distro_features and not "bluetooth" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): 132 if "bluetooth" in distro_features and not "bluetooth" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features):
133 bb.data.setVar("ADD_BT", "task-base-bluetooth", d) 133 d.setVar("ADD_BT", "task-base-bluetooth")
134 134
135 if "wifi" in distro_features and not "wifi" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): 135 if "wifi" in distro_features and not "wifi" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features):
136 bb.data.setVar("ADD_WIFI", "task-base-wifi", d) 136 d.setVar("ADD_WIFI", "task-base-wifi")
137 137
138 if "3g" in distro_features and not "3g" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features): 138 if "3g" in distro_features and not "3g" in machine_features and ("pcmcia" in machine_features or "pci" in machine_features or "usbhost" in machine_features):
139 bb.data.setVar("ADD_3G", "task-base-3g", d) 139 d.setVar("ADD_3G", "task-base-3g")
140} 140}
141 141
142# 142#
diff --git a/meta/recipes-core/tasks/task-core-sdk.bb b/meta/recipes-core/tasks/task-core-sdk.bb
index 5743631787..a74de01b07 100644
--- a/meta/recipes-core/tasks/task-core-sdk.bb
+++ b/meta/recipes-core/tasks/task-core-sdk.bb
@@ -50,7 +50,7 @@ RDEPENDS_task-core-sdk = "\
50 50
51#python generate_sdk_pkgs () { 51#python generate_sdk_pkgs () {
52# poky_pkgs = read_pkgdata('task-core', d)['PACKAGES'] 52# poky_pkgs = read_pkgdata('task-core', d)['PACKAGES']
53# pkgs = bb.data.getVar('PACKAGES', d, 1).split() 53# pkgs = d.getVar('PACKAGES', 1).split()
54# for pkg in poky_pkgs.split(): 54# for pkg in poky_pkgs.split():
55# newpkg = pkg.replace('task-core', 'task-core-sdk') 55# newpkg = pkg.replace('task-core', 'task-core-sdk')
56# 56#
@@ -79,9 +79,9 @@ RDEPENDS_task-core-sdk = "\
79# if packaged('%s-dev' % name, d): 79# if packaged('%s-dev' % name, d):
80# rreclist.append('%s-dev' % name) 80# rreclist.append('%s-dev' % name)
81# 81#
82# oldrrec = bb.data.getVar('RRECOMMENDS_%s' % newpkg, d) or '' 82# oldrrec = d.getVar('RRECOMMENDS_%s' % newpkg) or ''
83# bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d) 83# bb.data.setVar('RRECOMMENDS_%s' % newpkg, oldrrec + ' ' + ' '.join(rreclist), d)
84# # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, bb.data.getVar('RRECOMMENDS_%s' % newpkg, d))) 84# # bb.note('RRECOMMENDS_%s = "%s"' % (newpkg, d.getVar('RRECOMMENDS_%s' % newpkg)))
85# 85#
86# # bb.note('pkgs is %s' % pkgs) 86# # bb.note('pkgs is %s' % pkgs)
87# bb.data.setVar('PACKAGES', ' '.join(pkgs), d) 87# bb.data.setVar('PACKAGES', ' '.join(pkgs), d)
diff --git a/meta/recipes-core/uclibc/uclibc-config.inc b/meta/recipes-core/uclibc/uclibc-config.inc
index 697164c008..a30188d209 100644
--- a/meta/recipes-core/uclibc/uclibc-config.inc
+++ b/meta/recipes-core/uclibc/uclibc-config.inc
@@ -35,7 +35,7 @@ def map_uclibc_arch(a, d):
35 """Return the uClibc architecture for the given TARGET_ARCH.""" 35 """Return the uClibc architecture for the given TARGET_ARCH."""
36 import re 36 import re
37 37
38 valid_archs = bb.data.getVar('valid_archs', d, 1).split() 38 valid_archs = d.getVar('valid_archs', 1).split()
39 39
40 if re.match('^(arm|sa110).*', a): return 'arm' 40 if re.match('^(arm|sa110).*', a): return 'arm'
41 elif re.match('^(i.86|athlon)$', a): return 'i386' 41 elif re.match('^(i.86|athlon)$', a): return 'i386'
@@ -50,14 +50,14 @@ def map_uclibc_arch(a, d):
50 else: 50 else:
51 bb.error("cannot map '%s' to a uClibc architecture" % a) 51 bb.error("cannot map '%s' to a uClibc architecture" % a)
52 52
53export UCLIBC_ARCH = "${@map_uclibc_arch(bb.data.getVar('TARGET_ARCH', d, 1), d)}" 53export UCLIBC_ARCH = "${@map_uclibc_arch(d.getVar('TARGET_ARCH', 1), d)}"
54 54
55def map_uclibc_abi(o, d): 55def map_uclibc_abi(o, d):
56 """Return the uClibc ABI for the given TARGET_OS.""" 56 """Return the uClibc ABI for the given TARGET_OS."""
57 import re 57 import re
58 58
59 arch = bb.data.getVar('TARGET_ARCH', d, 1) 59 arch = d.getVar('TARGET_ARCH', 1)
60 if map_uclibc_arch(bb.data.getVar('TARGET_ARCH', d, 1), d) == "arm": 60 if map_uclibc_arch(d.getVar('TARGET_ARCH', 1), d) == "arm":
61 if re.match('.*eabi$', o): return 'ARM_EABI' 61 if re.match('.*eabi$', o): return 'ARM_EABI'
62 else: return 'ARM_OABI' 62 else: return 'ARM_OABI'
63 # FIXME: This is inaccurate! Handle o32, n32, n64 63 # FIXME: This is inaccurate! Handle o32, n32, n64
@@ -65,7 +65,7 @@ def map_uclibc_abi(o, d):
65 elif re.match('^mips.*', arch): return 'MIPS_O32_ABI' 65 elif re.match('^mips.*', arch): return 'MIPS_O32_ABI'
66 return "" 66 return ""
67 67
68export UCLIBC_ABI = "${@map_uclibc_abi(bb.data.getVar('TARGET_OS', d, 1), d)}" 68export UCLIBC_ABI = "${@map_uclibc_abi(d.getVar('TARGET_OS', 1), d)}"
69 69
70def map_uclibc_endian(a, d): 70def map_uclibc_endian(a, d):
71 """Return the uClibc endianess for the given TARGET_ARCH.""" 71 """Return the uClibc endianess for the given TARGET_ARCH."""
@@ -79,7 +79,7 @@ def map_uclibc_endian(a, d):
79 return 'BIG' 79 return 'BIG'
80 return 'LITTLE' 80 return 'LITTLE'
81 81
82export UCLIBC_ENDIAN = "${@map_uclibc_endian(bb.data.getVar('TARGET_ARCH', d, 1), d)}" 82export UCLIBC_ENDIAN = "${@map_uclibc_endian(d.getVar('TARGET_ARCH', 1), d)}"
83 83
84# internal helper 84# internal helper
85def uclibc_cfg(feature, features, tokens, cnf, rem): 85def uclibc_cfg(feature, features, tokens, cnf, rem):
@@ -94,8 +94,8 @@ def uclibc_cfg(feature, features, tokens, cnf, rem):
94# Map distro and machine features to config settings 94# Map distro and machine features to config settings
95def features_to_uclibc_settings(d): 95def features_to_uclibc_settings(d):
96 cnf, rem = ([], []) 96 cnf, rem = ([], [])
97 distro_features = bb.data.getVar('DISTRO_FEATURES', d, True).split() 97 distro_features = d.getVar('DISTRO_FEATURES', True).split()
98 machine_features = bb.data.getVar('MACHINE_FEATURES', d, True).split() 98 machine_features = d.getVar('MACHINE_FEATURES', True).split()
99 uclibc_cfg('ipv4', distro_features, 'UCLIBC_HAS_IPV4', cnf, rem) 99 uclibc_cfg('ipv4', distro_features, 'UCLIBC_HAS_IPV4', cnf, rem)
100 uclibc_cfg('ipv6', distro_features, 'UCLIBC_HAS_IPV6', cnf, rem) 100 uclibc_cfg('ipv6', distro_features, 'UCLIBC_HAS_IPV6', cnf, rem)
101 uclibc_cfg('largefile', distro_features, 'UCLIBC_HAS_LFS', cnf, rem) 101 uclibc_cfg('largefile', distro_features, 'UCLIBC_HAS_LFS', cnf, rem)
diff --git a/meta/recipes-core/uclibc/uclibc.inc b/meta/recipes-core/uclibc/uclibc.inc
index 222c34f383..8438f25450 100644
--- a/meta/recipes-core/uclibc/uclibc.inc
+++ b/meta/recipes-core/uclibc/uclibc.inc
@@ -125,9 +125,9 @@ configmangle = '/^KERNEL_HEADERS/d; \
125 /^SHARED_LIB_LOADER_PREFIX/d; \ 125 /^SHARED_LIB_LOADER_PREFIX/d; \
126 /^UCLIBC_EXTRA_CFLAGS/d; \ 126 /^UCLIBC_EXTRA_CFLAGS/d; \
127 s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \ 127 s,.*UCLIBC_HAS_WCHAR.*,UCLIBC_HAS_WCHAR=y,g; \
128 ${@["","s,.*COMPILE_IN_THUMB_MODE.*,COMPILE_IN_THUMB_MODE=y,;"][bb.data.getVar("ARM_INSTRUCTION_SET", d, 1) != "arm"]} \ 128 ${@["","s,.*COMPILE_IN_THUMB_MODE.*,COMPILE_IN_THUMB_MODE=y,;"][d.getVar("ARM_INSTRUCTION_SET", 1) != "arm"]} \
129 ${@["","s,.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y,;"][bb.data.getVar("USE_NLS", d, 1) == "yes"]} \ 129 ${@["","s,.*UCLIBC_HAS_LOCALE.*,UCLIBC_HAS_LOCALE=y,;"][d.getVar("USE_NLS", 1) == "yes"]} \
130 ${@["","s,.*LDSO_GNU_HASH_SUPPORT.*,# LDSO_GNU_HASH_SUPPORT is not set,;"][bb.data.getVar("TARGET_ARCH", d, 1) in ['mips', 'mipsel', 'mips64', 'mips64el', 'avr32']]} \ 130 ${@["","s,.*LDSO_GNU_HASH_SUPPORT.*,# LDSO_GNU_HASH_SUPPORT is not set,;"][d.getVar("TARGET_ARCH", 1) in ['mips', 'mipsel', 'mips64', 'mips64el', 'avr32']]} \
131 /^CROSS/d; \ 131 /^CROSS/d; \
132 /^TARGET_ARCH=/d; \ 132 /^TARGET_ARCH=/d; \
133 /^TARGET_/s,^\([^=]*\).*,# \1 is not set,g; \ 133 /^TARGET_/s,^\([^=]*\).*,# \1 is not set,g; \
@@ -139,7 +139,7 @@ OE_FEATURES := "${@features_to_uclibc_conf(d)}"
139OE_DEL := "${@features_to_uclibc_del(d)}" 139OE_DEL := "${@features_to_uclibc_del(d)}"
140python () { 140python () {
141 if "${OE_DEL}": 141 if "${OE_DEL}":
142 bb.data.setVar('configmangle_append', "${OE_DEL}" + "\n", d) 142 d.setVar('configmangle_append', "${OE_DEL}" + "\n")
143 if "${OE_FEATURES}": 143 if "${OE_FEATURES}":
144 bb.data.setVar('configmangle_append', 144 bb.data.setVar('configmangle_append',
145 "/^### DISTRO FEATURES$/a\\\n%s\n\n" % 145 "/^### DISTRO FEATURES$/a\\\n%s\n\n" %
@@ -161,7 +161,7 @@ python () {
161 ("${UCLIBC_ARCH}", "${UCLIBC_ARCH}"), 161 ("${UCLIBC_ARCH}", "${UCLIBC_ARCH}"),
162 d) 162 d)
163 bb.data.setVar('configmangle_append', 163 bb.data.setVar('configmangle_append',
164 "/^### FPU$/a\\\n%s\n\n" % (["UCLIBC_HAS_FPU=y","# UCLIBC_HAS_FPU is not set"][bb.data.getVar('TARGET_FPU', d, 1) in [ 'soft' ]]), d) 164 "/^### FPU$/a\\\n%s\n\n" % (["UCLIBC_HAS_FPU=y","# UCLIBC_HAS_FPU is not set"][d.getVar('TARGET_FPU', 1) in [ 'soft' ]]), d)
165 if "${UCLIBC_ENDIAN}": 165 if "${UCLIBC_ENDIAN}":
166 bb.data.setVar('configmangle_append', 166 bb.data.setVar('configmangle_append',
167 "/^### ABI$/a\\\nARCH_WANTS_%s_ENDIAN=y\n\n" % ("${UCLIBC_ENDIAN}"), 167 "/^### ABI$/a\\\nARCH_WANTS_%s_ENDIAN=y\n\n" % ("${UCLIBC_ENDIAN}"),