From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] linux: Adding customizable linux logo
Date: Tue, 6 Dec 2016 20:08:15 +0100 [thread overview]
Message-ID: <1481051295-1190-1-git-send-email-angelo.compagnucci@gmail.com> (raw)
This patch adds a custom linux logo to the generated kernel image.
Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
---
linux/Config.ext.in | 26 ++++++++++++++++++++++++++
linux/linux-ext-customlogo.mk | 19 +++++++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 linux/linux-ext-customlogo.mk
diff --git a/linux/Config.ext.in b/linux/Config.ext.in
index 011dffb..da63109 100644
--- a/linux/Config.ext.in
+++ b/linux/Config.ext.in
@@ -1,5 +1,31 @@
menu "Linux Kernel Extensions"
+# Custom logo
+config BR2_LINUX_KERNEL_EXT_CUSTOMLOGO
+ bool "Custom logo"
+ select BR2_PACKAGE_CUSTOMLOGO
+ help
+ Change linux boot logo with your own graphics.
+ Can be used as an early bootsplash.
+ The file should be in kernel ppm format if the
+ option BR2_PACKAGE_CUSTOMLOGO_CONVERT is not
+ selected.
+
+config BR2_PACKAGE_CUSTOMLOGO_PATH
+ string "Image file path"
+ depends on BR2_LINUX_KERNEL_EXT_CUSTOMLOGO
+ help
+ This image will be used as custom logo.
+
+config BR2_PACKAGE_CUSTOMLOGO_CONVERT
+ bool "Convert custom logo to kernel format"
+ depends on BR2_LINUX_KERNEL_EXT_CUSTOMLOGO
+ help
+ If checked, the convert command will be run on the source
+ image file to obtain a kernel compatible ppm image file.
+ *REQUIRES* a pre installed imagemagick on the host system
+ to convert the image.
+
#-------------------------------------------------------------------------------
# Xenomai
config BR2_LINUX_KERNEL_EXT_XENOMAI
diff --git a/linux/linux-ext-customlogo.mk b/linux/linux-ext-customlogo.mk
new file mode 100644
index 0000000..99e3ab1
--- /dev/null
+++ b/linux/linux-ext-customlogo.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# Custom logo
+#
+################################################################################
+
+LINUX_EXTENSIONS += customlogo
+
+ifeq ($(BR2_PACKAGE_CUSTOMLOGO_CONVERT),)
+define CUSTOMLOGO_PREPARE_KERNEL
+ cp $(BR2_PACKAGE_CUSTOMLOGO_PATH) $(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm
+endef
+else
+define CUSTOMLOGO_PREPARE_KERNEL
+ convert $(BR2_PACKAGE_CUSTOMLOGO_PATH) \
+ -dither None -colors 224 -compress none \
+ $(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm
+endef
+endif
--
2.7.4
next reply other threads:[~2016-12-06 19:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-06 19:08 Angelo Compagnucci [this message]
2016-12-06 23:51 ` [Buildroot] [PATCH] linux: Adding customizable linux logo Arnout Vandecappelle
2016-12-07 6:47 ` Angelo Compagnucci
2016-12-11 14:39 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1481051295-1190-1-git-send-email-angelo.compagnucci@gmail.com \
--to=angelo.compagnucci@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox