From patchwork Sun Jun 25 03:15:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 106291 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp888217qgd; Sat, 24 Jun 2017 20:16:26 -0700 (PDT) X-Received: by 10.101.70.129 with SMTP id h1mr15584882pgr.50.1498360586799; Sat, 24 Jun 2017 20:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498360586; cv=none; d=google.com; s=arc-20160816; b=Z2JN+zX9lqX0c64JwOP3vG55E9jBq92ToItoaVz5mw7aSiDmhZlG1A03d5+/SBVrh6 J2raUC+KuY1Qa6J3nfCJVqodk8vdvomZgjqqpfcq8LxOLJR7wwPCZoGvBFD8+8XBSMKe 7tKZXrXR3PWCAdJyv+MRh3W88SjVDaF2wJfaLfi9Zq1Mf1lbR7A58JwQ5TYK6hec4tLk 1B9R/41APfwaiLfhANFjJVBAqtg1JqT4kFGkdguciWOt65bJkth9fZ122h9LyaIKNyM5 UxL0YcnA+JBXyEzNRyg3/+cLjvSZ/ANWKWVy8tzoys/FtkC0MtPTL8RXT+Rjup+TRz19 QOzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=2lh4MJsh6N/3POLYv1eWbRGdRFwDK7o8FdN5r4/bsow=; b=Oc+64USnaFiloh4kELbFtkdP8aNlMTj9H8a1lVqQCGb5Thc8uzr1b8xYiiBqPOcwkH 0lV/sNBnBrbAZ3sYPLvSQ3VLehly/H17NWmwcBj2awpnhrLj0/Hat+sC0Crvg3apwQh2 FFj/EMVX6/cWZb8700U6wFrutqH5gN+l7xBDrQrKiGzLayT7mBxxHMeoISGOL7poKstt rh+k3p7Y8rbddIpNs1nWDkzcNqLY0FS+QT0WTlfXELml7GMkA1xQljgBQ+tAAAd00JTb 7w9cNH1IEKOuJPK8XhYFzKjQ0zjr+qWUf5SEPc9g+4UbXpnFuzndy7pDBqKaUb8Z0bao NvGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=ME/yUbDJ; 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 g15si7158128pln.297.2017.06.24.20.16.26; Sat, 24 Jun 2017 20:16:26 -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.b=ME/yUbDJ; 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 S1751181AbdFYDQI (ORCPT + 25 others); Sat, 24 Jun 2017 23:16:08 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:49278 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750944AbdFYDQG (ORCPT ); Sat, 24 Jun 2017 23:16:06 -0400 Received: from grover.sesame (FL1-122-131-185-176.osk.mesh.ad.jp [122.131.185.176]) (authenticated) by conuserg-08.nifty.com with ESMTP id v5P3FYqN008852; Sun, 25 Jun 2017 12:15:38 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v5P3FYqN008852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1498360538; bh=2lh4MJsh6N/3POLYv1eWbRGdRFwDK7o8FdN5r4/bsow=; h=From:To:Cc:Subject:Date:From; b=ME/yUbDJ6p/ec+zmjgza6UXsFPCSYjjygteV1rA5TUd/WwG2m0BFJu/zdj9iFewVO 2YEA+W0giBmP5DiTnoXaaNPwgrxrChiBMgS2SNhD4uG3ZeYgFDrgaKaoQFQBfAg3vF e4PNG+bjsm+W4M/xM191HfdaC2192SEL9SSPgigYscSKFdonUuMW3LKNJRnTj6Ku44 6RmxiFffg+P9mwmvpvcCd/pXrqNJjc7GBzIMC997Rd48CKuP2kfn0NkKp0Ue7oVPzI qUi7qLAf0VGNdRKVv/1ruMMld+Iodq24VkPLmB4+6liVPSdf2wqTQZ3HU/WNSKHT+O +fs2vdMZS10JQ== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Nicholas Piggin , Masahiro Yamada , Chris Metcalf , linux-kernel@vger.kernel.org Subject: [PATCH] tile: fix dependency and .*.cmd inclusion for incremental build Date: Sun, 25 Jun 2017 12:15:31 +0900 Message-Id: <1498360531-10891-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Build targets using if_changed(_rule) must depend on FORCE so that they are evaluated every time. In order to include .*.cmd files correctly, build targets added to "targets" must not be prefixed with $(obj)/ because it is done by scripts/Makefile.lib . Signed-off-by: Masahiro Yamada --- I found this Makefile in the mainline is already broken for incremental building. I inserted this before thin archive migration patches. arch/tile/kernel/vdso/Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/arch/tile/kernel/vdso/Makefile b/arch/tile/kernel/vdso/Makefile index c54fff3..cf162a2 100644 --- a/arch/tile/kernel/vdso/Makefile +++ b/arch/tile/kernel/vdso/Makefile @@ -42,10 +42,9 @@ $(obj)/vdso.o: $(obj)/vdso.so # link rule for the .so file, .lds has to be first SYSCFLAGS_vdso.so.dbg = $(c_flags) -$(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) +$(obj)/vdso.so.dbg: $(src)/vdso.lds $(obj-vdso) FORCE $(call if_changed,vdsold) - # We also create a special relocatable object that should mirror the symbol # table and layout of the linked DSO. With ld -R we can then refer to # these symbols in the kernel code rather than hand-coded addresses. @@ -96,17 +95,17 @@ KBUILD_CFLAGS_32 := $(filter-out -m64,$(KBUILD_CFLAGS)) KBUILD_CFLAGS_32 += -m32 -fPIC -shared obj-vdso32 = $(patsubst %, v%32.o, $(vdso-syms)) -obj-vdso32 := $(addprefix $(obj)/, $(obj-vdso32)) targets += $(obj-vdso32) vdso32.so vdso32.so.dbg +obj-vdso32 := $(addprefix $(obj)/, $(obj-vdso32)) $(obj-vdso32:%=%): KBUILD_AFLAGS = $(KBUILD_AFLAGS_32) $(obj-vdso32:%=%): KBUILD_CFLAGS = $(KBUILD_CFLAGS_32) -$(obj)/vgettimeofday32.o: $(obj)/vgettimeofday.c +$(obj)/vgettimeofday32.o: $(obj)/vgettimeofday.c FORCE $(call if_changed_rule,cc_o_c) -$(obj)/vrt_sigreturn32.o: $(obj)/vrt_sigreturn.S +$(obj)/vrt_sigreturn32.o: $(obj)/vrt_sigreturn.S FORCE $(call if_changed,as_o_S) # Force dependency @@ -114,5 +113,5 @@ $(obj)/vdso32.o: $(obj)/vdso32.so SYSCFLAGS_vdso32.so.dbg = -m32 -shared -s -Wl,-soname=linux-vdso32.so.1 \ $(call cc-ldoption, -Wl$(comma)--hash-style=both) -$(obj)/vdso32.so.dbg: $(src)/vdso.lds $(obj-vdso32) +$(obj)/vdso32.so.dbg: $(src)/vdso.lds $(obj-vdso32) FORCE $(call if_changed,vdsold)