Message ID | 20250905170132.182249-3-sjg@u-boot.org |
---|---|
State | New |
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> 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=1757091713; bh=S5pPbpmyXLZ4XGUztKXaWr9pFYWL3cl3E1JbB/kdbYc=; 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=ifk247LwriDxDXle5f0SyuRNEogOb3irluvgGQ0msRNG0FOhzbCuaQhLseJXHmFy0 PEJoRNEpccpf2o53f7HcFfxRNUHywF9xgpVfe3yPg6OdvjpEdncyUEqV2KZ4byQXnq RcBhjFUfUPmBLCRNORwc9eb7WgpNRzrIgxwfk3vusHcY7T9SGp2WmFuJDlZcEcknY9 UWAk9ERtu6LNPvqt9zY8EF49gT38hPnF+Av0Jqjgd0FrMF72ISKHxHf1f1SVLzDren SczlJ6rgVcIlYfVRWqAooPP5opsQfULm+4cngVMG1VdGNkDlikkhVYMmrGSq3QT5+7 Bih7V4BYkbzIQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id EB621679AC for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:53 -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 B5QlfBgKW3f7 for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091713; bh=S5pPbpmyXLZ4XGUztKXaWr9pFYWL3cl3E1JbB/kdbYc=; 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=ifk247LwriDxDXle5f0SyuRNEogOb3irluvgGQ0msRNG0FOhzbCuaQhLseJXHmFy0 PEJoRNEpccpf2o53f7HcFfxRNUHywF9xgpVfe3yPg6OdvjpEdncyUEqV2KZ4byQXnq RcBhjFUfUPmBLCRNORwc9eb7WgpNRzrIgxwfk3vusHcY7T9SGp2WmFuJDlZcEcknY9 UWAk9ERtu6LNPvqt9zY8EF49gT38hPnF+Av0Jqjgd0FrMF72ISKHxHf1f1SVLzDren SczlJ6rgVcIlYfVRWqAooPP5opsQfULm+4cngVMG1VdGNkDlikkhVYMmrGSq3QT5+7 Bih7V4BYkbzIQ== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id D546267999 for <u-boot-concept@u-boot.org>; Fri, 5 Sep 2025 11:01:53 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091712; bh=ncnger8RVkLO160ymoPt1wXPWcFgyCIL/UTRB0J0zKM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vg5Xg756b1BYrlNLKxR+IRKfq9L9OMv6aGFXMPLm0RfU5ycoonrd+M9tqpl2Beqfz RZvHWscOEDF0OrST4+S0kwAks2f6hfTK531VpR1y6vaC1xb2fS1vlb/evSXD0RCLMN hGfOny68uNq6ssG9gX1UOGQxxcdWZECoDpH4UDqxY13zTge7q3VKx5An2p9vPEM2Lq QcViU/GCp+M9TbPoAzcuqLtACBLqYS30rTRDLzt5+qSsdPEY19qUWpA1KkayDWlKmd hmSMc0K5oRhb08Fgm0NJB906CSOLeOE3gB4LJHqOBqXsYVJYyJan8xBW/+/xFAFLe0 k39YPUdV0syRA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 1A6986799D; Fri, 5 Sep 2025 11:01:52 -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 Js32PanqxF-M; Fri, 5 Sep 2025 11:01:52 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1757091711; bh=yWBc/UdfJkHv8xxji0orNPN8xE12ZqFg1npCI/Z4oj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NjmsFfjQhDhDvzM0k/WtcxfXrBKwkws1MqfM7c+eJFhRQ9grTeWkdyUAN1AskeuCM 99e+CM7DUFxOyeRMUSQqgkjDGtLLSGldIJ6tMUZdo4n429SZNA3x7zuFOMdzpNkfy9 kqfgIZUtAyj/Lt9KfBhguv7DugXNV/Ucp9L0/SbIUlTKX1vSY6y89s+X0X36C3Ser0 axKVpdp+SL92NPWQXFpbk+dJMrVnwRSVgP7WxhU/WXIJln+EdIC6q0RzUguwq2afc2 Ly4prIZ/D5oE4Oj+ZI9Yx7ZzhJ5c17eMtDkD0mid45Ln44FJlnc9apPaZsY745ADz5 jtm9WoWOOBfEQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 99844678E6; Fri, 5 Sep 2025 11:01:51 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Fri, 5 Sep 2025 11:01:13 -0600 Message-ID: <20250905170132.182249-3-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250905170132.182249-1-sjg@u-boot.org> References: <20250905170132.182249-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: Y4AVB6Q2IHIHO6RO4JHACS5RHFJAMSF7 X-Message-ID-Hash: Y4AVB6Q2IHIHO6RO4JHACS5RHFJAMSF7 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: Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 02/15] ulib: Disable environment setup List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/Y4AVB6Q2IHIHO6RO4JHACS5RHFJAMSF7/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
ulib: Provide test programs and documentation
|
|
Commit Message
Simon Glass
Sept. 5, 2025, 5:01 p.m. UTC
From: Simon Glass <sjg@chromium.org> The application may not wish to have an environment, so skip this init with the library. Signed-off-by: Simon Glass <sjg@chromium.org> --- common/board_r.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/common/board_r.c b/common/board_r.c index 1bb0eb37e9b..22506effae6 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -417,6 +417,9 @@ static int should_load_env(void) static int initr_env(void) { + if (gd_ulib()) + return 0; + /* initialize environment */ if (should_load_env()) env_relocate();