From patchwork Tue May 29 21:22:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 922403 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="ValY1SRB"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40wRWy3XgRz9s0q for ; Wed, 30 May 2018 07:22:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5D366255E3; Tue, 29 May 2018 21:22:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OlwzWL+h9FXd; Tue, 29 May 2018 21:22:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 23BE02547E; Tue, 29 May 2018 21:22:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 0A38C1C0DE1 for ; Tue, 29 May 2018 21:22:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 07C9087EBF for ; Tue, 29 May 2018 21:22:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QHs7QpXfr2sQ for ; Tue, 29 May 2018 21:22:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 53BF887E6D for ; Tue, 29 May 2018 21:22:28 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id t11-v6so44032421wmt.0 for ; Tue, 29 May 2018 14:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WS4SMlMcA04eP2fp+xGNOLzJL5r+aPJ3bU4xE+wRT3M=; b=ValY1SRBDe1mey2KOZMzFsyHwT3sf8+pO4wcIlaI5aSCkQ5lAFj5H8DqVrthhhovpD Bx/F5YxdKtmHAmCZwz24LTcARXzOZHv2dkiJXcnG6s7jJVGi+ue1bkVCEdgtxYqcEc+p y6QPdSL3U7tbrDAZQYiVFDz7UZlpyMoyIrKHY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WS4SMlMcA04eP2fp+xGNOLzJL5r+aPJ3bU4xE+wRT3M=; b=iZjiWHqR5Y6X1ic90B/5grLYSiMMJDlHMIV8dqSI7UOSpXxWyleTLbj719+38xq4zf EZVfAIU2vxJeajRhssj/kEqvAE/dZBDic5gZOgzzdwS1eixjZd+YdLoo2iVBMOAtOVld VRbOnjRnVdOt3rDvjRxmfYiov4WJhxFciFPadoYPmzfYjbfcp06ZBsqYQk4wjs/+4/V8 OV6Rvtvx8L3kJMPTW/fl/Y2xUTos7x72PbGFtkEGEyjlH5pK/LQW/rWoJYzHlrHIMhXH U6IcvZrE0UyT1ePqCthbGaBK55I3NWNSXT0XaSL61UdQY7SYEtwpBe62gSTGbIY7qBxl p0GQ== X-Gm-Message-State: ALKqPwfg9mFchUf2iwCM3GYxab9yy+1AKA0liToEW0TEj0A8aYu0htG1 Dp4mKEiJp5FvG/kY3lJFw8EZ36sBg44= X-Google-Smtp-Source: ADUXVKLAJXLhC1xV67ydir7vJEMUKynes9BnWqcGg9aeGW/+VHBU/KF9SfODxICYU8EfkeKzRIvCjw== X-Received: by 2002:a1c:fc3:: with SMTP id 186-v6mr339391wmp.113.1527628946356; Tue, 29 May 2018 14:22:26 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id 72-v6sm28516190wrb.22.2018.05.29.14.22.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 29 May 2018 14:22:25 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 29 May 2018 23:22:17 +0200 Message-Id: <1527628939-7389-3-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1527628939-7389-1-git-send-email-angelo@amarulasolutions.com> References: <1527628939-7389-1-git-send-email-angelo@amarulasolutions.com> Subject: [Buildroot] [PATCH v3 2/4] linux: add custom linux logo X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Angelo Compagnucci 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 Reviewed-by: "Yann E. MORIN" --- 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. + Custom logo should be in png or jpg and it will be + converted to the linux kernel format (224 colors only). + # # 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)