[yocto] Problems when adding custom layer
    Aaron Sarginson 
    windswept321 at gmail.com
       
    Mon Oct  2 08:55:24 PDT 2017
    
    
  
Hello,
I am trying to add a folder and some files to a raspberry pi build which does build successfully with the latest Yocto.
When added, I receive parsing errors at the inherit “systemd” line.
The idea is that the web-files folder should be transferred in its entirety, rules.sh and the executable ‘project’ to the same folder plus ddd.service which is a systemd service file for ‘project’.
meta-ddd
├── conf
│   └── layer.conf
├── files
│   └── ddd.service
├── project
├── README
├── rules.sh
└── web-files
    └── sub-folder
SUMMARY = “DDD software installation"
DESCRIPTION = "Transfers files and sets up systemd for DDD."
SRC_URI += "\
        file://web-files/* \
        file://project \
        file://ddd.service \
        file://rules.sh \
"
S = "${WORKDIR}"
inherit "systemd"
SYSTEMD_PACKAGES = "${PN}"
SYSTEMD_SERVICE_${PN} = " ddd.service"
FILES_${PN} += " ddd.service \
                 /web-files/ \
                 /opt/ddd/project \
"
do_install () {
    install -d ${D}{sysconfdir}/systemd/system
    install -d ${D}/opt/ddd
    install -m 0755 ${WORKDIR}/web-files/ ${D}/opt/ddd
    install -m 0755 ${WORKDIR}/ddd.service
${D}{sysconfdir}/systemd/system
    install -m 0755 ${WORKDIR}/project ${D}/opt/ddd
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171002/8b483e92/attachment.html>
    
    
More information about the yocto
mailing list