Re: [yocto] adding own shell script to the image
On Mon, Oct 29, 2018 at 8:47 PM Uwe Geuder 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 > > > Regards, > > Uwe Geuder > Neuro Event Labs Oy > Tampere, Finland > uwe.gexder at neuroeventlabs.com (Bot check: fix one obvious typo) > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] adding own shell script to the image
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? 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 Regards, Uwe Geuder Neuro Event Labs Oy Tampere, Finland uwe.gexder at neuroeventlabs.com (Bot check: fix one obvious typo) -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] adding own shell script to the image
On Mon, Oct 29, 2018 at 8:32 PM Outback Dingo wrote: > > SRC_URI = "file://testscript" > > FILESEXTRAPATHS_prepend := "${THISDIR}/file:" > > and file should be files crap ... sorry for the top post > On Mon, Oct 29, 2018 at 8:28 PM Zolee K wrote: > > > > Hi All, > > > > I'm struggling with this: > > > > 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? > > > > # > > this is my test folder: > > > > testing/ > > ├── file > > │ └── testscript > > └── testing.bb > > # > > cat testing/testing.bb > > DESCRIPTION = "test script" > > LICENSE = "Z" > > SRC_URI = "file://testscript" > > SRC_URI[md5sum] = "e51375ed8c617ea7a6ac39b81c757e39" > > do_install() { > > install -d ${D}${bindir} > > install -m 0770 testscript ${D}${bindir} > > } > > ### > > cat testing/file/testscript > > #!/bin/sh > > echo "hello world" > > -- > > ___ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] adding own shell script to the image
SRC_URI = "file://testscript" FILESEXTRAPATHS_prepend := "${THISDIR}/file:" and file should be files On Mon, Oct 29, 2018 at 8:28 PM Zolee K wrote: > > Hi All, > > I'm struggling with this: > > 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? > > # > this is my test folder: > > testing/ > ├── file > │ └── testscript > └── testing.bb > # > cat testing/testing.bb > DESCRIPTION = "test script" > LICENSE = "Z" > SRC_URI = "file://testscript" > SRC_URI[md5sum] = "e51375ed8c617ea7a6ac39b81c757e39" > do_install() { > install -d ${D}${bindir} > install -m 0770 testscript ${D}${bindir} > } > ### > cat testing/file/testscript > #!/bin/sh > echo "hello world" > -- > ___ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] adding own shell script to the image
Hi All, I'm struggling with this: 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? # this is my test folder: testing/ ├── file │ └── testscript └── testing.bb # cat testing/testing.bb DESCRIPTION = "test script" LICENSE = "Z" SRC_URI = "file://testscript" SRC_URI[md5sum] = "e51375ed8c617ea7a6ac39b81c757e39" do_install() { install -d ${D}${bindir} install -m 0770 testscript ${D}${bindir} } ### cat testing/file/testscript #!/bin/sh echo "hello world" -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto