From: Peter Korsgaard <peter@korsgaard.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 2/4] linux: add custom linux logo
Date: Sun, 21 Oct 2018 18:15:03 +0200 [thread overview]
Message-ID: <87woqb5la0.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <1535118300-26815-2-git-send-email-angelo@amarulasolutions.com> (Angelo Compagnucci's message of "Fri, 24 Aug 2018 15:44:58 +0200")
>>>>> "Angelo" == Angelo Compagnucci <angelo@amarulasolutions.com> writes:
> From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
> This patch adds a simple way to change the linux bootup logo.
> The patch was kept purposely simple to support only the use cause
> where a user needs a color linux boot up logo.
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> linux/Config.in | 10 ++++++++++
> linux/linux.mk | 15 +++++++++++++++
> 2 files changed, 25 insertions(+)
> diff --git a/linux/Config.in b/linux/Config.in
> index b7bee99..9a410b1 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -188,6 +188,16 @@ config BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES
> A space-separated list of kernel configuration fragment files,
> that will be merged to the main kernel configuration file.
> +config BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH
> + string "Custom logo file path"
It is IMHO not directly clear what this logo is about, so I've changed
it to:
Custom boot logo file path
> + help
> + Change the linux boot logo with your own graphics,
> + it can be used as an early bootsplash, framebuffer support
> + should be enabled to have this feature working.
Instead of describing that framebuffer support should be enabled, we
should just enable it.
This help text is IMHO not so clear. I've rewored it to:
Use a custom Linux framebuffer boot logo.
Custom logo should be in PNG or JPEG format, it will be
> + Custom logo should be in png or jpg, it will be
> + converted to the linux kernel format (224 colors only)
> + and copied over the original logo file.
> +
> #
> # Binary format
> #
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 675e790..e38c7de 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -248,6 +248,18 @@ define LINUX_TRY_PATCH_TIMECONST
> endef
> LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST
> +LINUX_KERNEL_CUSTOM_LOGO_PATH = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH))
> +ifneq ($(LINUX_KERNEL_CUSTOM_LOGO_PATH),)
> +LINUX_DEPENDENCIES += host-imagemagick
> +LINUX_KERNEL_CUSTOM_LOGO = y
This variable isn't really needed as the $(if logic can just use
LINUX_KERNEL_CUSTOM_LOGO_PATH directly.
> +define LINUX_KERNEL_CUSTOM_LOGO_CONVERT
> + $(HOST_DIR)/usr/bin/convert $(LINUX_KERNEL_CUSTOM_LOGO_PATH) \
convert gets installed in $(HOST_DIR)/bin, so we should use that.
> + $(if $(LINUX_KERNEL_CUSTOM_LOGO),
> + $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO,$(@D)/.config)
> + $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224,$(@D)/.config))
We should also enable CONFIG_FB.
Committed with these changes, thanks.
--
Bye, Peter Korsgaard
next prev parent reply other threads:[~2018-10-21 16:15 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-24 13:44 [Buildroot] [PATCH v4 1/4] package/imagemagick: add host package Angelo Compagnucci
2018-08-24 13:44 ` [Buildroot] [PATCH v4 2/4] linux: add custom linux logo Angelo Compagnucci
2018-08-24 21:19 ` Yann E. MORIN
2018-10-21 16:15 ` Peter Korsgaard [this message]
2018-08-24 13:44 ` [Buildroot] [PATCH v4 3/4] docs/images: adding default buildroot " Angelo Compagnucci
2018-08-24 21:27 ` Yann E. MORIN
2018-08-27 9:05 ` Thomas Petazzoni
2018-08-27 9:07 ` Angelo Compagnucci
2018-08-24 13:45 ` [Buildroot] [PATCH v4 4/4] configs: add linux boot logo to a selection of configs Angelo Compagnucci
2018-08-24 21:49 ` Yann E. MORIN
2018-08-24 22:55 ` Angelo Compagnucci
2018-08-25 7:33 ` Yann E. MORIN
2018-08-27 9:08 ` Thomas Petazzoni
2018-08-27 17:34 ` Angelo Compagnucci
2018-08-24 21:17 ` [Buildroot] [PATCH v4 1/4] package/imagemagick: add host package Yann E. MORIN
2018-10-21 15:23 ` Peter Korsgaard
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=87woqb5la0.fsf@dell.be.48ers.dk \
--to=peter@korsgaard.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