[OE-core] [psplash][PATCH] Add --fbdev option to psplash like --rotation.
Julien Gueytat
contact at jgueytat.fr
Sun May 22 18:16:05 UTC 2016
A new fbdev file is needed and should be overrided if needed.
The number contained in fbdev will be used as X in /dev/fbX.
By overriding fbdev you can have a splash screen on another
framebuffer than /dev/fbO.
You might have to adapt INITSCRIPT_PARAMS in psplash_git.bbappend
in case the framebuffer you want to use is not ready yet.
Signed-off-by: Julien Gueytat <contact at jgueytat.fr>
---
meta/recipes-core/base-files/base-files/fbdev | 1 +
meta/recipes-core/base-files/base-files_3.0.14.bb | 8 +++++++-
meta/recipes-core/psplash/files/psplash-init | 7 ++++++-
3 files changed, 14 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-core/base-files/base-files/fbdev
diff --git a/meta/recipes-core/base-files/base-files/fbdev b/meta/recipes-core/base-files/base-files/fbdev
new file mode 100644
index 0000000..c227083
--- /dev/null
+++ b/meta/recipes-core/base-files/base-files/fbdev
@@ -0,0 +1 @@
+0
\ No newline at end of file
diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb b/meta/recipes-core/base-files/base-files_3.0.14.bb
index d391707..17225a9 100644
--- a/meta/recipes-core/base-files/base-files_3.0.14.bb
+++ b/meta/recipes-core/base-files/base-files_3.0.14.bb
@@ -10,7 +10,8 @@ LIC_FILES_CHKSUM = "file://licenses/GPL-2;md5=94d55d512a9ba36caa9b7df079bae19f"
# For the manifest and the license text for each package:
# Set COPY_LIC_MANIFEST and COPY_LIC_DIRS
-SRC_URI = "file://rotation \
+SRC_URI = "file://fbdev \
+ file://rotation \
file://nsswitch.conf \
file://motd \
file://host.conf \
@@ -110,6 +111,11 @@ do_install () {
${BASEFILESISSUEINSTALL}
+ fbdev=`cat ${WORKDIR}/fbdev`
+ if [ "$fbdev" != "0" ]; then
+ install -m 0644 ${WORKDIR}/fbdev ${D}${sysconfdir}/fbdev
+ fi
+
rotation=`cat ${WORKDIR}/rotation`
if [ "$rotation" != "0" ]; then
install -m 0644 ${WORKDIR}/rotation ${D}${sysconfdir}/rotation
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init
index 66c85e9..3d12f78 100755
--- a/meta/recipes-core/psplash/files/psplash-init
+++ b/meta/recipes-core/psplash/files/psplash-init
@@ -20,10 +20,15 @@ done
export TMPDIR=/mnt/.psplash
mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+fbdev=0
+if [ -e /etc/fbdev ]; then
+ read fbdev < /etc/fbdev
+fi
+
rotation=0
if [ -e /etc/rotation ]; then
read rotation < /etc/rotation
fi
-/usr/bin/psplash --angle $rotation &
+/usr/bin/psplash --fbdev $fbdev --angle $rotation &
--
1.9.1
More information about the Openembedded-core
mailing list