diff --git a/recipes-core/psplash/files/fb.rules b/recipes-core/psplash/files/fb.rules new file mode 100644 index 000000000..c336bc36d --- /dev/null +++ b/recipes-core/psplash/files/fb.rules @@ -0,0 +1 @@ +SUBSYSTEM=="graphics", KERNEL=="fb0", TAG+="systemd" diff --git a/recipes-core/psplash/psplash_%.bbappend b/recipes-core/psplash/psplash_%.bbappend index 57cade8ff..28beafd29 100644 --- a/recipes-core/psplash/psplash_%.bbappend +++ b/recipes-core/psplash/psplash_%.bbappend @@ -1,11 +1,15 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:" SPLASH_IMAGES:rpi = "file://psplash-raspberrypi-img.h;outsuffix=raspberrypi" -SRC_URI:append:rpi = " file://framebuf.conf" +SRC_URI:append:rpi = " \ + file://framebuf.conf \ + file://fb.rules \ + " do_install:append:rpi() { if [ "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}" ]; then install -Dm 0644 ${WORKDIR}/framebuf.conf ${D}${systemd_system_unitdir}/psplash-start.service.d/framebuf.conf + install -Dm 0644 ${WORKDIR}/fb.rules ${D}${sysconfdir}/udev/rules.d/ fi }