watchdog: Target both edison and HEAD in this overlay
One needs to use BBMASK or delete depending on the targeted OE-Core/Poky version.
This commit is contained in:
parent
4f78b6ef78
commit
b8b0dff3d4
|
@ -0,0 +1 @@
|
|||
require ${PN}_sysmocom.inc
|
|
@ -1,25 +1 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:"
|
||||
PRINC = "6"
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
SRC_URI_append_sysmobts-v1 = " file://watchdog.conf file://init"
|
||||
SRC_URI_append_sysmobts-v2 = " file://watchdog.conf file://init"
|
||||
|
||||
do_install_append() {
|
||||
|
||||
if [ -e ${WORKDIR}/watchdog.conf ]; then
|
||||
install -D -m 0644 ${WORKDIR}/watchdog.conf ${D}/${sysconfdir}/
|
||||
fi
|
||||
|
||||
install -D -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/watchdog
|
||||
}
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/watchdog.conf"
|
||||
INITSCRIPT_PACKAGES = "${PN}"
|
||||
INITSCRIPT_NAME_${PN} = "watchdog"
|
||||
INITSCRIPT_PARAMS_${PN} = "start 06 S ."
|
||||
|
||||
# bug in poky meta/classes/base.bbclass?
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
require ${PN}_sysmocom.inc
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
SYSMOCOM := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-${PV}:${SYSMOCOM}/${PN}"
|
||||
PRINC = "6"
|
||||
|
||||
inherit update-rc.d
|
||||
|
||||
SRC_URI_append_sysmobts-v1 = " file://watchdog.conf file://init"
|
||||
SRC_URI_append_sysmobts-v2 = " file://watchdog.conf file://init"
|
||||
|
||||
do_install_append() {
|
||||
|
||||
if [ -e ${WORKDIR}/watchdog.conf ]; then
|
||||
install -D -m 0644 ${WORKDIR}/watchdog.conf ${D}/${sysconfdir}/
|
||||
fi
|
||||
|
||||
install -D -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/watchdog
|
||||
}
|
||||
|
||||
CONFFILES_${PN} = "${sysconfdir}/watchdog.conf"
|
||||
INITSCRIPT_PACKAGES = "${PN}"
|
||||
INITSCRIPT_NAME_${PN} = "watchdog"
|
||||
INITSCRIPT_PARAMS_${PN} = "start 06 S ."
|
||||
|
||||
# bug in poky meta/classes/base.bbclass?
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
Loading…
Reference in New Issue