[poky] Problem with METADATA_* vars
Stefan Schmidt
stefan at datenfreihafen.org
Fri Feb 18 02:01:17 PST 2011
Hello.
On Fri, 2011-02-18 at 10:34, Koen Kooi 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
>
> [..]
> }
>
> It builds fine when doing 'bitbake angstrom-version', but when doing
> 'bitbake console-image', which includes angstrom-version I get:
>
> tr: write error: Broken pipe
> ERROR: Error evaluating '${@base_detect_branch(d)}'
Hmm, I somehow remeber something like this also in OE. Can you give it a try
with removing the explicit export in the recipe? Its a bit of guessing as I
don't have all the details in mind anymore. :)
regards
Stefan Schmidt
More information about the poky
mailing list