* Adding test files to an image @ 2012-03-08 15:34 jfabernathy 2012-03-08 16:57 ` Autif Khan 2012-03-09 7:38 ` Lauri Hintsala 0 siblings, 2 replies; 14+ messages in thread From: jfabernathy @ 2012-03-08 15:34 UTC (permalink / raw) To: yocto@yoctoproject.org Suppose I want to build the meta-intel/meta-sugarbay image and also include some video and audio files into the /home/root directory to facilitate testing of the video and audio players. Can I include these files in a recipe somewhere? Also, I know that I can increase the spare image size so these files can be copied in later with the IMAGE_OVERHEAD_FACTOR and IMAGE_ROOTFS_EXTRA_SPACE. But where do these statements go? conf/local.conf??? Jim A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 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-09 7:38 ` Lauri Hintsala 1 sibling, 1 reply; 14+ messages in thread From: Autif Khan @ 2012-03-08 16:57 UTC (permalink / raw) To: jfabernathy; +Cc: yocto@yoctoproject.org > Suppose I want to build the meta-intel/meta-sugarbay image and also include > some video and audio files into the /home/root directory to facilitate > testing of the video and audio players. > > Can I include these files in a recipe somewhere? I use the recipe at the end of this message to include whatever I want. This recipe has to be added to the image - I have a custom image, so it goes in there. I am sure a recipe can be added to something in local.conf - I just do not know that variable. My guess it is IMAGE_IMSTALL += "mypics". Regardless ... mypics-1.0.tar.gz contains a file called COPYING and its mds5um on the 2nd line. It can be replaced with a license from common licenses directory - but at the time when I wrote this recipe, I did not know how to do that. Anything that goes in there ends up in /home/root/mypics. It can probably be tweaked to look better - I am sure SRC_URI line is not perfect. But it seems to work between Edison to master For larger files - like video worth 200MB or so, I just store them on a hard disk and mount manually on /media/hdd or where-ever. Not that it wont work in this recipe, just that it would take longer to build the image etc. All the best. Hopefully, this will get you started in the right direction. LICENSE = "MyLic" LIC_FILES_CHKSUM = "file://COPYING;md5=697172b05e4bff0a2421579697ba5653" MY_DESTINATION = "/home/root/mypics" SRC_URI = "file://mypics-1.0/mypics-1.0.tar.gz" do_install_append() { install -d ${D}${MY_DESTINATION} install -m 0644 ${S}/* ${D}${MY_DESTINATION} } PR = "r0" FILES_${PN} += "${MY_DESTINATION}/*" ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 16:57 ` Autif Khan @ 2012-03-08 20:44 ` jfabernathy 2012-03-08 21:33 ` Rudolf Streif 0 siblings, 1 reply; 14+ messages in thread From: jfabernathy @ 2012-03-08 20:44 UTC (permalink / raw) To: Autif Khan; +Cc: yocto@yoctoproject.org On 03/08/2012 11:57 AM, Autif Khan wrote: >> Suppose I want to build the meta-intel/meta-sugarbay image and also include >> some video and audio files into the /home/root directory to facilitate >> testing of the video and audio players. >> >> Can I include these files in a recipe somewhere? > I use the recipe at the end of this message to include whatever I > want. This recipe has to be added to the image - I have a custom > image, so it goes in there. I am sure a recipe can be added to > something in local.conf - I just do not know that variable. My guess > it is IMAGE_IMSTALL += "mypics". > > Regardless ... > > mypics-1.0.tar.gz contains a file called COPYING and its mds5um on the > 2nd line. It can be replaced with a license from common licenses > directory - but at the time when I wrote this recipe, I did not know > how to do that. Anything that goes in there ends up in > /home/root/mypics. > > It can probably be tweaked to look better - I am sure SRC_URI line is > not perfect. But it seems to work between Edison to master > > For larger files - like video worth 200MB or so, I just store them on > a hard disk and mount manually on /media/hdd or where-ever. Not that > it wont work in this recipe, just that it would take longer to build > the image etc. > > All the best. Hopefully, this will get you started in the right direction. > > LICENSE = "MyLic" > LIC_FILES_CHKSUM = "file://COPYING;md5=697172b05e4bff0a2421579697ba5653" > > MY_DESTINATION = "/home/root/mypics" > > SRC_URI = "file://mypics-1.0/mypics-1.0.tar.gz" > > do_install_append() { > install -d ${D}${MY_DESTINATION} > install -m 0644 ${S}/* ${D}${MY_DESTINATION} > } > > PR = "r0" > > FILES_${PN} += "${MY_DESTINATION}/*" I have some issues that seem to be related to where everything gets unpacked and where it thinks it needs to install from. Below is my recipe file name "myvideos_1.0.bb" 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} } PR = "r0" FILES_${PN} += "${MY_DESTINATION}/*" I have the myvideo-1.0.tar.gz file in the myvideos_1.0 directory, same level as the recipe in a directory call myvideos. The error I'm getting is : Log data follows: | ERROR: Function failed: do_install (see /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/temp/log.do_install.9051 for further information) | install: cannot stat `/build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/myvideos-1.0/*': No such file or directory NOTE: package myvideos-1.0-r0: task do_install: Failed ERROR: Task 2 (/home/jim/poky/meta-jfa/recipes-jfa/myvideos/myvideos_1.0.bb, do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 651 tasks of which 644 didn't need to be rerun and 1 failed. The tar.gz is getting unpacked in the ..tmp/work/x86_64-poky-linux/myvideos-1.0-r0 directory per the unpack log file below: NOTE: Unpacking /home/jim/poky/meta-jfa/recipes-jfa/myvideos/myvideos_1.0/myvideos-1.0.tar.gz to /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/ The critical parts of the run.do_install is below: do_install() { base_do_install 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 } base_do_install() { : } cd /build/sugarbay-master/tmp/work/x86_64-poky-linux/myvideos-1.0-r0/myvideos-1.0 do_install ------------------------- So it looks like it unpacks it one place, but is looking to install from somewhere else. I'm just not sure how all the S and D variables are set and what they do. Jim A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 20:44 ` jfabernathy @ 2012-03-08 21:33 ` Rudolf Streif 2012-03-08 21:43 ` jfabernathy 0 siblings, 1 reply; 14+ messages in thread From: Rudolf Streif @ 2012-03-08 21:33 UTC (permalink / raw) To: jfabernathy; +Cc: yocto@yoctoproject.org [-- Attachment #1: Type: text/plain, Size: 315 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 540 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 21:33 ` Rudolf Streif @ 2012-03-08 21:43 ` jfabernathy 2012-03-08 22:07 ` Autif Khan 0 siblings, 1 reply; 14+ messages in thread From: jfabernathy @ 2012-03-08 21:43 UTC (permalink / raw) To: Rudolf Streif; +Cc: yocto@yoctoproject.org 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. Jim A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 21:43 ` jfabernathy @ 2012-03-08 22:07 ` Autif Khan 2012-03-08 22:26 ` jfabernathy 0 siblings, 1 reply; 14+ messages in thread From: Autif Khan @ 2012-03-08 22:07 UTC (permalink / raw) To: jfabernathy; +Cc: yocto@yoctoproject.org 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 '_' ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 22:07 ` Autif Khan @ 2012-03-08 22:26 ` jfabernathy 2012-03-08 22:32 ` Gary Thomas 0 siblings, 1 reply; 14+ messages in thread From: jfabernathy @ 2012-03-08 22:26 UTC (permalink / raw) To: Autif Khan; +Cc: yocto@yoctoproject.org 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. JIm A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 22:26 ` jfabernathy @ 2012-03-08 22:32 ` Gary Thomas 2012-03-08 22:35 ` jfabernathy 2012-03-08 22:38 ` jfabernathy 0 siblings, 2 replies; 14+ messages in thread From: Gary Thomas @ 2012-03-08 22:32 UTC (permalink / raw) To: yocto 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 -- ------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------ ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 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 1 sibling, 1 reply; 14+ messages in thread From: jfabernathy @ 2012-03-08 22:35 UTC (permalink / raw) To: Gary Thomas; +Cc: yocto 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 > Thanks, I know I can change S, but I need to change where do_unpack puts the files. with them in WORKDIR, I can't just say WORKDIR/* because there are a lot of other files and directories at that level. I need do_unpack to put the files from tar.gz into S for example. Jim A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 22:35 ` jfabernathy @ 2012-03-09 6:48 ` Khem Raj 0 siblings, 0 replies; 14+ messages in thread From: Khem Raj @ 2012-03-09 6:48 UTC (permalink / raw) To: jfabernathy; +Cc: yocto > >Set S to be what you need in the recipe, e.g. > > S = "${WORKDIR}/jfabernathy-${PV}" > >or whatever it is you need > > > Thanks, I know I can change S, but I need to change where do_unpack > puts the files. with them in WORKDIR, I can't just say WORKDIR/* > because there are a lot of other files and directories at that > level. > > I need do_unpack to put the files from tar.gz into S for example. you can do something like do_unpack_append() { bb.build.exec_func('do_move_src', d) } do_move_src() { mv ${WORKDIR}/<yoursources> ${S}/ } but if you can repackage that tar file to untar into some dir that would simplify things and you just need to reset S ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 22:32 ` Gary Thomas 2012-03-08 22:35 ` jfabernathy @ 2012-03-08 22:38 ` jfabernathy 2012-03-09 1:04 ` Eric Bénard 1 sibling, 1 reply; 14+ messages in thread From: jfabernathy @ 2012-03-08 22:38 UTC (permalink / raw) To: yocto 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}/*" ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 22:38 ` jfabernathy @ 2012-03-09 1:04 ` Eric Bénard 2012-03-09 13:22 ` jfabernathy 0 siblings, 1 reply; 14+ messages in thread From: Eric Bénard @ 2012-03-09 1:04 UTC (permalink / raw) To: yocto Le Thu, 08 Mar 2012 17:38:40 -0500, jfabernathy <jfabernathy@gmail.com> a écrit : > So what I can get to work is the following recipe, but what I want is > not o have to specify the file extension: > you may be able to build your archive in a directory like : myvideos-1.0/files.mp4, so that your files will be available in ${S} = ${WORKDIR}/myvideos-1.0/ Eric -- http://eukrea.com/en/news/104-2012 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-09 1:04 ` Eric Bénard @ 2012-03-09 13:22 ` jfabernathy 0 siblings, 0 replies; 14+ messages in thread From: jfabernathy @ 2012-03-09 13:22 UTC (permalink / raw) To: yocto On 03/08/2012 08:04 PM, Eric Bénard wrote: > Le Thu, 08 Mar 2012 17:38:40 -0500, > jfabernathy<jfabernathy@gmail.com> a écrit : >> So what I can get to work is the following recipe, but what I want is >> not o have to specify the file extension: >> > you may be able to build your archive in a directory like : > myvideos-1.0/files.mp4, so that your files will be available in ${S} = > ${WORKDIR}/myvideos-1.0/ > > Eric Duh! That was too easy. Not sure why it was not obvious to me. Thanks, So I put all my videos into a directory called myvideos-1.0 and tar gz'ed the whole directory. now the following works: 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} } PR = "r0" FILES_${PN} += "${MY_DESTINATION}/*" ------------------------------ You just have to put your newly created tarball of the myvideos-1.0 directory in the SRC_URI. Thanks again, JIm A ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Adding test files to an image 2012-03-08 15:34 Adding test files to an image jfabernathy 2012-03-08 16:57 ` Autif Khan @ 2012-03-09 7:38 ` Lauri Hintsala 1 sibling, 0 replies; 14+ messages in thread From: Lauri Hintsala @ 2012-03-09 7:38 UTC (permalink / raw) To: jfabernathy; +Cc: yocto@yoctoproject.org On 03/08/2012 05:34 PM, jfabernathy wrote: > Suppose I want to build the meta-intel/meta-sugarbay image and also > include some video and audio files into the /home/root directory to > facilitate testing of the video and audio players. I have used ROOTFS_POSTPROCESS_COMMAND variable to add some extra files to rootfs image for testing purposes. Following example is copying files from build/extra path to root filesystem image if the extra folder exists. # copy files from extra folder to image ROOTFS_POSTPROCESS_COMMAND += "[ -d ${TOPDIR}/extra ] && cp -r ${TOPDIR}/extra/* {IMAGE_ROOTFS};" Regards, Lauri ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-03-09 13:22 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 2012-03-09 1:04 ` Eric Bénard 2012-03-09 13:22 ` jfabernathy 2012-03-09 7:38 ` Lauri Hintsala
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.