blob: f8d44254a45b73c598481ff9af9affcf14d08717 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------
FILESEXTRAPATHS:prepend := "${THISDIR}:"
SRC_URI:append:mel = " ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '\
file://psplash-quit.service \
file://psplash-start.service \
file://psplash-final.service \
', '', d)}"
# Change background color and splash image with no progress bar
SRC_URI:append:mel = " file://0001-psplash-config-enable-fullscreen-image.patch \
file://0001-plash-colors.h-color-change.patch \
"
EXTRA_OECONF:append:mel = " --disable-progress-bar"
# # Update to latest version of psplash
# SRCREV:mel = "5b3c1cc28f5abdc2c33830150b48b278cc4f7bca"
SPLASH_IMAGES:mel = "file://mel.png;outsuffix=default"
SYSTEMD_INHERIT = ""
SYSTEMD_INHERIT:mel = "systemd"
inherit ${SYSTEMD_INHERIT}
SYSTEMD_SERVICE:${PN}:mel = "psplash-start.service psplash-quit.service psplash-final.service"
SYSTEMD_AUTO_ENABLE ?= "enable"
do_install:append:mel() {
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -d ${D}${systemd_unitdir}/system/
install -m 0644 ${WORKDIR}/psplash-quit.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/psplash-start.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/psplash-final.service ${D}${systemd_unitdir}/system
fi
rm -f ${D}${systemd_unitdir}/system/psplash-systemd.service
}
|