[poky] Error managing features
Gary Thomas
gary at mlbassoc.com
Fri Oct 21 05:02:53 PDT 2011
On 2011-10-21 05:50, Gary Thomas wrote:
> In my $DISTRO, I have a default set of image features:
> IMAGE_FEATURES ?= "package-management debug-tweaks "
>
> I'd like to build a minimized image which leaves out the package stuff, so
> I added this line to my <image>.bb:
> IMAGE_FEATURES := "${@oe_filter_out('package-management', '${IMAGE_FEATURES}', d)}"
>
> Sadly, this gives me this error:
> ERROR: Failure expanding variable IMAGE_FEATURES[:=], expression was ${@oe_filter_out('package-management', 'package-management debug-tweaks ${EXTRA_IMAGE_FEATURES}', d)} which
> triggered exception SyntaxError: EOL while scanning string literal (IMAGE_FEATURES[:=], line 1)
>
> Any idea what I've done wrong?
Note: I noticed that EXTRA_IMAGE_FEATURES is only set in a few Yocto
images (no default/fallback), so I added
EXTRA_IMAGE_FEATURES ?= ""
to $DISTRO.conf and the syntax error went away.
I guess there must be some difference inside bitbake that manages
to ignore unset variables when expanding, but not in this case?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
More information about the poky
mailing list