Thomas Zimmermann wrote:
> Am Donnerstag 09 September 2010, 19:02:27 schrieb Arigead:
>> Hello all,
>>     I've gotten the hang of this whole building shr-unstable process
>> with OE and now build my own image with the apps that I want included
>> into it. The next step I'd like to take is to write a bitbake recipe
>> which don't compile things as all but simply copies the configuration
>> files like contacts and my navit config and others into the correct place.
>>
>> If somebody could suggest is this possible or point me to an example
>> that would be great. I'm not sure if it is as it'd mean a recipe with
>> SRC_URI set to point at no real code.
>>
>> Any advice gratefully received.
> 
> Thats easy. Just write a recipe with just an custom do_install:
> Lets assume you have all your configs in a directory config in a tar.gz at 
> /home/user/config.tar.gz then the recipe looks like that:
> 
> --
> SRC_URI = "file:///home/user/config.tar.gz"
> 
> S = "${WORKDIR}/config"
> 
> do_install() {
>         cp -a ${S}/* ${D}
> }
> --
> 
> This will copy the content of the config directory to the root directory of 
> your image.
> 
> But it's better to use install instead of cp, but i thing you got the idea.
> 
> Greets
> Thomas

Thomas you're a star ;-)

I was trying that do_install but was obviously setting SRC_URI incorrectly.

I would make one observation or maybe ask another question, as a result
of your answer. In your SRC_URI you've used "file:///..." i.e. absolute
path name. I was having local build issues a few weeks ago and it turned
out that absolute paths were no longer working in OE. They're still in
the documentation but for some reason they were not working when I tried
to create a local build of libphone-ui-shr

I might test this out with your recipe and check it again. Absolute
would make it simpler.

Anyhow that's another issue, thanks a million for taking the time to
answer my question.
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to