[yocto] adding own shell script to the image

Outback Dingo outbackdingo at gmail.com
Mon Oct 29 06:32:07 PDT 2018


SRC_URI = "file://testscript"

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

and file should be files
On Mon, Oct 29, 2018 at 8:28 PM Zolee K <zoleelikesdebian at gmail.com> 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 at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


More information about the yocto mailing list