linux-karo: add override mechanism for console logo and default to external Vivante...
authorFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 12 Mar 2019 16:30:57 +0000 (17:30 +0100)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Tue, 12 Mar 2019 16:30:57 +0000 (17:30 +0100)
recipes-kernel/linux/linux-karo/bootlogo.png [new file with mode: 0644]
recipes-kernel/linux/linux-karo_%.bbappend [new file with mode: 0644]

diff --git a/recipes-kernel/linux/linux-karo/bootlogo.png b/recipes-kernel/linux/linux-karo/bootlogo.png
new file mode 100644 (file)
index 0000000..8a17f7c
Binary files /dev/null and b/recipes-kernel/linux/linux-karo/bootlogo.png differ
diff --git a/recipes-kernel/linux/linux-karo_%.bbappend b/recipes-kernel/linux/linux-karo_%.bbappend
new file mode 100644 (file)
index 0000000..5aeea4b
--- /dev/null
@@ -0,0 +1,22 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-karo:"
+
+SRC_URI += " \
+                       file://bootlogo.png \
+"
+
+do_configure_prepend () {
+    # convert and copy custom logo
+       pngtopnm ${WORKDIR}/bootlogo.png | ppmquant 224 | pnmnoraw > ${WORKDIR}/bootlogo.ppm
+
+    if [ -e ${WORKDIR}/bootlogo.ppm ]; then
+        install -m 0644 ${WORKDIR}/bootlogo.ppm ${S}/drivers/video/logo/logo_linux_clut224.ppm
+        kernel_conf_variable LOGO y
+        kernel_conf_variable LOGO_LINUX_CLUT224 y
+       else
+               echo Error: Logo conversion failed
+               exit 1
+    fi
+}
+
+MACHINE_USES_VIVANTE_KERNEL_DRIVER_MODULE = "1"
+