From patchwork Fri Oct 10 03:42:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 583 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760067855; bh=KCfSpsWpiIXPjmie63MlVdVWiNdQ9/wWLA+NnpoC+oU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=CDEftN2JxAhc1sulMeIFa7xQgn9uwnfPWr2HrasB/2mgMyc8RYXXMOSjyH5sbEmG5 wABcxkcbieILYbQSz2k+Z/dWTAR146UoCHjg98vUjIV6wGUtuwe8g5tLSvfsvdX9Ab G2ow2mCJINDVr5TKzf1QfKZkPkgOiuX7eBpx5V3ZLbnIImyDUtlqEu8s0KEOapXLGr DmWYUrJ7385hC5dATRH31lfbtKkkNw8m/wDMvdZuxa6TneyjT5ASWEewJeLgdh4oH1 2PT/zjFZ5zR/gsuf646+Rr4kmWliRlogfRija4DN6RPUnNI+Epx2INiOW8caAXxEgM Q6I9EmJK7pGLg== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 062A067F7F for ; Thu, 9 Oct 2025 21:44:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id SRP9u2z-voUi for ; Thu, 9 Oct 2025 21:44:14 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760067853; bh=KCfSpsWpiIXPjmie63MlVdVWiNdQ9/wWLA+NnpoC+oU=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=lQliB75HZO0X5SHV+DD7DeT8hwRVtLkp4bRJy3ujn6ucJtnR5qWQ9iIB1guV/T+ER I1sNjo1caAeQV0dfDPPsadCm2ayMSyD+ijKz/HZzotzRWxOUdcd7EtQxJl+Q+cS7W7 yTSM14dNeOcixgF4+s2KlV0afZBSAXCyLCX+Ml7arIo1TD1BvR4A8xYB8WOqv+kD47 BV8t7Jq5K4yR8zoUwDMldJXtb7zCgTvrWDY9QdAMbAWbYj6NraHb8t1TSsUm35QMxx jv854ZDCz026DOAYv8bzzOkrEjw4h4plE9xwejiqZX72wQCdzTOaZw+orAX6i8F+tC Dxw88aMEuZFeg== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5F5FD6807B for ; Thu, 9 Oct 2025 21:44:13 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760067850; bh=slMtUI9VsNIgiYSrziLOD7KUQlA6EYlCHwIFP819Ric=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUjSTCYQkkdMKcnkLAAvS9JfIRu9Hgo2S2Gi2JNHc4DN0xYWb8riPAFwodl8zjshi zXEnpyBOU7/FB7RaN6LXbf0FFO8AR63F8bydxDbyNySE+WKAGCyGcayI4XWoKJj+W1 q+ovI26HzX1yoNCzMRaxD9Ovbn5fu/m2XZE6nM4uuGgXoIWZeUOr8fSTPxHm4gpe3P pc3e0L746PSx3N7xCRfnh1jt4SnVwf1HCsXSuYJ3IXTy/FYCXptjQbx2cEZYSfLi61 z48SE87X3HCjvVSeGHHr53Zrc67dO5zwfR1CTKBbhvlmr3EBCB6QQY7wORANjW2jay gcwSLd0le4ltQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 97A7568082; Thu, 9 Oct 2025 21:44:10 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id M5UgZZ2bxEz5; Thu, 9 Oct 2025 21:44:10 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1760067845; bh=hjKpVjKLbObeoCs7ejXt1c9qyI+Sl9/Svl9i4USMsTw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JI6I719IpKtbl8OnqQ6N+j2z6odhllh4RLUzhjr02gZIwgN93nlXhlT2cWUKURJFs h78S0uYHnfRDLx8dXkbcGuRmRtcG5F3WDzbHhv1YnVQj/UYTWMhv34MpxOzG/H1UT7 w46du7uzxBw9uuAODzL6wV6G4H2b/hhZsS48actYl5jdjo6B44rmPtydPWvEXyVVle qZV4xQwoaqewd2Pz21/dVfOOM8dvukbAGgzpMHF6p23sP3kmjfnxvPZeFYjFAzgoAW TaE+uZ/S9ncuPfDmisPP0B965EA9RKXEUAlK1YPZ6lpMLVstF9d8JC8oVBQZ1WRw/W 3P0jmeOAS+m+A== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id B405267FC1; Thu, 9 Oct 2025 21:44:04 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Thu, 9 Oct 2025 21:42:44 -0600 Message-ID: <20251010034255.1099728-17-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251010034255.1099728-1-sjg@u-boot.org> References: <20251010034255.1099728-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 5BM4LOSYZBBOUT57WPTNEEBPOL5RKNHV X-Message-ID-Hash: 5BM4LOSYZBBOUT57WPTNEEBPOL5RKNHV X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 16/18] expo: Add a way to display the distro version-name List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Some distros have a name in addition to the version. Add an object for that in case it is needed. Move the existing objects down to make room. Add a definition for a button which displays help. For now this is not used in the standard layout. Signed-off-by: Simon Glass --- boot/bootflow_internal.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/boot/bootflow_internal.h b/boot/bootflow_internal.h index ae7bb16ce8d..8731e9950fd 100644 --- a/boot/bootflow_internal.h +++ b/boot/bootflow_internal.h @@ -23,6 +23,7 @@ * @ITEM_DESC: Longer description or pretty name, e.g. "Ubuntu 2024.04 LTS" * @ITEM_KEY: Keypress to select this item, e.g. "1" * @ITEM_PREVIEW: Preview image for the OS + * @ITEM_VERSION_NAME: Distro's name for the version, e.g. 'Noble Numbat' */ enum boomenu_id_t { START, @@ -56,13 +57,15 @@ enum boomenu_id_t { STR_LABEL = 100, STR_DESC = 200, STR_KEY = 300, + STR_VERSION_NAME = 400, /* menu items / components (bootflow number is added to these) */ - ITEM = 400, - ITEM_LABEL = 500, - ITEM_DESC = 600, - ITEM_KEY = 700, - ITEM_PREVIEW = 800, + ITEM = 600, + ITEM_LABEL = 700, + ITEM_DESC = 800, + ITEM_KEY = 900, + ITEM_PREVIEW = 1000, + ITEM_VERSION_NAME = 1100, /* left margin for the main menu */ MARGIN_LEFT = 100,