[yocto] Adding test files to an image

Autif Khan autif.mlist at gmail.com
Thu Mar 8 14:07:20 PST 2012


On Thu, Mar 8, 2012 at 4:43 PM, jfabernathy <jfabernathy at gmail.com> wrote:
> On 03/08/2012 04:33 PM, Rudolf Streif wrote:
>>
>> Jeff,
>>
>> Use hyphen instead of underscore for the subdirectory SRC_URI:
>>
>> SRC_URI = "file://myvideos-1.0/myvideos-1.0.tar.gz"
>>
>> and of course for the subdirectory in the subdirectory where the recipe is
>> located. The file fetcher copies the entire path
>> myvideos-1.0/myvideos-1.0.tar.gz to ${WORKDIR}.
>>
>> Rudi
>
> that didn't solve the problem. I still get file not found errors.  The
> videos are unpack to WORKDIR, but the do_install is looking for them in S.
>
>
>       install -d
> /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/image/home/root/myvideos
>        install -m 0644
> /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/myvideos-1.0/*
> /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/image/home/root/myvideos
>
> I think I need to control where the do_unpack puts the files.
>

Just a dumb thought, but I have been bitten many times by it.

please try bitbake myvideos -c cleansstate

then bitbake myvideos to build the recipe.

Alternatively, you can of course rev up the PR everytime you change
the recipe. But that is cumbersome.

And yes, I forgot to mention in my previous mail that the
mypics-1.0.tar.gz is located in
meta-autif/recipes-autif/mypics/mypics-1.0/mypics-1.0.tar.gz

As Rudolf suggested - bitbake is a bit finickey about '-' and '_'



More information about the yocto mailing list