diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:25:16 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:25:34 +0000 |
commit | 0a434ac10158e2011d41a1189e65e9474b1672be (patch) | |
tree | 6171516b25cb337343a6373e34aec0d061e4f5e8 /meta/recipes-core/busybox | |
parent | 71fded5145454b144413057e11f78f718d947093 (diff) | |
download | poky-0a434ac10158e2011d41a1189e65e9474b1672be.tar.gz |
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses
directly to the data store object.
(From OE-Core rev: 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939)
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 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 0b74ea6780..b948e2ce6b 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc | |||
@@ -81,17 +81,15 @@ python () { | |||
81 | if "${OE_DEL}": | 81 | if "${OE_DEL}": |
82 | d.setVar('configmangle_append', "${OE_DEL}" + "\n") | 82 | d.setVar('configmangle_append', "${OE_DEL}" + "\n") |
83 | if "${OE_FEATURES}": | 83 | if "${OE_FEATURES}": |
84 | bb.data.setVar('configmangle_append', | 84 | d.setVar('configmangle_append', |
85 | "/^### DISTRO FEATURES$/a\\\n%s\n\n" % | 85 | "/^### DISTRO FEATURES$/a\\\n%s\n\n" % |
86 | ("\\n".join((bb.data.expand("${OE_FEATURES}", d).split("\n")))), | 86 | ("\\n".join((bb.data.expand("${OE_FEATURES}", d).split("\n"))))) |
87 | d) | 87 | d.setVar('configmangle_append', |
88 | bb.data.setVar('configmangle_append', | ||
89 | "/^### CROSS$/a\\\n%s\n" % | 88 | "/^### CROSS$/a\\\n%s\n" % |
90 | ("\\n".join(["CONFIG_CROSS_COMPILER_PREFIX=\"${TARGET_PREFIX}\"", | 89 | ("\\n".join(["CONFIG_CROSS_COMPILER_PREFIX=\"${TARGET_PREFIX}\"", |
91 | "CONFIG_EXTRA_CFLAGS=\"${CFLAGS}\"" | 90 | "CONFIG_EXTRA_CFLAGS=\"${CFLAGS}\"" |
92 | ]) | 91 | ]) |
93 | ), | 92 | )) |
94 | d) | ||
95 | } | 93 | } |
96 | 94 | ||
97 | do_prepare_config () { | 95 | do_prepare_config () { |