Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6377579imu; Mon, 21 Jan 2019 07:55:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4ImDgehR0aOjTL2ls2XE7u+fh/zjic2ZdojZIvsofWM04M4tY0VNxAxqVDCMfSIs9gx68s X-Received: by 2002:a63:1258:: with SMTP id 24mr28250237pgs.114.1548086137269; Mon, 21 Jan 2019 07:55:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548086137; cv=none; d=google.com; s=arc-20160816; b=g9LCIFtbIxHyAOQ1tywe0PwojEpC6QHsfyupQBffiCIGN5FQGOx+mMiF4kOUPy5RNR sb48OL7hAjJqXMoZMfi5w7/edMLK0knZenGAjfH/Bh73Jc6giSmKXJvdYIoPuAHe1+/f 9tB9IjBFMnij2emDz3dXuKvL+Df/1nxW4yVqkQE3W4WOq/IME5gXzk5MUU1DyMkz9E2v el6ZE47fLJt/huNo4UxAwN1EaGjjWNQw4sgjQpe1LZoCiF/i9mTO8F5qavz5/265g7oV sCrY3AAb9JeY90sIaaSNH4OlmKRbI/d20F46y/GnCJ2Ly6PXF/gCc+QTc2oSL2RQY9l0 FnIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qe4qvfUSct3qbRBy94TjFwoY4JsWWV/7jTLSUh2s9Uc=; b=P4ghKnXhcwcFmZmb39tm2r9AtBC9Qi3x+rOFNt9unRR6/MQ4ua//iixL05e4+o7WPs k4y68seydfkd79Lm/PV+HBemi/dWtZhMsReGUtN3xom7783gNWwxo7ZIXaxLnuq5TVUZ Ww46A/Zsuzspc5n2etfnvYtqC9QOC0Ro8rFQgUcGbDWZrCISvH2Y+gC+qnLAfQRfl7BL BJn2ZE+LuravIPOe62NQOXslJ1DEXla5hZpTBXDfgfiKqBDt+kbiRbklC9LXsGE+7jv/ Oxc/g1tktEWiFzVKvwjfobTpHKEyY2tSSgnIVayDp6HDGoT5sh20zmQsfcD3EKgFkMli ouFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e3si13206862pfe.203.2019.01.21.07.55.21; Mon, 21 Jan 2019 07:55:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730545AbfAUPxU (ORCPT + 99 others); Mon, 21 Jan 2019 10:53:20 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36806 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729712AbfAUPxT (ORCPT ); Mon, 21 Jan 2019 10:53:19 -0500 Received: by mail-ot1-f67.google.com with SMTP id k98so20930627otk.3; Mon, 21 Jan 2019 07:53:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=qe4qvfUSct3qbRBy94TjFwoY4JsWWV/7jTLSUh2s9Uc=; b=ePeZc19whwIhjpLKExZp8ove6UKKttOQ6aikCsvOATruNC+ch3mVvZ/UkQND7bddsf J00TX3nx3Q8nUb4NsXzV6DoHn9bx+MHXIvvgElePo9CHsIR4hJApTFpJk5KoeNEo1hug 3/IYUkx+mbhiV62xoASTEBzU4TlzX3NHV3l0ELT7EmqPmUcBIu+mTtQ/ZUQa70NKgPQA b75QVsYXB6VIPBeVAxF8VAslh0uhwVKztQq2eMNMLin+Bu6hMAQ3OwWJjaLQossExR3A w7c81j5s85LsXK0jdIO630nGmo8reyKQGCgIRRvxNcGqCB/ID4GCyFiidtWGYF4zLI+H v7TQ== X-Gm-Message-State: AJcUukfpeIbsnCCyH972FbcYKfXAhnSLr6916cOieMwTJKsY94Bw30wi +vyvgW9g6RkQpTDhqj0+hcHK0cw= X-Received: by 2002:a9d:4b15:: with SMTP id q21mr20118154otf.30.1548085998676; Mon, 21 Jan 2019 07:53:18 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w17sm5645274otk.12.2019.01.21.07.53.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 07:53:18 -0800 (PST) Date: Mon, 21 Jan 2019 09:53:17 -0600 From: Rob Herring To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Martin Schwidefsky , linux-s390@vger.kernel.org, Borislav Petkov , linux-mips@vger.kernel.org, James Hogan , x86@kernel.org, Thomas Gleixner , Ralf Baechle , devicetree@vger.kernel.org, "H. Peter Anvin" , Benjamin Herrenschmidt , Michal Marek , Paul Burton , Ingo Molnar , Michael Ellerman , Heiko Carstens , linux-kernel@vger.kernel.org, Paul Mackerras , Mark Rutland , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 3/4] kbuild: add real-prereqs shorthand for $(filter-out FORCE,$^) Message-ID: <20190121155317.GA7426@bogus> References: <1547719364-18849-1-git-send-email-yamada.masahiro@socionext.com> <1547719364-18849-3-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547719364-18849-3-git-send-email-yamada.masahiro@socionext.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 17, 2019 at 07:02:43PM +0900, Masahiro Yamada wrote: > In Kbuild, if_changed and friends must have FORCE as a prerequisite. > > Hence, $(filter-out FORCE,$^) or $(filter-out $(PHONY),$^) is a common > pattern to get the names of all the prerequisites except phony targets. > > Add real-prereqs as a shorthand. > > Note: > We cannot replace $(filter %.o,$^) in cmd_link_multi-m because $^ may > include auto-generated dependencies from the .*.cmd file when a single > object module is changed into a multi object module. Refer to commit > 69ea912fda74 ("kbuild: remove unneeded link_multi_deps"). I added some > comment to avoid accidental breakage. > > Signed-off-by: Masahiro Yamada > --- > > The patch context depends on some other ones. > Please use 'git am -C1' if you want to test this > on Linus' tree. > > > Changes in v2: > - clean up arch/s390/boot/Makefile as well > > Documentation/devicetree/bindings/Makefile | 2 +- Acked-by: Rob Herring > arch/mips/boot/Makefile | 2 +- > arch/powerpc/boot/Makefile | 2 +- > arch/s390/boot/Makefile | 2 +- > arch/x86/realmode/rm/Makefile | 3 +-- > scripts/Kbuild.include | 4 ++++ > scripts/Makefile.build | 9 ++++++--- > scripts/Makefile.lib | 18 +++++++++--------- > scripts/Makefile.modpost | 2 +- > 9 files changed, 25 insertions(+), 19 deletions(-)