diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-09 15:00:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-10 11:51:19 +0000 |
commit | c8dee9b92dfd545852ecac8dc2adfc95ac02e957 (patch) | |
tree | 5f1b86954646a0f3bb914407994388a6a4346769 /meta/recipes-core/busybox | |
parent | 5d3860f4a8abb8e95442b04f8b84a333af362fcd (diff) | |
download | poky-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/busybox')
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 6 |
1 files changed, 3 insertions, 3 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 |
50 | def features_to_busybox_settings(d): | 50 | def 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 | ||
80 | python () { | 80 | python () { |
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" % |