{"id":2220989,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2220989/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/20260408-ui-cosmetics-v2-1-721dc6d2116a@postmarketos.org/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260408-ui-cosmetics-v2-1-721dc6d2116a@postmarketos.org>","list_archive_url":null,"date":"2026-04-08T16:34:56","name":"[v2,1/2] autoboot: allow custom prompt without requiring AUTOBOOT_KEYED","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ef769d536f210382721892537ce99d245a5bc52f","submitter":{"id":90020,"url":"http://patchwork.ozlabs.org/api/1.2/people/90020/?format=json","name":"Ferass El Hafidi","email":"funderscore@postmarketos.org"},"delegate":{"id":3651,"url":"http://patchwork.ozlabs.org/api/1.2/users/3651/?format=json","username":"trini","first_name":"Tom","last_name":"Rini","email":"trini@ti.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/20260408-ui-cosmetics-v2-1-721dc6d2116a@postmarketos.org/mbox/","series":[{"id":499158,"url":"http://patchwork.ozlabs.org/api/1.2/series/499158/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/list/?series=499158","date":"2026-04-08T16:34:55","name":"Autoboot prompt customization and bootmenu cosmetics","version":2,"mbox":"http://patchwork.ozlabs.org/series/499158/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2220989/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220989/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=postmarketos.org header.i=@postmarketos.org\n header.a=rsa-sha256 header.s=key1 header.b=Kl+5yQQd;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)","phobos.denx.de;\n dmarc=pass (p=quarantine dis=none) header.from=postmarketos.org","phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de","phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=postmarketos.org header.i=@postmarketos.org\n header.b=\"Kl+5yQQd\";\n\tdkim-atps=neutral","phobos.denx.de; dmarc=pass (p=quarantine dis=none)\n header.from=postmarketos.org","phobos.denx.de;\n spf=pass smtp.mailfrom=funderscore@postmarketos.org"],"Received":["from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4frTFp1s5Pz1xv0\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 02:35:42 +1000 (AEST)","from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 0E00E84129;\n\tWed,  8 Apr 2026 18:35:31 +0200 (CEST)","by phobos.denx.de (Postfix, from userid 109)\n id B598F83D8A; Wed,  8 Apr 2026 18:35:29 +0200 (CEST)","from out-182.mta0.migadu.com (out-182.mta0.migadu.com\n [91.218.175.182])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id BFF0B8404A\n for <u-boot@lists.denx.de>; Wed,  8 Apr 2026 18:35:27 +0200 (CEST)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2","X-Report-Abuse":"Please report any abuse attempt to abuse@migadu.com and\n include these headers.","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org;\n s=key1; t=1775666127;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=1PAEKyaLQKb2CBbC8hZ+Bx+eqwEO2/dROd/+XyqQWQM=;\n b=Kl+5yQQdaktAzuVPWKMUpmZm9LFYt0zyqGuFSrY4SEgFOwHrgFE1nIs/Jc/SnIyjFqgcpF\n RustuoD5MxZDg2GYU24UGNceoN0eA/btwpbZpD75LpxiU0A7lJBlpQGgqKlV3alfkpwriq\n /HF80ixwn7XiRIWgnNOo6MupAnuktMRnAWZxF2UoiRB01Kr5TUTdQpkq+iZ5OOAxfKu2fx\n xf2VDe6KqjL+323/57gdWcP5LuCQl/1u4DdQer5OauJB+W3X0P3r3Zc7A9MImnEgYvWEk3\n iAzOTx48g5VuLDt0FSLDH25CNUlcpf1hMv1esRZGM5n34qNxuXXI7mxtoFab/w==","From":"Ferass El Hafidi <funderscore@postmarketos.org>","Date":"Wed, 08 Apr 2026 16:34:56 +0000","Subject":"[PATCH v2 1/2] autoboot: allow custom prompt without requiring\n AUTOBOOT_KEYED","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"7bit","Message-Id":"<20260408-ui-cosmetics-v2-1-721dc6d2116a@postmarketos.org>","References":"<20260408-ui-cosmetics-v2-0-721dc6d2116a@postmarketos.org>","In-Reply-To":"<20260408-ui-cosmetics-v2-0-721dc6d2116a@postmarketos.org>","To":"u-boot@lists.denx.de","Cc":"Tom Rini <trini@konsulko.com>, Quentin Schulz <quentin.schulz@cherry.de>,\n \"Kory Maincent (TI.com)\" <kory.maincent@bootlin.com>,\n Simon Glass <sjg@chromium.org>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>,\n Anshul Dalal <anshuld@ti.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>,\n Martin Schwan <m.schwan@phytec.de>, David Zang <davidzangcs@gmail.com>,\n Sam Protsenko <semen.protsenko@linaro.org>,\n Christian Marangi <ansuelsmth@gmail.com>,\n Ferass El Hafidi <funderscore@postmarketos.org>","X-Developer-Signature":"v=1; a=openpgp-sha256; l=2857;\n i=funderscore@postmarketos.org; h=from:subject:message-id;\n bh=ey3vCyQ8NMB9oiAJiQONLnCGOS4NPjWQFpjKpgMbNIA=;\n b=owEBbQKS/ZANAwAKAYSvy9DXiZoDAcsmYgBp1oPMjEto+5MgR+g5iFoAvy5Mp/SWwlSiw695z\n vmN2SmoW+SJAjMEAAEKAB0WIQQDAbw3+1VcrP15i+6Er8vQ14maAwUCadaDzAAKCRCEr8vQ14ma\n A4ArD/47WDybYkeT9DHyAZgsP2QthEj3t/8U4a6RLnaDwaSvokty7WNCNfCi6pDXB1eASDc4Jze\n lc72ktJTo9abhi8dgdmtwRpep3Jv39/I/zQPjVR6TSoyNgY+LmtMSbAYiwm8mGn50CYoSgERrMX\n vZDZuYazCAb2g9cWQ4it45kfDVdYa9pm5irda4gPoQp9+kdfUYadWfDx3RMlTwQkfTbYHovQquU\n YDUP23sE7dGPJaUMP0gSDHYbzFfslMvLJDw2xwQy+g9K8pXFKDkW/qDoCd0dJZK8x6CSP/5DvEa\n 0pmDwsK0t7jOVz968z35FIwWgPCf4jLin5U8YxiiqThBfd/fSPhMGJUuMH3ARHf1ACYEp/xEp3P\n BbjvUOFEVrC3G8Lxbs8ih8fvWNeycNZGrBZ2ajrkCp37srz9AkpNC+rdxmYx7R26AirRHcNnYia\n SetHmIZdAXuKiCW6ALhPDF+wWmFVAT4oRzm89GHe92vf7e8d2d1Dsl7BdFj5fvBXcb42MO3Rz1o\n JAopgh9W0QDvOyPbEhHmAu7nEGlGlypaDFLZ0Y3HOOl/b2KzUiMZQuXJGdFryAnbieO8dzJ8tBC\n qtABv2M2IfIXOaWMA78oRxN5xTi+ok2Zpc/1UWlImmOhY+bg10kTRoLMsFuz2CZBr8IMSxWjtIl\n GktPFRpra7crjNQ==","X-Developer-Key":"i=funderscore@postmarketos.org; a=openpgp;\n fpr=0301BC37FB555CACFD798BEE84AFCBD0D7899A03","X-Migadu-Flow":"FLOW_OUT","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.39","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<https://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>","X-Virus-Scanned":"clamav-milter 0.103.8 at phobos.denx.de","X-Virus-Status":"Clean"},"content":"The autoboot prompt used to only be customizable in Kconfig when\nAUTOBOOT_KEYED was enabled. For a usecase such as having a nicer\nautoboot prompt alongside a splash screen, there is no reason for\nAUTOBOOT_KEYED to be required for this.\n\nRemove the dependency to AUTOBOOT_KEYED, and use AUTOBOOT_PROMPT in\nprint_boot_delay() instead of a hardcoded string.\n\nSigned-off-by: Ferass El Hafidi <funderscore@postmarketos.org>\n---\n boot/Kconfig      | 30 +++++++++++++++---------------\n common/autoboot.c |  2 +-\n 2 files changed, 16 insertions(+), 16 deletions(-)","diff":"diff --git a/boot/Kconfig b/boot/Kconfig\nindex bfed452d77e..039c5acc023 100644\n--- a/boot/Kconfig\n+++ b/boot/Kconfig\n@@ -1560,6 +1560,21 @@ config AUTOBOOT\n \thelp\n \t  This enables the autoboot.  See doc/README.autoboot for detail.\n \n+config AUTOBOOT_PROMPT\n+\tstring \"Autoboot stop prompt\"\n+\tdefault \"Autoboot in %d seconds\\\\n\" if AUTOBOOT_KEYED\n+\tdefault \"\\\\rHit any key to stop autoboot: %d\"\n+\thelp\n+\t  This string is displayed before the boot delay selected by\n+\t  CONFIG_BOOTDELAY starts.\n+\n+\t  Note that this define is used as the (only) argument to a\n+\t  printf() call, so it may contain '%' format specifications,\n+\t  provided that it also includes, separated by commas exactly\n+\t  like in a printf statement, the required arguments. It is\n+\t  the responsibility of the user to select only such arguments\n+\t  that are valid in the given context.\n+\n if AUTOBOOT\n \n config BOOTDELAY\n@@ -1597,21 +1612,6 @@ config AUTOBOOT_FLUSH_STDIN\n \t  This can't be enabled for the sandbox as flushing stdin would\n \t  break the autoboot unit tests.\n \n-config AUTOBOOT_PROMPT\n-\tstring \"Autoboot stop prompt\"\n-\tdefault \"Autoboot in %d seconds\\\\n\"\n-\thelp\n-\t  This string is displayed before the boot delay selected by\n-\t  CONFIG_BOOTDELAY starts. If it is not defined\tthere is no\n-\t  output indicating that autoboot is in progress.\n-\n-\t  Note that this define is used as the (only) argument to a\n-\t  printf() call, so it may contain '%' format specifications,\n-\t  provided that it also includes, separated by commas exactly\n-\t  like in a printf statement, the required arguments. It is\n-\t  the responsibility of the user to select only such arguments\n-\t  that are valid in the given context.\n-\n config AUTOBOOT_ENCRYPTION\n \tbool \"Enable encryption in autoboot stopping\"\n \thelp\ndiff --git a/common/autoboot.c b/common/autoboot.c\nindex 1783ef92c94..7114ee58f47 100644\n--- a/common/autoboot.c\n+++ b/common/autoboot.c\n@@ -379,7 +379,7 @@ static int abortboot_key_sequence(int bootdelay)\n \n static void print_boot_delay(int bootdelay)\n {\n-\tprintf(ANSI_CLEAR_LINE \"\\rHit any key to stop autoboot: %d\", bootdelay);\n+\tprintf(ANSI_CLEAR_LINE CONFIG_AUTOBOOT_PROMPT, bootdelay);\n }\n \n static int abortboot_single_key(int bootdelay)\n","prefixes":["v2","1/2"]}