From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 02 Feb 2024 16:12:55 +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 1rVvDq-0001am-14 for lore@lore.pengutronix.de; Fri, 02 Feb 2024 16:12:55 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rVvDq-0003XM-Sz; Fri, 02 Feb 2024 16:12:54 +0100 Received: from mail.thorsis.com ([92.198.35.195]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVvDC-0002fg-5U; Fri, 02 Feb 2024 16:12:14 +0100 From: Alexander Dahl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=default; t=1706886733; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vvudjB/GeKxYRuWU4KD+0VHXVYB+QHlzFxwzESWzwTc=; b=PbBhbZJ5t6soC9gzKI4xu65LgjeBnQfmjbRRCSasd9iujxftlef4/KjiviB8dpW41UuTC7 F9jjSBhuKgputDNdhI7U0juT5kqlA86LtoiqDSsbxNAUY+5NDDNl/JxRIsZ5Df1aNdawtK ysalHqdyCOlbivE5eb9fJSV9Aw2+Lin1PLN48OcIt7b8KxIt8DQkgmNS0+OLfz40CDt3PP INsM2onu5PdHX8WXDBf3YLXqstNM3dloLZLiKMln8AfNqzmlSTY9WAiK4tz2eiuqmoCogs nOJp0jtG500Y9AZ2lQ8R8H/OLYCY4qU4rV0ZbAuT838X5hxBHpA1y/Rid9ebvg== To: ptxdist@pengutronix.de Date: Fri, 2 Feb 2024 16:12:08 +0100 Message-Id: <20240202151209.2535721-5-ada@thorsis.com> In-Reply-To: <20240202151209.2535721-1-ada@thorsis.com> References: <20240202151209.2535721-1-ada@thorsis.com> Content-Transfer-Encoding: 8bit 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=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 4/5] u-boot: Avoid hooking oldconfig if kconfig is not selected X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: AVazquez , Enrico Jorns , Roland Hieber , Bastian Krause Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Calling `ptxdist oldconfig u-boot` (or `ptxdist oldconfig all`) makes only sense if the package actually uses Kconfig. If it does not, you probably got an at best annoying error message of a missing u-boot .config in your BSP. Fixes: 44e565de9b2d ("u-boot: Add option to use Kconfig based configuration") Signed-off-by: Alexander Dahl --- rules/u-boot.make | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules/u-boot.make b/rules/u-boot.make index cadca4a6b..4bc7f3f78 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -214,7 +214,9 @@ $(STATEDIR)/u-boot.clean: # oldconfig / menuconfig # ---------------------------------------------------------------------------- +ifdef PTXCONF_U_BOOT_CONFIGSYSTEM_KCONFIG u-boot_oldconfig u-boot_menuconfig u-boot_nconfig: $(STATEDIR)/u-boot.extract @$(call world/kconfig, U_BOOT, $(subst u-boot_,,$@)) +endif # vim: syntax=make -- 2.39.2