[poky] Problem with METADATA_* vars
Chris Larson
clarson at kergoth.com
Tue Feb 22 14:06:12 PST 2011
On Fri, Feb 18, 2011 at 2:34 AM, Koen Kooi <koen at dominion.thruhere.net> wrote:
> I have a simple recipe that does:
>
> export METADATA_REVISION
> export METADATA_BRANCH
> export TARGET_SYS
>
> do_install() {
> install -d ${D}${sysconfdir}
> echo "Angstrom ${DISTRO_VERSION}" > ${D}${sysconfdir}/angstrom-version
> echo "Built from branch: ${METADATA_BRANCH}" >>
> ${D}${sysconfdir}/angstrom-version
> echo "Revision: ${METADATA_REVISION}" >>
> ${D}${sysconfdir}/angstrom-version
> echo "Target system: ${TARGET_SYS}" >>
> ${D}${sysconfdir}/angstrom-version
>
> [..]
> }
I realize this isn't a fix for the problem you're reporting, but your
exports are completely unnecessary here. Your uses of ${} inside a
shell function are expanded by bitbake, not the shell.
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
More information about the poky
mailing list