mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 00:38:45 +01:00
After removal of auto-creating S we must ensure that all recipes are using a proper value for S. Fix all recipes that only need to set S equals to WORKDIR. [YOCTO #5627] (From OE-Core rev: 9d220b1bfe4589736604dd5a7129e3699377d830) Signed-off-by: Petter Mabäcker <petter@technux.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
34 lines
781 B
BlitzBasic
34 lines
781 B
BlitzBasic
SUMMARY = "Initscript for auto-loading kernel modules on boot"
|
|
SECTION = "base"
|
|
LICENSE = "PD"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=7bf87fc37976e93ec66ad84fac58c098"
|
|
SRC_URI = "file://modutils.sh \
|
|
file://PD.patch"
|
|
|
|
PR = "r7"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
INITSCRIPT_NAME = "modutils.sh"
|
|
INITSCRIPT_PARAMS = "start 05 S ."
|
|
|
|
inherit update-rc.d
|
|
|
|
do_compile () {
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}${sysconfdir}/init.d/
|
|
install -m 0755 ${WORKDIR}/modutils.sh ${D}${sysconfdir}/init.d/
|
|
}
|
|
|
|
DEPENDS_append = " ${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd-systemctl-native','',d)}"
|
|
pkg_postinst_${PN} () {
|
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
|
if [ -n "$D" ]; then
|
|
OPTS="--root=$D"
|
|
fi
|
|
systemctl $OPTS mask modutils.service
|
|
fi
|
|
}
|