DESCRIPTION = "This is the setup needed to run the cpu8-app"
SECTION = "userland"
PRIORITY = "required"
DEPENDS = "base-passwd"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://COPYING;md5=cf6970dcd5913a3a2de7cb4bfcaf5b36"
PR = "r12"
SRC_URI = "file://COPYING"
SRC_URI += "file://bootfinal.sh"
do_configure_prepend() {
cp ${WORKDIR}/COPYING ${S}/COPYING
}
do_install() {
install -d ${D}/${sysconfdir}/init.d
install -m 755 ${WORKDIR}/bootfinal.sh ${D}/${sysconfdir}/init.d
update-rc.d -r ${D} bootfinal.sh start 99 2 3 4 5 .
install -d -m 775 ${D}/binaries
install -d -m 775 ${D}/configs
chown -h 33:33 ${D}/configs
touch ${D}/configs/cpu8Memory.img
ln -s /configs/cpu8Memory.img ${D}/configs/.MainMemory
}
FILES_${PN} = "${sysconfdir}/* /binaries /configs/.MainMemory /configs/*"