From patchwork Tue Feb 2 23:05:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 577638 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]) by ozlabs.org (Postfix) with ESMTP id F41A71402D6 for ; Wed, 3 Feb 2016 10:06:00 +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=MpXjkH+s; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1B426958EE; Tue, 2 Feb 2016 23:06:00 +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 jw9LfVoq91S5; Tue, 2 Feb 2016 23:05:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CCA78958BE; Tue, 2 Feb 2016 23:05:57 +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 578CB1C11BE for ; Tue, 2 Feb 2016 23:05:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 50C803300A for ; Tue, 2 Feb 2016 23:05:56 +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 cMu72G7w7g2d for ; Tue, 2 Feb 2016 23:05:55 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by silver.osuosl.org (Postfix) with ESMTPS id 067F525277 for ; Tue, 2 Feb 2016 23:05:55 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id r129so140428643wmr.0 for ; Tue, 02 Feb 2016 15:05:54 -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=8EGVVsQPFVfApUWqT1G028gZN/HjgnBW9xsqbZhrcOM=; b=MpXjkH+sYlwVXk6PghNl5TXMAYwBQyNJXV9bYMRsTEo0u4E+4iCQ285iZ0ctsJc62p OhZuWHdXN9YW9psrrZ3zgMcnqiHNrkEmxM36t5Bm5sk28dNKvRvDgkUP0HNrAkQXsJdz sLXmZJK46tUkZz6fv7LKHN7JXSEWxzPggFKwKa9/1Dx3gBXnlC1e1QM6DOh7xP4jqj1Y 7omQ4T0o7HucrJJzJ5cHVbyRyVaecfkzPY92IipH6z5NO4Pnv6iTRa4pPnQ52gT3/JkU RJhR4L8hH66w+8bRkKM1JyZQ9YDW7Po7VSh3rNXqNoyvbraSmd41lmjZw6JZG1HNhfMg gpdw== 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=8EGVVsQPFVfApUWqT1G028gZN/HjgnBW9xsqbZhrcOM=; b=dodsHgtcxHLPzCNhK2GhMsGkepJJ1UCqLsFzFDCW4oFIcDipbXvXtxOosZ28yKo89f Vn4c1g9NGY3EE3j6ysxJeSS+IIxdMsaTrGdOu+EzrAbY+Hmu8vkT3Yq727rMidyNZKf5 biXf6v4bp0g5yKZGlRtihaOQNVlkjqwJ3+ig3sTtrzkcd8G6XBW0p8MzcvSXmRbya7Jg s4QuH+0cwgJLKbFRi7/vV5d1i2EnkntkOhNWUjPysjeNXA0XlUT5l84BuwrRGtLAhe9B rdB2KcbqV1ajkSusTKrWnXXDkpKfOyEZ+BknIwCb6WWjUnVaWWOhgpQ5ech+BnNU56Am jgAQ== X-Gm-Message-State: AG10YOTc0sZPvr5OOB9EVdSTUQ3mHRiZnxlvua7YyY+dEWv++2i/vdXc1GE34i7cZuupfw== X-Received: by 10.28.60.84 with SMTP id j81mr4783252wma.91.1454454353608; Tue, 02 Feb 2016 15:05:53 -0800 (PST) Received: from localhost.localdomain ([89.202.204.147]) by smtp.gmail.com with ESMTPSA id z65sm7119239wmg.1.2016.02.02.15.05.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 15:05:52 -0800 (PST) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Wed, 3 Feb 2016 00:05:42 +0100 Message-Id: <1454454342-27717-1-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] RFC: 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 --- I often use the linux kernel logo as an early full screen bootsplash. For such a reason I wrote this patch and I'm looking for comments. linux/Config.ext.in | 8 ++++++++ linux/linux-ext-customlogo.mk | 11 +++++++++++ package/Config.in | 1 + package/customlogo/Config.in | 16 ++++++++++++++++ package/customlogo/customlogo.mk | 15 +++++++++++++++ 5 files changed, 51 insertions(+) create mode 100644 linux/linux-ext-customlogo.mk create mode 100644 package/customlogo/Config.in create mode 100644 package/customlogo/customlogo.mk diff --git a/linux/Config.ext.in b/linux/Config.ext.in index 755c23b..b752c9c 100644 --- a/linux/Config.ext.in +++ b/linux/Config.ext.in @@ -1,5 +1,13 @@ menu "Linux Kernel Extensions" +# Custom logo +config BR2_LINUX_KERNEL_EXT_CUSTOMLOGO + select BR2_PACKAGE_CUSTOMLOGO + bool "Custom logo" + help + change linux boot logo with your own graphics. + Can be used as an early bootsplash. + # Xenomai config BR2_LINUX_KERNEL_EXT_XENOMAI bool "Adeos/Xenomai Real-time patch" diff --git a/linux/linux-ext-customlogo.mk b/linux/linux-ext-customlogo.mk new file mode 100644 index 0000000..68c613a --- /dev/null +++ b/linux/linux-ext-customlogo.mk @@ -0,0 +1,11 @@ +################################################################################ +# +# Custom logo +# +################################################################################ + +LINUX_EXTENSIONS += customlogo + +define CUSTOMLOGO_PREPARE_KERNEL + cp $(CUSTOMLOGO_DIR)/logo_linux_clut224.ppm $(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm +endef diff --git a/package/Config.in b/package/Config.in index 7ced9d4..1552f32 100644 --- a/package/Config.in +++ b/package/Config.in @@ -214,6 +214,7 @@ comment "Sounds" comment "Themes" source "package/gtk2-engines/Config.in" + source "package/customlogo/Config.in" endmenu diff --git a/package/customlogo/Config.in b/package/customlogo/Config.in new file mode 100644 index 0000000..f8502da --- /dev/null +++ b/package/customlogo/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_CUSTOMLOGO + bool "Custom logo" + help + Change linux boot logo with your own graphics. + Can be used as an early bootsplash. + + *REQUIRES* a pre installed imagemagick on the host system. + +if BR2_PACKAGE_CUSTOMLOGO + +config BR2_PACKAGE_CUSTOMLOGO_PATH + string "image file path" + help + This image will be used as custom logo. + +endif diff --git a/package/customlogo/customlogo.mk b/package/customlogo/customlogo.mk new file mode 100644 index 0000000..4f11522 --- /dev/null +++ b/package/customlogo/customlogo.mk @@ -0,0 +1,15 @@ +################################################################################ +# +# customlogo +# +################################################################################ + +CUSTOMLOGO_SOURCE = + +define CUSTOMLOGO_BUILD_CMDS + convert $(BR2_PACKAGE_CUSTOMLOGO_PATH) \ + -dither None -colors 224 -compress none \ + $(@D)/logo_linux_clut224.ppm +endef + +$(eval $(generic-package))