From patchwork Tue Dec 6 19:08:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 703305 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tYB3x65tvz9sQw for ; Wed, 7 Dec 2016 06:08:29 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="PpqD49Ve"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 2CD3E8826B; Tue, 6 Dec 2016 19:08:27 +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 oh0UxMwBQQ+F; Tue, 6 Dec 2016 19:08:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E90F487B19; Tue, 6 Dec 2016 19:08:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id A0DBF1C0176 for ; Tue, 6 Dec 2016 19:08:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 998AB2A1CB for ; Tue, 6 Dec 2016 19:08:23 +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 83mKzCre5C9l for ; Tue, 6 Dec 2016 19:08:22 +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 silver.osuosl.org (Postfix) with ESMTPS id BC6F72A1B6 for ; Tue, 6 Dec 2016 19:08:21 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id m203so23330126wma.3 for ; Tue, 06 Dec 2016 11:08:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=pG7/mC308+IAA2QWyaOq02+qYnpu1oqJVfQDNgPwgo4=; b=PpqD49Ve0D+MIh3+i8OCHJIZvzxV8/212HJuRphIMedODtJbADmEQXNUjkImjpTPF4 Q0+sX1i18Kevakdo9nJj5mMAhdSTvW3LUEoqLmlU9hvOMTm4o4RIdZvRYGGYqr116Bta eJPv+kvZTfn2KT+iNk4o9mnBStJfPqEmpXr68KXJflzwe77SOgTPVnkjtwpM5zrXrsDH +YoE65GHsOYnoIwMGnXwI9ZepSPDMR5tL/G3Osl7FUa7A6uB+ju0mLUt3rCg3OfDRn9N O2jXkfdN9WvuUF+E+jtUZsuC8pHzqrz7ucZRYcLQ5XHpVHFoQg/JxH1RWTWs6rwF9Lsk qIKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pG7/mC308+IAA2QWyaOq02+qYnpu1oqJVfQDNgPwgo4=; b=MzUStB/lGxTCOt4Xbr/E5naPdPQWwOQGSPB77ldMbM3LRQIOUfo4/kpYTMwdZ53c/A i2rc6m1QJvMVxO4DqFs99XqOtE0koLKCI3wAwgDSVsprJ9bcxQsLlUpPn1LhCjbJlrOS 9Rx0dK8WJnYpoMCg1ajKcenitl9k+LEEg4jaUYDEr/TmpSKzC4DdLI2snWHZl5Blg/RX ej5oaSU7TzTDWbHOjdg/7OXNzBzkLjYUn+Kca6cilNFhjIGo0rEbcghd/yr8NmzbiJGf 3MRpUe/aNrilh124uO+OTK9Y3WvbBtACqkQFL6yTL/VSW8nFWUfQ/2y0v0z6Nb2z6TSB qL5Q== X-Gm-Message-State: AKaTC00aMqNFI4pXSPkvrAYAH0GyEGh88lgclVGrrIfV3Wb7bwMbplO9XAxjUmSFKvl0Wg== X-Received: by 10.28.234.85 with SMTP id i82mr115744wmh.6.1481051300235; Tue, 06 Dec 2016 11:08:20 -0800 (PST) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id m145sm5504852wma.3.2016.12.06.11.08.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Dec 2016 11:08:19 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Tue, 6 Dec 2016 20:08:15 +0100 Message-Id: <1481051295-1190-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] linux: Adding customizable linux logo X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This patch adds a custom linux logo to the generated kernel image. Signed-off-by: Angelo Compagnucci --- 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