Poky Project Discussions
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: Marc <mbalcells@gmail.com>
Cc: poky@o-hand.com
Subject: Re: newbie recipe question
Date: Fri, 12 Nov 2010 09:52:06 -0800	[thread overview]
Message-ID: <4CDD7EC6.6050804@linux.intel.com> (raw)
In-Reply-To: <AANLkTinE-MSLQ4FGC-2QA3QyNpmxKtdJAPET67bRkyHM@mail.gmail.com>

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'm no expert on this aspect of the build, but one option would be to 
use autotools to have a "make install" target and the poky recipe could 
use that. Alternatively I don't see any reason why you couldn't write an 
install script as part of your repository and just have do_install() 
call that.

You're right, you don't want to have much in the way of install logic in 
the recipe.

-- 
Darren Hart
Yocto Linux Kernel


  reply	other threads:[~2010-11-12 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-12 16:49 newbie recipe question Marc
2010-11-12 17:52 ` Darren Hart [this message]
2010-11-12 19:05 ` Scott Garman
2010-11-13 16:29   ` Marc
2010-11-14  0:56     ` Tian, Kevin
2010-11-14 13:04       ` Richard Purdie

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=4CDD7EC6.6050804@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=mbalcells@gmail.com \
    --cc=poky@o-hand.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox