[yocto] adding own shell script

Zolee K zoleelikesdebian at gmail.com
Mon Oct 29 02:50:33 PDT 2018


Hi all,

I'd like to install my own test.sh script into the image, I created this
recipe file, however I dont know how to have bitbake put the my test.sh
into /etc folder

SUMMARY = "test.sh"
LICENSE = "Z"

SRC_URI = "\
        file://test.sh \
"

do_configure(){
  :
}

do_compile() {
  :
}


do_install() {
    install -d ${D}${sysconfdir}
    install -m 0770 ${WORKDIR}/test.sh ${D}${sysconfdir}/test.sh
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20181029/192db345/attachment.html>


More information about the yocto mailing list