From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 2/4] linux: add custom linux logo
Date: Sat, 30 Jun 2018 22:51:13 +0200 [thread overview]
Message-ID: <20180630205113.GC23012@scaer> (raw)
In-Reply-To: <1527628939-7389-3-git-send-email-angelo@amarulasolutions.com>
Angelo, All,
On 2018-05-29 23:22 +0200, Angelo Compagnucci spake thusly:
> 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 colour linux boot up logo.
>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
But I have a small comment though, see below...
> ---
> linux/Config.in | 8 ++++++++
> linux/linux.mk | 15 +++++++++++++++
> 2 files changed, 23 insertions(+)
>
> diff --git a/linux/Config.in b/linux/Config.in
> index b1691fe..102bb22 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -184,6 +184,14 @@ 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"
> + help
> + Change the linux boot logo with your own graphics,
> + it can be used as an early bootsplash.o
I would add that support for framebuffer be enabled in the kernel
config.
> + Custom logo should be in png or jpg and it will be
> + converted to the linux kernel format (224 colors only).
I would also state that this replaces the existing logo file.
Regards,
Yann E. MORIN.
> #
> # Binary format
> #
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 6b5f534..6083756 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -226,6 +226,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
> +define LINUX_KERNEL_CUSTOM_LOGO_CONVERT
> + $(HOST_DIR)/usr/bin/convert $(LINUX_KERNEL_CUSTOM_LOGO_PATH) \
> + -dither None -colors 224 -compress none \
> + $(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm
> +endef
> +LINUX_PRE_BUILD_HOOKS += LINUX_KERNEL_CUSTOM_LOGO_CONVERT
> +endif
> +
> ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)
> LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig
> else ifeq ($(BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG),y)
> @@ -325,6 +337,9 @@ define LINUX_KCONFIG_FIXUP_CMDS
> $(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))
> $(if $(BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV),
> $(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config))
> + $(if $(LINUX_KERNEL_CUSTOM_LOGO),
> + $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO,$(@D)/.config)
> + $(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224,$(@D)/.config))
> endef
>
> ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)
> --
> 2.7.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2018-06-30 20:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-29 21:22 [Buildroot] [PATCH v3 0/4] Linux custom logo Angelo Compagnucci
2018-05-29 21:22 ` [Buildroot] [PATCH v3 1/4] package/imagemagick: add host package Angelo Compagnucci
2018-06-30 20:45 ` Yann E. MORIN
2018-05-29 21:22 ` [Buildroot] [PATCH v3 2/4] linux: add custom linux logo Angelo Compagnucci
2018-06-30 20:51 ` Yann E. MORIN [this message]
2018-05-29 21:22 ` [Buildroot] [PATCH v3 3/4] docs/images: adding default buildroot " Angelo Compagnucci
2018-06-30 20:58 ` Yann E. MORIN
2018-05-29 21:22 ` [Buildroot] [PATCH v3 4/4] configs: add linux boot logo to raspberrypi3 defconfig Angelo Compagnucci
2018-06-30 21:00 ` Yann E. MORIN
2018-07-02 23:13 ` Arnout Vandecappelle
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=20180630205113.GC23012@scaer \
--to=yann.morin.1998@free.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.