From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 28 Aug 2023 14:33:07 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qabQa-00C2gX-Da for lore@lore.pengutronix.de; Mon, 28 Aug 2023 14:33:07 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1qabQY-0003Tg-97; Mon, 28 Aug 2023 14:33:06 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qabQS-0003Ss-9o; Mon, 28 Aug 2023 14:33:00 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qabQR-002DJo-LP; Mon, 28 Aug 2023 14:32:59 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1qabQR-005jSV-1S; Mon, 28 Aug 2023 14:32:59 +0200 From: Roland Hieber To: rsc@pengutronix.de Date: Mon, 28 Aug 2023 14:32:48 +0200 Message-Id: <20230828123248.1366357-1-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH] fixup! v7a: barebox: enable loading kernel, dtb and initrd via fastboot X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de, jbe@pengutronix.de, jlu@pengutronix.de, Roland Hieber Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Roland Hieber --- On Mon, Aug 28, 2023 at 08:11:07AM +0200, Robert Schwebel wrote: > Jan, what's the best way to catch this in 'reason'? I tried to match on > 'PLATFORM' and use value: 'v7a', but this doesn't work. Matching on ARCH_ARM > isn't an option, as we have platform-rpi1. I don't know how your condition looked, but the patch below works for me. A similar expression is already a few lines further above in the kernel_dtb_partitions check (although the .get() should not be needed here as PTXCONF_PLATFORM is always defined). configs/bsp.ref | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/bsp.ref b/configs/bsp.ref index cb91c780516f..d20eb70afd45 100644 --- a/configs/bsp.ref +++ b/configs/bsp.ref @@ -29,7 +29,7 @@ kernel_initrd: Initrd support is not needed on most embedded systems. For v8a, we use an initrd for the fastboot usecase. variants: - - condition: kconfig.PTXPlatformConfig()['ARCH_ARM64'] + - condition: kconfig.PTXPlatformConfig().options['PLATFORM'] in ('v8a', 'v7a') value: True - value: False -- 2.39.2