Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9AD4DC433FE for ; Thu, 10 Nov 2022 08:01:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 34090850EA; Thu, 10 Nov 2022 09:01:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="VqI9ko0G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1D889850B9; Thu, 10 Nov 2022 09:01:15 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E6AC2850FF for ; Thu, 10 Nov 2022 09:01:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D94461D2A; Thu, 10 Nov 2022 08:01:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C395C433C1; Thu, 10 Nov 2022 08:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668067263; bh=QJGPQBj30XfB9ZiKxtGLmumv6ZOLqUHMYiZ/nJee+s0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VqI9ko0Gt7BIsygQHNRNVXS4IoVgcQnieIArfdBmSzu+qpd42XWc20aY0I2l+g1fg 9S6zOCI6Nqrjb79vWEP+hbpA781LswamapiapL15/6e+ryq5EI41j/4n1QJoE0mqic UxZgYaia8o+aGoyss6f5rd4V79fwZZyu5HOq0uJzR/oHzhEaYzi3hsmVJraDuNFSyq uh+9rI/6ThIyyjbXW6YHksgiHZ/Di4Q7gbzc8SlK6CIPdUxy4TYlM8H7if0O70ttuM V1dMs1zrJqWnaRsrJCCcuKn2I8aZu1O6r+0HTy1N/prrIFvkAoaDPq8XlKPlTsImyg nNrRbFs5nRhtQ== Received: by pali.im (Postfix) id 3C915856; Thu, 10 Nov 2022 09:01:00 +0100 (CET) Date: Thu, 10 Nov 2022 09:01:00 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass Cc: U-Boot Mailing List , Tom Rini , Rasmus Villemoes , Heinrich Schuchardt , Marek =?utf-8?B?QmVow7pu?= , Masahiro Yamada , Quentin Schulz Subject: Re: [PATCH v5 02/16] Makefile: Correct the binman rule Message-ID: <20221110080100.vki76ve3ydpvpi6z@pali> References: <20221110021455.1004335-1-sjg@chromium.org> <20221110021455.1004335-3-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110021455.1004335-3-sjg@chromium.org> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Wednesday 09 November 2022 19:14:40 Simon Glass wrote: > This currently uses if_changed on a phony target. Use a real file as the > target and add FORCE at the end, as required. Drop the 'inputs' phony > since it is not needed. Hello! Just one small note. It is quite surprising that .buildman_stamp target is called also when CONFIG_BINMAN is disabled. Not sure if this is expected but seems it should not cause any issue. > Signed-off-by: Simon Glass > --- > > (no changes since v2) > > Changes in v2: > - Use a separate rule for running binman > > Makefile | 11 ++++------- > 1 file changed, 4 insertions(+), 7 deletions(-) > > diff --git a/Makefile b/Makefile > index d6699a54dbb..93d5c064f4c 100644 > --- a/Makefile > +++ b/Makefile > @@ -1108,18 +1108,15 @@ define deprecated > > endef > > -PHONY += inputs > -inputs: $(INPUTS-y) > - > -all: .binman_stamp inputs > +# Timestamp file to make sure that binman always runs > +.binman_stamp: $(INPUTS-y) FORCE > ifeq ($(CONFIG_BINMAN),y) > $(call if_changed,binman) > endif > - > -# Timestamp file to make sure that binman always runs > -.binman_stamp: FORCE > @touch $@ > > +all: .binman_stamp > + > ifeq ($(CONFIG_DEPRECATED),y) > $(warning "You have deprecated configuration options enabled in your .config! Please check your configuration.") > endif > -- > 2.38.1.431.g37b22c650d-goog >