[poky] newbie recipe question

Marc mbalcells at gmail.com
Sat Nov 13 08:29:29 PST 2010


Yes it works on files but not on subdirectories

On Fri, Nov 12, 2010 at 8:05 PM, Scott Garman <scott.a.garman at intel.com>wrote:

> On 11/12/2010 08:49 AM, Marc wrote:
>
>> Hello, I'm a newbie in creating recipes for poky and I'm running through
>> a series of problems.
>> I'm trying to make a recipe in order to build an ipk package containing
>> a series of webpages and scripts, I have them at a subversion repository.
>> For now it works simply by pointing at the svn repository and specifiing
>> at do_install every directories files to their destination. like this:
>> =======================================================================
>> SRCREV = "${AUTOREV}"
>> PR = "${SRCREV}"
>>
>> SRC_URI = "svn://server/svn/;module=webpackage;proto=http "
>>
>> S = "${WORKDIR}"
>>
>> do_install(){
>> install -m 0755 -d ${D}/etc/
>> install -m 0755 -d ${D}/www/
>> install -m 0755 -d ${D}/www/images
>> install -m 0755 -d ${D}/www/cgi-bin
>> install -m 0755 -d ${D}/www/includes
>> install -m 0755 ${S}/*.htm${D}/www/
>> install -m 0755 ${S}/*.css${D}/www/
>> install -m 0755 ${S}/includes/* ${D}/www/includes/
>> install -m 0755 ${S}/cgi-bin/* ${D}/www/cgi-bin/
>> install -m 0755 ${S}/images/* ${D}/www/images/
>>
>> }
>> =================================================================
>>
>> Is there any other way to do this without having to specify the whole
>> subdirectory structure and every file extension? ( * is not working)
>> Since I'm adding and deleting files to my repository pretty frequently I
>> don't wan't having to modify the recipe each time.
>>
>
> I haven't tested this locally, but I believe file globbing is supposed to
> work. Have you tried *.*?
>
> Scott
>
> --
> Scott Garman
> Embedded Linux Distro Engineer - Yocto Project
> _______________________________________________
> poky mailing list
> poky at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
>



-- 
Marc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/poky/attachments/20101113/5ab7f148/attachment.html>


More information about the poky mailing list