Received: by 10.192.165.156 with SMTP id m28csp729954imm; Mon, 16 Apr 2018 07:51:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx49YllwZG8gNJsA4xaufHRDon4aYcfOSg9/FtjZZlpLRnurR5uNQgoFbnWo9FtHBVIcIz5Wt X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr15867439plf.327.1523890264128; Mon, 16 Apr 2018 07:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523890264; cv=none; d=google.com; s=arc-20160816; b=xkBHKmqcveT0AIE5nfjU8sR83HVWgYrivBRYn3UZDjTq3rC73xfRrYadgwU+G3Tz/c Qpk7jSm1e38nUJGHNeINdagqT/10W6oJvG4de4ycDvS5rCFkIbUWmKzPBpsJVRQAW9A8 DfbBCLUGXyhodS4CRj5SzYtkVvSX/n/5GdbxxRE1seZyPxlVQvYzIe0U/5oaJWd2xOlf np+L77MihCXMr51+m8NJP6iPu3rWqtgqWxtxixYNw0zzzTghsgfUS7dmJdoT5Q+Bi8aT p1OaDhlod3+PZvEqAl+1X1MGS+utFWDN1R8Axi/cA9GBtUCAKU+raDSqYfXoNNr8/QDK K6+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=A1Gn6EVXs/augMnXta7rJ5tKBPekzAV8iaSCKb3cg08=; b=fh+aX91ODUhdwUGdXh9q7l8+ntTjXr68YHHXzKcB1bl3WQECjbKXXqkHA49NuDgu4X JefQpWgA9qMSppk+k08xIlvhdqya09jZYAehU2DzSjVIqDhE4bRTyBmf7ExoGjdGebvh ZSngD7o4nzTydJfGFIFjWP3z3hUcLg6qsol+xXbHRNexqz/q+6r0TQj8wKR5pBQtKcg2 I1v2/XS+jtSkSH7vuDYWVwRUEkqUizSvsy5IMyIs6gKFE+gAknFibWP+R0JpU4ckaUQv SYyG/sMFIBALFbsp0W6wCeR2c+B7eOCtASsHJgSsoetz7cgRSgLsrPtDG+TfdOa1dwWo Yq/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MdU+HiMl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t21si10762191pfi.221.2018.04.16.07.50.50; Mon, 16 Apr 2018 07:51:04 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MdU+HiMl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752973AbeDPOtJ (ORCPT + 99 others); Mon, 16 Apr 2018 10:49:09 -0400 Received: from conuserg-10.nifty.com ([210.131.2.77]:62390 "EHLO conuserg-10.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752866AbeDPOtF (ORCPT ); Mon, 16 Apr 2018 10:49:05 -0400 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-10.nifty.com with ESMTP id w3GElqtr017749; Mon, 16 Apr 2018 23:47:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com w3GElqtr017749 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1523890076; bh=A1Gn6EVXs/augMnXta7rJ5tKBPekzAV8iaSCKb3cg08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MdU+HiMlCj6q23aOrwjSN5m83qSRsbVxxa2eTPxmgafncUeyJtsC8vcLtXgN6ro8J GpRrMKZHuPMlngUwBoBkOuVeMwST5lnrUYtz4mltYq24297N6wxyvcHBLVm4mMV/Yn 6Wmn9K3XMcUz6KqXrxcRGM9u+Yvm/MQgvFhm/ulMNeiq53xmtppOZeHILMwZGbmbdD bPijsj76/PhmIrKzWGYTkFnrN5dd6PLZhtiTw5094FFh3zrUjFM9q/wDwvABs6DmGj m6/46Y3hlVFOJUbYNCe2+MG3I8d26iihrTl27wdpSiBvq4FN/eSjCK/xgUYd/OMOl1 saWDU9ah7XL3A== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: Ralf Baechle , James Hogan , linux-mips@linux-mips.org Cc: Paul Burton , Masahiro Yamada , Kees Cook , linux-kernel@vger.kernel.org Subject: [PATCH 3/7] MIPS: boot: fix build rule of vmlinux.its.S Date: Mon, 16 Apr 2018 23:47:43 +0900 Message-Id: <1523890067-13641-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523890067-13641-1-git-send-email-yamada.masahiro@socionext.com> References: <1523890067-13641-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Documentation/kbuild/makefile.txt says, it is a typical mistake to forget the FORCE prerequisite for the rule invoked by if_changed. Add the FORCE to the prerequisite, but it must be filtered-out from the files passed to the 'cat' command. Because this rule generates .vmlinux.its.S.cmd, vmlinux.its.S must be specified as targets so that the .cmd file is included. Signed-off-by: Masahiro Yamada --- arch/mips/boot/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/mips/boot/Makefile b/arch/mips/boot/Makefile index 981bcf8..6c7054e 100644 --- a/arch/mips/boot/Makefile +++ b/arch/mips/boot/Makefile @@ -118,10 +118,12 @@ ifeq ($(ADDR_BITS),64) itb_addr_cells = 2 endif +targets += vmlinux.its.S + quiet_cmd_its_cat = CAT $@ - cmd_its_cat = cat $^ >$@ + cmd_its_cat = cat $(filter-out $(PHONY), $^) >$@ -$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) +$(obj)/vmlinux.its.S: $(addprefix $(srctree)/arch/mips/$(PLATFORM)/,$(ITS_INPUTS)) FORCE $(call if_changed,its_cat) quiet_cmd_cpp_its_S = ITS $@ -- 2.7.4