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
_______________________________________________
Shr-devel mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-devel