mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 15:05:57 +00:00
* runtime dependencies are TUNE_PKGARCH causing do_package_write_* task to have different signature for MACHINEs with different TUNE_PKGARCH * move kernel-module-zram to RRECOMMENDS, because signature handler is excluding kernel-module-* dependencies only from RRECOMMENDS and also because some machine can have zram enabled in kernel and kernel-module-zram won't exist. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
34 lines
882 B
BlitzBasic
34 lines
882 B
BlitzBasic
DESCRIPTION = "Linux zram compressed in-memory swap"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
|
|
|
|
inherit update-rc.d systemd
|
|
|
|
RDEPENDS_${PN} = "util-linux-swaponoff kmod"
|
|
RRECOMMENDS_${PN} = "kernel-module-zram"
|
|
|
|
PR = "r3"
|
|
|
|
SRC_URI = " \
|
|
file://init \
|
|
file://zram.service \
|
|
"
|
|
|
|
do_install () {
|
|
# Sysvinit
|
|
install -d ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram
|
|
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 0644 ${WORKDIR}/zram.service ${D}${systemd_unitdir}/system
|
|
}
|
|
|
|
FILES_${PN} = "${sysconfdir}/init.d"
|
|
INITSCRIPT_NAME = "zram"
|
|
INITSCRIPT_PARAMS = "start 05 2 3 4 5 . stop 22 0 1 6 ."
|
|
|
|
RPROVIDES_${PN} += "${PN}-systemd"
|
|
RREPLACES_${PN} += "${PN}-systemd"
|
|
RCONFLICTS_${PN} += "${PN}-systemd"
|
|
SYSTEMD_SERVICE_${PN} = "zram.service"
|