[yocto] adding own shell script to the image

Outback Dingo outbackdingo at gmail.com
Mon Oct 29 06:57:30 PDT 2018


On Mon, Oct 29, 2018 at 8:47 PM Uwe Geuder <jrswdnan22 at snkmail.com> wrote:
>
> On Mon, Oct 29, 2018 at 3:28 PM Zolee K zoleelikesdebian-at-gmail.com  wrote:
>
> > The error message:
> >
> > /home/..../recipes-z/testing/testing.bb: Unable to get checksum for testing
> > SRC_URI entry testscript: *file could not be found*
> > Which I don't understand, since the file is definitaly there:-(
> > Could you please help me out with this?


my working recipe


cat eventmanager_0.0.5.bb
LICENSE = "CLOSED"
LIC_FILES_CHKSUM = ""
PR="r1"

RDEPENDS_${PN} = " \
python3-sdnotify \
"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI = " \
file://${BPN}_${PV}.7z \
"

inherit bin_package systemd

do_unpack[depends] += "p7zip-native:do_populate_sysroot"

S = "${WORKDIR}"

do_install() {

------------------SNIP-------------------------------

 ~/Yocto/meta-event/recipe-event/eventmanager ls -al
total 16
drwxrwxr-x.  3 dingo dingo 4096 Sep 30 07:48 .
drwxrwxr-x. 10 dingo dingo 4096 Oct 19 14:49 ..
-rw-r--r--.  1 dingo dingo 1147 Sep 30 00:37 eventmanager_0.0.5.bb
drwxrwxr-x.  2 dingo dingo 4096 Oct 20 10:30 files

 ls -al files/
total 144
drwxrwxr-x. 2 dingo dingo   4096 Oct 20 10:30 .
drwxrwxr-x. 3 dingo dingo   4096 Sep 30 07:48 ..
-rw-------. 1 dingo dingo 128273 Oct 20 10:30 eventmanager_0.0.5.7z




>
> Bitbake uses a search path to locate the files, see
>
> https://www.yoctoproject.org/docs/2.5.1/mega-manual/mega-manual.html#var-FILESEXTRAPATHS
>
> Either extend the path or move your file to a location on the path.
>
> If you are unsure what your current search path is you can always check
> from the output of
>
>   bitbake -e <recipe-name>
>
>
> Regards,
>
> Uwe Geuder
> Neuro Event Labs Oy
> Tampere, Finland
> uwe.gexder at neuroeventlabs.com (Bot check: fix one obvious typo)
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list