[yocto] What is the simplest, or better yet, canonical way to add a shell script to core-image-minimal?

Nicolas Dechesne nicolas.dechesne at linaro.org
Tue Jun 24 02:53:05 PDT 2014


On Tue, Jun 24, 2014 at 11:50 AM, Burton, Ross <ross.burton at intel.com> wrote:
> On 23 June 2014 16:56, Patrick Doyle <wpdster at gmail.com> wrote:
>> Should I create a core-image-minimal.bbappend file with a SRC_URI
>> pointing to my script and a do_install rule to install it?
>
> Create a new recipe for the script and then add it to the image.
>
> The documentation is useful:
> http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html#extendpoky

image recipes which inherits from image.bbclass are *special* and the
normal task such as fetch, compile, install, .. are disabled. so you
cannot have a do_install() as you proposed. as Ross said, you need to
make a proper recipe, and include the recipe's package into your
image.



More information about the yocto mailing list