mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 13:29:49 +00:00
v86d: fix for systemd to load uvesafb module correctly
The /etc/init.d/fbsetup script doesn't have any effect in a systemd image. Its purpose is to load the uvesafb kernel module at boot. This functionality could be achieved by adding a configuration file under /etc/modules-load.d/ directory which would be parsed by the systemd-modules-load.service. [YOCTO #4420] (From OE-Core rev: 6d55a03d5cc8070d589c1fe7df74279208833383) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# Load uvesafb.ko at boot
|
||||||
|
uvesafb
|
||||||
@@ -12,6 +12,7 @@ PR = "r2"
|
|||||||
SRC_URI = "http://distfiles.gentoo.org/distfiles/${BP}.tar.bz2 \
|
SRC_URI = "http://distfiles.gentoo.org/distfiles/${BP}.tar.bz2 \
|
||||||
file://Update-x86emu-from-X.org.patch \
|
file://Update-x86emu-from-X.org.patch \
|
||||||
file://fbsetup \
|
file://fbsetup \
|
||||||
|
file://uvesafb.conf \
|
||||||
file://ar-from-env.patch"
|
file://ar-from-env.patch"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "51c792ba7b874ad8c43f0d3da4cfabe0"
|
SRC_URI[md5sum] = "51c792ba7b874ad8c43f0d3da4cfabe0"
|
||||||
@@ -35,8 +36,17 @@ do_install () {
|
|||||||
install -d ${D}${base_sbindir}
|
install -d ${D}${base_sbindir}
|
||||||
install v86d ${D}${base_sbindir}/
|
install v86d ${D}${base_sbindir}/
|
||||||
|
|
||||||
install -d ${D}${sysconfdir}/init.d/
|
# Only install fbsetup script if 'sysvinit' is in DISTRO_FEATURES
|
||||||
install -m 0755 ${WORKDIR}/fbsetup ${D}${sysconfdir}/init.d/fbsetup
|
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
|
||||||
|
install -d ${D}${sysconfdir}/init.d/
|
||||||
|
install -m 0755 ${WORKDIR}/fbsetup ${D}${sysconfdir}/init.d/fbsetup
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install systemd related configuration file
|
||||||
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||||
|
install -d ${D}${sysconfdir}/modules-load.d
|
||||||
|
install -m 0644 ${WORKDIR}/uvesafb.conf ${D}${sysconfdir}/modules-load.d
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
inherit update-rc.d
|
inherit update-rc.d
|
||||||
|
|||||||
Reference in New Issue
Block a user