From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 06 Jan 2025 15:52:12 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUoSh-00HWvD-2F for lore@lore.pengutronix.de; Mon, 06 Jan 2025 15:52:12 +0100 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUoSg-0002Sv-Bf for lore@pengutronix.de; Mon, 06 Jan 2025 15:52:12 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=fJey5mhN9LCk7yLeMIh+iAbtZnvrRkKR/CdQykyNefA=; b=J9tZ8OsC8wGogn4ZRYNi38Fso3 959u63NYLYwv+TOHrQcK/318maViSEyZi8WJdm3qr6zlse/vtWCpAqWIFbczgP0PNbn5bhZLfRmXq lFVqu+9qZ4CpjzmWeIvIG8FXtmjT+qIiNnr1McEFqqliCwhKhVD5tRGpd4AwfR6yOKp7ZhZVewNBl UXMCAKjJqvn9+FW3ujPoMLzY7u/LBshhEUbmqcq/m21R8Jq9ww8xxnb7VDynp+otCwew11niy5B4p w8gBTIEHo3oxjGCyRLA6QcdeenX2aGmajwQiAHgH7/R1oIA7VAc0HIfY3EKCFAgENO2f3BbV9+meg 446m7ofQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tUoSX-00000001eoz-3rKt; Mon, 06 Jan 2025 14:52:01 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tUnRo-00000001S7o-0GbJ for barebox@bombadil.infradead.org; Mon, 06 Jan 2025 13:47:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Cc:To:In-Reply-To:References: Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Sender:Reply-To:Content-ID:Content-Description; bh=fJey5mhN9LCk7yLeMIh+iAbtZnvrRkKR/CdQykyNefA=; b=NS1Pb4y4bXMjMXsyyvTMN97qNx 6sqYYaRizz8WMLdMboCCinFXavzLg7JBWwKZXM0rh/pNqtyZTItB4f0P6WrkUDFnfJseXSga7IuFv hgiqe18oy3NbWaqehHVr+UZeU4n7/3UWBaj4rZhPZUN31sgU4uWwC2yrhABmsLDN3hktexZ4mMlbz 7oDehT2EtY9OlpJp1T3BIwPYeXUjE3gXZUgIIIG3yEfiMgpLFrbPUamB5Ptia6FiFeQVFRPtIhsmO nx9zE5dubQORI0RPaY53gCulGd5zdpyV/rOMsMsZIrXVFAYe2P44V+D6I5jvoqnEGF1eDJZrp+dtF rm/9xwDw==; Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tUnRi-00000008vvW-2zXM for barebox@lists.infradead.org; Mon, 06 Jan 2025 13:47:10 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUnRe-0005lE-1V; Mon, 06 Jan 2025 14:47:02 +0100 Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUnRc-007B3r-2t; Mon, 06 Jan 2025 14:47:01 +0100 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1tUnRd-00CsVv-1n; Mon, 06 Jan 2025 14:47:01 +0100 From: Sascha Hauer Date: Mon, 06 Jan 2025 14:47:04 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250106-k3-r5-v2-7-9de6270089ef@pengutronix.de> References: <20250106-k3-r5-v2-0-9de6270089ef@pengutronix.de> In-Reply-To: <20250106-k3-r5-v2-0-9de6270089ef@pengutronix.de> To: "open list:BAREBOX" X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736171221; l=1475; i=s.hauer@pengutronix.de; s=20230412; h=from:subject:message-id; bh=85U8Lpu7hPTNcHnwf2A9zRJ2GxTZxfh6WuZY5lwtW7Y=; b=WBWGLlhhcKHBHx7VmZerayakMaJg9B5uywlEGkFB5/aOMCIyeHDM9u1CzpMwfjO5JBoHyqJ5u /Hx+RFx3VAgDoF4N9Onvn+yecAp0JQ6qPe+fqqGUX5AOejtIAdfRb8m X-Developer-Key: i=s.hauer@pengutronix.de; a=ed25519; pk=4kuc9ocmECiBJKWxYgqyhtZOHj5AWi7+d0n/UjhkwTg= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250106_134707_202121_46EE15BC X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.whiteo.stw.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-5.3 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 07/22] ARM: K3: mount /boot even with env handling disabled X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.whiteo.stw.pengutronix.de) barebox for the Cortex-R5 boot processor doesn't have environment enabled, but still needs the bootsource mounted to /boot. Both steps are behind a #ifdef CONFIG_ENV_HANDLING. Move the mounting of /boot outside the ifdef. Signed-off-by: Sascha Hauer --- arch/arm/mach-k3/common.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-k3/common.c b/arch/arm/mach-k3/common.c index 1b623d22f6..d7b44f31e8 100644 --- a/arch/arm/mach-k3/common.c +++ b/arch/arm/mach-k3/common.c @@ -178,7 +178,6 @@ static int am625_init(void) } postcore_initcall(am625_init); -#if defined(CONFIG_ENV_HANDLING) static int omap_env_init(void) { char *partname, *cdevname, *envpath; @@ -217,14 +216,17 @@ static int omap_env_init(void) symlink(rootpath, "/boot"); - envpath = xasprintf("%s/barebox.env", rootpath); + if (IS_ENABLED(CONFIG_ENV_HANDLING)) { + envpath = xasprintf("%s/barebox.env", rootpath); - pr_debug("Loading default env from %s on device %s\n", - envpath, partname); + pr_debug("Loading default env from %s on device %s\n", + envpath, partname); - default_environment_path_set(envpath); + default_environment_path_set(envpath); + + free(envpath); + } - free(envpath); out: free(partname); free(cdevname); @@ -232,4 +234,3 @@ static int omap_env_init(void) return 0; } late_initcall(omap_env_init); -#endif -- 2.39.5