From patchwork Mon Jun 12 03:27:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9780393 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 2D7BE60352 for ; Mon, 12 Jun 2017 03:33:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E5121FF4A for ; Mon, 12 Jun 2017 03:33:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 132542015F; Mon, 12 Jun 2017 03:33:18 +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 856E61FF4A for ; Mon, 12 Jun 2017 03:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752236AbdFLDcv (ORCPT ); Sun, 11 Jun 2017 23:32:51 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:63924 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752075AbdFLD2F (ORCPT ); Sun, 11 Jun 2017 23:28:05 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id v5C3RXPQ001077; Mon, 12 Jun 2017 12:27:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v5C3RXPQ001077 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1497238074; bh=8db30qXKzzoNuS5cB1+HZ3Ff5IhLDPuk13UEcfMVa1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UK2W62RoJlrfSz3X2fs2Qiwd55pHCO3qf42RH1Wfaq/uahO/8Scg1SFfK1CDcoG0F dzDoYAJyz7v2W6V9rb1Aod0CD7hy1mFMECW5FYqfhIijWpKc0V30Mo8LG0qJ5oMAzz TtJY3GvZVrtgUVkvaW+btiTE9h3dwktZcnL6QWnJSB4L5UHcdiPWWWODSoJdjBpPqJ oe3PxaBHQmuXTqFxaRVAGNUgxqyr+yHloOJWL8UUCAaWIuGfXNuJEy5MOnGlyk+wfJ 4C2uhmDvSstASA4MvOFbZ7xyNH4O8aKrauq36QHVpgo1OoJNGvoIq7VZE1tdi3eHyY BxL7zVsvj/m3Q== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org, linux-arch Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 26/27] kbuild: split exported generic header creation into uapi-asm-generic Date: Mon, 12 Jun 2017 12:27:20 +0900 Message-Id: <1497238041-7011-27-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497238041-7011-1-git-send-email-yamada.masahiro@socionext.com> References: <1497238041-7011-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 1bb8c07db134..4fe556511c0d 100644 --- a/Makefile +++ b/Makefile @@ -465,10 +465,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 @@ -1151,7 +1152,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