All of lore.kernel.org
 help / color / mirror / Atom feed
From: jfabernathy <jfabernathy@gmail.com>
To: yocto@yoctoproject.org
Subject: Re: Adding test files to an image
Date: Thu, 08 Mar 2012 17:38:40 -0500	[thread overview]
Message-ID: <4F5934F0.6090600@gmail.com> (raw)
In-Reply-To: <4F593365.4060904@mlbassoc.com>

On 03/08/2012 05:32 PM, Gary Thomas wrote:
> On 2012-03-08 15:26, jfabernathy wrote:
>> On 03/08/2012 05:07 PM, Autif Khan wrote:
>>> On Thu, Mar 8, 2012 at 4:43 PM, jfabernathy<jfabernathy@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 '_'
>> I was doing a "bitbake -c cleanall myvideos" before each run of 
>> bitbake myvideos, but I just now tried bitbake myvideos -c 
>> cleansstate with no change in behavior.
>>
>> It seems clear to me that do_unpack unpacks the tar.gz file to the
>>
>> ${WORKDIR}
>>
>> but install is looking for them in
>>
>> ${WORKDIR}/${PN}-${PV}
>>
>>
>> Since S is not defined, I think the default is ${WORKDIR}/${PN}-${PV}
>>
>> Not sure how to fix that.
>
> Set S to be what you need in the recipe, e.g.
>   S = "${WORKDIR}/jfabernathy-${PV}"
> or whatever it is you need
>
So what I can get to work is the following recipe, but what I want is 
not o have to specify the file extension:

DESCRIPTION = "my video test files"
SECTION = "examples"
LICENSE = "CLOSED"

MY_DESTINATION = "/home/root/myvideos"

SRC_URI = "file://myvideos-1.0/myvideos-1.0.tar.gz"

do_install_append() {
         install -d ${D}${MY_DESTINATION}
#        install -m 0644 ${S}/* ${D}${MY_DESTINATION}
         install -m 0644 ${WORKDIR}/*.mp4 ${D}${MY_DESTINATION}
}

PR = "r0"

FILES_${PN} += "${MY_DESTINATION}/*"



  parent reply	other threads:[~2012-03-08 22:38 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-08 15:34 Adding test files to an image jfabernathy
2012-03-08 16:57 ` Autif Khan
2012-03-08 20:44   ` jfabernathy
2012-03-08 21:33     ` Rudolf Streif
2012-03-08 21:43       ` jfabernathy
2012-03-08 22:07         ` Autif Khan
2012-03-08 22:26           ` jfabernathy
2012-03-08 22:32             ` Gary Thomas
2012-03-08 22:35               ` jfabernathy
2012-03-09  6:48                 ` Khem Raj
2012-03-08 22:38               ` jfabernathy [this message]
2012-03-09  1:04                 ` Eric Bénard
2012-03-09 13:22                   ` jfabernathy
2012-03-09  7:38 ` Lauri Hintsala

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F5934F0.6090600@gmail.com \
    --to=jfabernathy@gmail.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.