Fix splash for angstrom-next

Although psplash does not work with systemd but it does with
sysvinit so fix it up.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj
2013-12-08 11:22:36 -08:00
parent eec2dbf5d6
commit 9f41167598
9 changed files with 27 additions and 9 deletions

View File

@@ -118,6 +118,8 @@ PNBLACKLIST[gconf-dbus] = "gconf-dbus has been merged back into main GCon
PNBLACKLIST[gconf-dbus-native] = "gconf-dbus has been merged back into main GConf"
PNBLACKLIST[ffmpeg] = "libav is preferred over ffmpeg"
# Define splash before it gets set to empty in angstrom-core-tweaks.inc:
SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "dietsplash", "",d)}'
require conf/distro/include/angstrom.inc
# Prefer openssh over dropbear
@@ -182,7 +184,6 @@ DISTRO_EXTRA_RRECOMMENDS += " \
${DEBUG_APPS} \
"
SPLASH ?= ' ${@base_contains("MACHINE_FEATURES", "screen", "psplash-angstrom", "",d)}'
DISTRO_FEATURES += "${LDISGOLD}"
#LDISGOLD_arm = "ld-is-gold"

View File

@@ -1,11 +1,18 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: psplash
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
### END INIT INF
if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
echo "Boot splashscreen disabled"
exit 0;
fi
. /etc/init.d/functions
. /etc/default/splashfuncs
. /etc/default/psplash
case `machine_id` in

View File

@@ -1,3 +1,6 @@
machine_id() { # return the machine ID
awk 'BEGIN { FS=": " } /Hardware/ { gsub(" ", "_", $2); print tolower($2) } ' </proc/cpuinfo
}
status() {
if type splash-write >/dev/null 2>&1; then
(TMPDIR="/mnt/.splash" EXQUISITE_IPC="$TMPDIR/exquisite" splash-write "$1" || true) &

View File

@@ -4,6 +4,6 @@ do_install_append() {
mv ${D}${bindir}/psplash ${D}${bindir}/psplash.${PN}
}
ALTERNATIVE_NAME = "psplash"
ALTERNATIVE_LINK = "${bindir}/psplash"
ALTERNATIVE_PATH = "${bindir}/psplash.${PN}"
ALTERNATIVE_${PN} = "psplash"
ALTERNATIVE_LINK_NAME[psplash] = "${bindir}/psplash"
ALTERNATIVE_TARGET[psplash] = "${bindir}/psplash.${PN}"

View File

@@ -44,9 +44,9 @@ do_install_prepend() {
}
INITSCRIPT_NAME = "psplash"
INITSCRIPT_PARAMS = "start 01 S . stop 20 0 1 6 ."
INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ."
PACKAGES =+ "psplash-support"
PACKAGES =+ "${PN}-support"
RDEPENDS_${PN} += "psplash-support"
FILES_psplash-support += "/mnt/.splash ${sysconfdir} ${bindir}/psplash-write ${bindir}/splash-write"
RDEPENDS_${PN} += "${PN}-support"
FILES_${PN}-support += "/mnt/.splash ${sysconfdir} ${bindir}/psplash-write ${bindir}/splash-write"

View File

@@ -4,6 +4,7 @@ CONMANPKGS = "connman connman-angstrom-settings connman-plugin-loopback connman-
require systemd-image.bb
EXTRA_IMAGE_FEATURES += "splash"
ARCHTOOLS = ""
ARCHTOOLS_x86 = "dmidecode"

View File

@@ -2,6 +2,8 @@
require systemd-image.bb
EXTRA_IMAGE_FEATURES += "splash"
XSERVER ?= "xserver-xorg \
xf86-video-fbdev \
xf86-input-evdev \

View File

@@ -1,5 +1,7 @@
require systemd-image.bb
EXTRA_IMAGE_FEATURES += "splash"
IMAGE_INSTALL += " \
xinput-calibrator \
systemd-analyze \

View File

@@ -2,6 +2,8 @@ require systemd-image.bb
CONMANPKGS = "networkmanager network-manager-applet"
EXTRA_IMAGE_FEATURES += "splash"
IMAGE_INSTALL += " \
packagegroup-xfce-base \
packagegroup-gnome-xserver-base \