[poky] Problem with METADATA_* vars
Koen Kooi
koen at dominion.thruhere.net
Fri Feb 18 03:11:08 PST 2011
that gives me mixed results, let me test a bit more
Op 18 feb. 2011 om 10:01 heeft Stefan Schmidt <stefan at datenfreihafen.org> het volgende geschreven:
> 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
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
More information about the poky
mailing list