From patchwork Tue Oct 14 11:12:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 600 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org Authentication-Results: mail.u-boot.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=g2VVTX/o; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EE1D16814E for ; Tue, 14 Oct 2025 05:14:02 -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 GeKgQaCZo1EA for ; Tue, 14 Oct 2025 05:14:02 -0600 (MDT) Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D2FCD68150 for ; Tue, 14 Oct 2025 05:14:02 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 546BC6814C for ; Tue, 14 Oct 2025 05:14:00 -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 vqWnS8DtaWWq for ; Tue, 14 Oct 2025 05:14:00 -0600 (MDT) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.171; helo=mail-il1-f171.google.com; envelope-from=sjg@chromium.org; receiver=u-boot.org Received: from mail-il1-f171.google.com (mail-il1-f171.google.com [209.85.166.171]) by mail.u-boot.org (Postfix) with ESMTPS id 1E4F8680C5 for ; Tue, 14 Oct 2025 05:13:59 -0600 (MDT) Received: by mail-il1-f171.google.com with SMTP id e9e14a558f8ab-430a4322b12so3536285ab.0 for ; Tue, 14 Oct 2025 04:13:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1760440438; x=1761045238; darn=u-boot.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qyNGzIyi1exC3acWhLfboj7KMLKniiw39cqvn7Mmeig=; b=g2VVTX/o/LMq5ouh7QYsHtuB+GqyYDNpxs/ry/DbCq4rydRkDXAYbmKIErQbgyl5G4 AU8SLQsMoRmkg8NH/QQDIZBmZgpPgaeiZ1b6s9PqYRHyp/uphmTqXMCZ/ahd832SyzJC U3omHVdNg9s9vS0/JVnkRpO5K/yCJW2hOKD+8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760440438; x=1761045238; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qyNGzIyi1exC3acWhLfboj7KMLKniiw39cqvn7Mmeig=; b=k6qhtFD3DIMQGKKAvKuHljvHS+TEF7aGTV98L1A9TNdJA83uQfCh7WxEyXCFimg2xX ankhmjs2CV+J3zKi62bKnZfz5RkxOdyO9whXfWplMNfemuS6iUmrgUL3vP8rQBuMXhHd ccBETcDz+YRmaDmwY/gwsqXMBRSkmyICKp0uhP5raHWbOXDshwhbhBkObZfzt5QmA3S5 bENdQsWkzDZbabvo0YewxXqm8lesvnuq/HHmP6Po5PX5eHfAtIONm4CSML6IPcBdaNkh cYWSs8ubc8eOOMtLy1prt6T/tdwbOG+fX6XNNYl2aUd+gKLZKsk0ItHy4+6khUp/HhAk pnqw== X-Gm-Message-State: AOJu0YzoyjpWExW5nyKTn4P4zGOkR8LpyO30j+M6sE2lzoNDhUNlfbAb 9QvwWrshJuOFgDbtEw9P6jcDHzDCQvvPxzEIyaXyKbYhM0mU/S3YkmPbg59jidj0LEZV1d8FRzL 3XgipFr1f1bQ= X-Gm-Gg: ASbGncsHoQltUJrzmvOk6hv6AYsPnszwqVB1xqMyNSJXjH12nvlxtjeif67dubJcCSr MpZ/uVy8KM88CC/ZxxLFcZDmM3fj+XgRt9RTcA4nRmGC4T4ibsBew2FRr5lWjSzXBFF0jjtOjyt x4VBGNOwckm1cjAY0KO98nplYokmLDeO+pRMl4q/iM1p5QpRS0vXctghADMIfDQlbr0SQS7sKgg kU72g9cvzXBQHnyjkt2ilwf3cqOWjWbjf1120a+MxDl5KvsKo7vzzbqZ4Z/UyV5kDYS9s4z8M4D GUu9Nqk5XFm5B42Cbcb+ZrOKLGfTgbVGdGeQ/kmRuWHcXR6Nqnh8n41CbG8E9PSmRr2vTu8fuL5 c9xpsJ3mvWtl+d6dO369zuugPHlEFNhXP/Nk= X-Google-Smtp-Source: AGHT+IES6fcQq0jVPVodIbHSJ5yVUxPq0XdyibawhIc5nYmoadoDq2Ug1oPa0MfIsOyYWgKRVua5ZQ== X-Received: by 2002:a05:6e02:18cb:b0:430:a5e3:fd69 with SMTP id e9e14a558f8ab-430a5e3ff03mr12214495ab.12.1760440437925; Tue, 14 Oct 2025 04:13:57 -0700 (PDT) Received: from chromium.org ([73.34.74.121]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-430a3869174sm4608785ab.15.2025.10.14.04.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Oct 2025 04:13:56 -0700 (PDT) From: Simon Glass To: U-Boot Concept Date: Tue, 14 Oct 2025 05:12:53 -0600 Message-ID: <20251014111301.1059317-17-sjg@chromium.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251014111301.1059317-1-sjg@chromium.org> References: <20251014111301.1059317-1-sjg@chromium.org> MIME-Version: 1.0 Message-ID-Hash: ZVT37GS6UFLQAY6UMQVFMY4XTYBFRZ6D X-Message-ID-Hash: ZVT37GS6UFLQAY6UMQVFMY4XTYBFRZ6D X-MailFrom: sjg@chromium.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: Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 16/16] boot: Set the item properties with the boot menu List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Initially there may be no items. But when switching to the basic menu there may well be items already present. Set up their properties so that they follow the basic-menu theme. Signed-off-by: Simon Glass --- boot/bootflow_menu.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c index d731a8a8c8c..161c5a42401 100644 --- a/boot/bootflow_menu.c +++ b/boot/bootflow_menu.c @@ -63,8 +63,10 @@ int bootflow_menu_set_props(struct expo *exp, struct scene *scn, bool has_logo, const char *title) { struct expo_theme *theme = &exp->theme; + struct menu_priv *priv = exp->priv; + struct bootstd_priv *std; struct abuf *buf; - int ret = 0; + int i, ret = 0; bool use_font; ret |= scene_obj_set_bbox(scn, OBJ_BOX, 30, 90, 1366 - 30, 720); @@ -145,6 +147,21 @@ int bootflow_menu_set_props(struct expo *exp, struct scene *scn, bool has_logo, exp->show_highlight = true; + ret = bootstd_get_priv(&std); + if (ret) + return ret; + + for (i = 0; i < priv->num_bootflows; i++) { + const struct bootflow *bflow; + + bflow = alist_get(&std->bootflows, i, struct bootflow); + if (!bflow) + return log_msg_ret("bmb", -ENOENT); + ret = bootflow_menu_set_item_props(scn, i, bflow); + if (ret) + return log_msg_ret("mst", ret); + } + return 0; }