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
}
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto