From patchwork Sun Jul 9 18:32:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 107249 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2539326qge; Sun, 9 Jul 2017 11:34:05 -0700 (PDT) X-Received: by 10.84.224.206 with SMTP id k14mr13828312pln.72.1499625245417; Sun, 09 Jul 2017 11:34:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499625245; cv=none; d=google.com; s=arc-20160816; b=jzvHlhRETR5m9Uja58EePXkc6EijWklXrhZI3OISJGXVrcMCCHGPcB//J/oZDajLtk kXTIv52hk22w0hbuCOmf4SH4juTZsnm1qYddvPg9rndDYoR4Un3I7CJ+5S7w/sVEfgzz 8P5yBw3qFk8fV+piL5+wL5QSya2mAUDciUj2L83x3JONA+V0Ck+ieKL0k3YghAorDuX9 pfW6tlylPPtBXa//25l93rH+/IgNM62rTR0A/9omRCtdVsS6ljnkgljdfHdHJA2c8huY bFHahG+nNT8USFItvOpAffCkmR/NRs3Zp0ZnYWSIlvD47gvJ6lkUCnWs9b/3HLgGFXAG Zk0Q== 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=WL6zoRD/5Z4CrPIxbZxgxXebk9Le52HZGXld41diZ5I=; b=o88ePPnCKiPWZ0zMh36+/rbBpGpYoNIAtTn28KxvmwxiYWTekTcLJB5mY9i4H+ZhJw qYhpmvCh7KUgjfqkBBqbQ4qliQtkV87wnLo3i9OcR48kr90eDAoiglNTecVF0qGjnGc2 XUW8+5KWfkM1i89R2PHHCIMJmjDsYJdvbnmH575PjUjWCoc737dYMUgPumEpQHZp6LIH SY8EKGqfN5wY303z4xA47i7vWZOsDPPDHPjKOwqymOEAeHU/IhgZGQ1eIwX9itYSnQOD nioEBl80ppUhgjAvS+TgvEEeuoPlCA54aXvRs2bFGL2vuy6+rKpHPcIsyBntjwk2AWjH jcxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=K1izS5zZ; 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 x1si7286103plb.522.2017.07.09.11.34.05; Sun, 09 Jul 2017 11:34:05 -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=K1izS5zZ; 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 S1753259AbdGISd7 (ORCPT + 25 others); Sun, 9 Jul 2017 14:33:59 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:46201 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753223AbdGISd4 (ORCPT ); Sun, 9 Jul 2017 14:33:56 -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 v69IX2DN000353; Mon, 10 Jul 2017 03:33:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v69IX2DN000353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1499625201; bh=WL6zoRD/5Z4CrPIxbZxgxXebk9Le52HZGXld41diZ5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K1izS5zZRTdzYf+fZuohgDzegWcvCANYI428f7rkcA8Zxw1rHl2a2pn+s9Ilzuii3 /u0oYZhrhl+zDozCEW3SKppddEwzJR/ewT/5sTX4gLHHqQUUApSEIvz1mf933ha1Zt j/31o6BXM1l/mGm96hvrfLV92Mje0N1/7lMKQTWnpnVtHYME5+7Ww8brWA+KJc7bUD XnCTuOmvPwpaDiruWIqmo0j4b+hP6xog6IR9pwTAzB1z1AbBSTkPTuOWcf1GerRJcP nPAxWJFtl0G6atOLVVC8nHrADG5RDfimNbsdsb51PmnyeZOiCCYmZF/KfDzUudtXSa qfS7eM0Ywwdlg== X-Nifty-SrcIP: [122.131.185.176] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-arch@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH v2 27/28] kbuild: split exported generic header creation into uapi-asm-generic Date: Mon, 10 Jul 2017 03:32:59 +0900 Message-Id: <1499625180-8067-28-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499625180-8067-1-git-send-email-yamada.masahiro@socionext.com> References: <1499625180-8067-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 When we install headers, we are interested only in headers under uapi directories. Split out uapi-asm-generic target and make headers_install depend on it. It will avoid generating unneeded asm-generic wrappers. Signed-off-by: Masahiro Yamada --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/Makefile b/Makefile index 70c414b15859..f75a93fa9975 100644 --- a/Makefile +++ b/Makefile @@ -456,10 +456,11 @@ ifneq ($(KBUILD_SRC),) endif # Support for using generic headers in asm-generic -PHONY += asm-generic -asm-generic: +PHONY += asm-generic uapi-asm-generic +asm-generic: uapi-asm-generic $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ src=asm obj=arch/$(SRCARCH)/include/generated/asm +uapi-asm-generic: $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.asm-generic \ src=uapi/asm obj=arch/$(SRCARCH)/include/generated/uapi/asm @@ -1143,7 +1144,7 @@ PHONY += archscripts archscripts: PHONY += __headers -__headers: $(version_h) scripts_basic asm-generic archheaders archscripts +__headers: $(version_h) scripts_basic uapi-asm-generic archheaders archscripts $(Q)$(MAKE) $(build)=scripts build_unifdef PHONY += headers_install_all