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: 9831883 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 938EE602BD for ; Sun, 9 Jul 2017 18:34:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8B51C26E97 for ; Sun, 9 Jul 2017 18:34:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FB4627FB7; Sun, 9 Jul 2017 18:34:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3201826E97 for ; Sun, 9 Jul 2017 18:34:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753243AbdGISd7 (ORCPT ); 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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