{"id":815451,"url":"http://patchwork.ozlabs.org/api/patches/815451/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/1505819034-29610-3-git-send-email-angelo.compagnucci@gmail.com/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505819034-29610-3-git-send-email-angelo.compagnucci@gmail.com>","list_archive_url":null,"date":"2017-09-19T11:03:52","name":"[2/4] linux: add custom linux logo","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"97ce4945ac3dcde06404c79dfb1ebb1ab2d82c2e","submitter":{"id":64104,"url":"http://patchwork.ozlabs.org/api/people/64104/?format=json","name":"Angelo Compagnucci","email":"angelo.compagnucci@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/1505819034-29610-3-git-send-email-angelo.compagnucci@gmail.com/mbox/","series":[{"id":3844,"url":"http://patchwork.ozlabs.org/api/series/3844/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=3844","date":"2017-09-19T11:03:50","name":"Add custom linux logo","version":1,"mbox":"http://patchwork.ozlabs.org/series/3844/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815451/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815451/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@busybox.net>","X-Original-To":["incoming@patchwork.ozlabs.org","buildroot@lists.busybox.net"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","buildroot@osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.133; helo=hemlock.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"sk02JmTr\"; dkim-atps=neutral"],"Received":["from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxKnW6sbyz9rxj\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 21:06:39 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id E41CC87BD5;\n\tTue, 19 Sep 2017 11:06:35 +0000 (UTC)","from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id L5p5bOy4SdBz; Tue, 19 Sep 2017 11:06:33 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 6695E879E6;\n\tTue, 19 Sep 2017 11:06:33 +0000 (UTC)","from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 2AFD01C0262\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 19 Sep 2017 11:06:30 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 245B187454\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 19 Sep 2017 11:06:30 +0000 (UTC)","from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id pNGMTSMuwx3e for <buildroot@lists.busybox.net>;\n\tTue, 19 Sep 2017 11:06:29 +0000 (UTC)","from mail-wm0-f67.google.com (mail-wm0-f67.google.com\n\t[74.125.82.67])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 5D13A871BA\n\tfor <buildroot@buildroot.org>; Tue, 19 Sep 2017 11:06:29 +0000 (UTC)","by mail-wm0-f67.google.com with SMTP id r136so3520178wmf.3\n\tfor <buildroot@buildroot.org>; Tue, 19 Sep 2017 04:06:29 -0700 (PDT)","from localhost.localdomain (ba-19-153-41.service.infuturo.it.\n\t[151.19.153.41]) by smtp.gmail.com with ESMTPSA id\n\tb8sm5513846eda.35.2017.09.19.04.06.25\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 19 Sep 2017 04:06:26 -0700 (PDT)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=SrT3WeEiah1a9Tww6VX8E7WaXlGyEXpF4YWxUzas/mI=;\n\tb=sk02JmTrF6A8JEfrUcnRuiZLf7XVC16gcu1hsitJudC0xEqkxDJToFM8bKQjYyAfMf\n\tlBZazvxjwtvJbkwjy3IxpPe2JvYhWD+rE2IX6G+p9SyibvwjPfC0yuHt3zBqx9KVLGbA\n\tAME2cNvhRjkGwWwvspE8Mhu+xW3h/nP88C6ycdVMk46A/qcPCl81vKTVOJCo3foiH374\n\tVf+a1Z7Qrj6oCblxl6h4FLEWOS2HoOHGO1+mv9xb4KVhaeeDWUsmssc8gcH7XdEEdDKz\n\t6Qto6wRLicvQoMGwnQckjsn8E9KDfpw5a3sYD1W+hFpdgSmHb/M8tXvcrVOPdyHUtQk9\n\tqWag==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=SrT3WeEiah1a9Tww6VX8E7WaXlGyEXpF4YWxUzas/mI=;\n\tb=nbpqtBU58/xlWSfvH9UQbA6TDska9iQhMYB8ug09i1mN180oad6oizSnoapCGob2BY\n\teBrIZdKNhBVFgCt/G2pIZRhb0PZgkgsH3sYhV3pwGg/X7ecfDUUHVDgJFVQxV7hv4WEY\n\tl5zHxRnt2zBEESyMSFmRHS1vtjFz0o+1myp/e2IGHgNq+ZmY4iICs3eQYz8T/B9NmQrh\n\tUzc1RcRfdqmGDNn9LZ1q/W41O3i5sbqbtvHjIYxsihakjZtK8JfuH4AiBex5JEPCBvc8\n\t0/JSNbftYZlcss+VZW8jPGOCjbnHGNt+BdKAkloLYvo6yN77vygIc4U15G6/4SD04X7U\n\tx0aw==","X-Gm-Message-State":"AHPjjUjU8+m1toKGBMHLrQq8OkFSxE8/q8XfHCGJpfUgm0QMIw/rC5fa\n\t8atNPvmHCBVXZ4HFgIISN2F62NYb","X-Google-Smtp-Source":"AOwi7QCdfOeVqeATUDUfPkkQqM9mfjUWAp9Uba/Xzi3fDqCTAjftg2mK1AEB9yZEB8zK++ELfNb6Vw==","X-Received":"by 10.80.148.55 with SMTP id p52mr1343952eda.5.1505819187377;\n\tTue, 19 Sep 2017 04:06:27 -0700 (PDT)","From":"Angelo Compagnucci <angelo.compagnucci@gmail.com>","To":"buildroot@buildroot.org","Date":"Tue, 19 Sep 2017 13:03:52 +0200","Message-Id":"<1505819034-29610-3-git-send-email-angelo.compagnucci@gmail.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1505819034-29610-1-git-send-email-angelo.compagnucci@gmail.com>","References":"<1505819034-29610-1-git-send-email-angelo.compagnucci@gmail.com>","Subject":"[Buildroot] [PATCH 2/4] linux: add custom linux logo","X-BeenThere":"buildroot@busybox.net","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.busybox.net>","List-Unsubscribe":"<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>","List-Archive":"<http://lists.busybox.net/pipermail/buildroot/>","List-Post":"<mailto:buildroot@busybox.net>","List-Help":"<mailto:buildroot-request@busybox.net?subject=help>","List-Subscribe":"<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@busybox.net","Sender":"\"buildroot\" <buildroot-bounces@busybox.net>"},"content":"This patch adds a simple way to change the linux bootup logo.\nThe patch was kept purposely simple to support only the use cause\nwhere a user needs a colour linux boot up logo.\n\nSigned-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>\n---\n linux/Config.in | 27 +++++++++++++++++++++++++++\n linux/linux.mk  | 19 +++++++++++++++++++\n 2 files changed, 46 insertions(+)","diff":"diff --git a/linux/Config.in b/linux/Config.in\nindex 62a4f1e..38c42c9 100644\n--- a/linux/Config.in\n+++ b/linux/Config.in\n@@ -160,6 +160,33 @@ config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG\n \n endchoice\n \n+#\n+# Custom logo\n+#\n+\n+config BR2_LINUX_KERNEL_CUSTOMLOGO\n+\tbool \"Kernel custom logo\"\n+\tselect BR2_PACKAGE_CUSTOMLOGO\n+\thelp\n+\t  Change the linux boot logo with your own graphics.\n+\t  It can be used as an early bootsplash.\n+\t  The file should be in kernel ppm format if the\n+\t  option BR2_LINUX_KERNEL_CUSTOMLOGO_CONVERT is not\n+\t  selected.\n+\n+config BR2_LINUX_KERNEL_CUSTOMLOGO_PATH\n+\tstring \"Image file path\"\n+\tdepends on BR2_LINUX_KERNEL_CUSTOMLOGO\n+\thelp\n+\t  This image will be used as custom logo.\n+\n+config BR2_LINUX_KERNEL_CUSTOMLOGO_CONVERT\n+\tbool \"Convert custom logo to kernel format\"\n+\tdepends on BR2_LINUX_KERNEL_CUSTOMLOGO\n+\thelp\n+\t  If checked, the convert command will be run on the source\n+\t  image file to obtain a kernel compatible ppm image file.\n+\n config BR2_LINUX_KERNEL_DEFCONFIG\n \tstring \"Defconfig name\"\n \tdepends on BR2_LINUX_KERNEL_USE_DEFCONFIG\ndiff --git a/linux/linux.mk b/linux/linux.mk\nindex c7bf83a..002a0c0 100644\n--- a/linux/linux.mk\n+++ b/linux/linux.mk\n@@ -221,6 +221,21 @@ define LINUX_TRY_PATCH_TIMECONST\n endef\n LINUX_POST_PATCH_HOOKS += LINUX_TRY_PATCH_TIMECONST\n \n+ifeq ($(BR2_LINUX_KERNEL_CUSTOMLOGO),y)\n+ifeq ($(BR2_LINUX_KERNEL_CUSTOMLOGO_CONVERT),y)\n+LINUX_DEPENDENCIES += host-imagemagick\n+define LINUX_KERNEL_CUSTOMLOGO_PREPARE\n+\t$(HOST_DIR)/usr/bin/convert $(BR2_LINUX_KERNEL_CUSTOMLOGO_PATH) \\\n+\t\t-dither None -colors 224 -compress none \\\n+\t\t$(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm\n+endef\n+else\n+define LINUX_KERNEL_CUSTOMLOGO_PREPARE\n+\tcp $(BR2_LINUX_KERNEL_CUSTOMLOGO_PATH) $(LINUX_DIR)/drivers/video/logo/logo_linux_clut224.ppm\n+endef\n+endif\n+endif\n+\n ifeq ($(BR2_LINUX_KERNEL_USE_DEFCONFIG),y)\n LINUX_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_LINUX_KERNEL_DEFCONFIG))_defconfig\n else ifeq ($(BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG),y)\n@@ -304,6 +319,9 @@ define LINUX_KCONFIG_FIXUP_CMDS\n \t\t$(call KCONFIG_ENABLE_OPT,CONFIG_ARM_APPENDED_DTB,$(@D)/.config))\n \t$(if $(BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV),\n \t\t$(call KCONFIG_DISABLE_OPT,CONFIG_MXC_GPU_VIV,$(@D)/.config))\n+\t$(if $(BR2_LINUX_KERNEL_CUSTOMLOGO),\n+\t\t$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO,$(@D)/.config)\n+\t\t$(call KCONFIG_ENABLE_OPT,CONFIG_LOGO_LINUX_CLUT224,$(@D)/.config))\n endef\n \n ifeq ($(BR2_LINUX_KERNEL_DTS_SUPPORT),y)\n@@ -356,6 +374,7 @@ endif\n # Compilation. We make sure the kernel gets rebuilt when the\n # configuration has changed.\n define LINUX_BUILD_CMDS\n+\t$(LINUX_KERNEL_CUSTOMLOGO_PREPARE)\n \t$(if $(BR2_LINUX_KERNEL_USE_CUSTOM_DTS),\n \t\tcp -f $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)) $(KERNEL_ARCH_PATH)/boot/dts/)\n \t$(LINUX_MAKE_ENV) $(MAKE) $(LINUX_MAKE_FLAGS) -C $(@D) $(LINUX_TARGET_NAME)\n","prefixes":["2/4"]}