From patchwork Sun Jul 9 18:32:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 107270 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2542896qge; Sun, 9 Jul 2017 11:39:49 -0700 (PDT) X-Received: by 10.84.217.22 with SMTP id o22mr14435856pli.19.1499625589161; Sun, 09 Jul 2017 11:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499625589; cv=none; d=google.com; s=arc-20160816; b=P+wn3O1NPFfw0G92YYBVCEZ3f//HDv1b5mT63XE74myhIa/QkdW4Xj8mAOSGt+PyAA 8v+TXEi+claz7IfTZOIUPNzIr6k3EblxFzuvD/aci0XLziJehEcLS+097xSehwWcN5Jd WEEJOVgC/u7kFw/TxWVIyUhHxNfEEPPek44NPCz7qPvh/phpnyBNGr3lWkPeYZbsCZFh za7To3XQIT8CQajPuydchluCPr7WvDmDqCrJgSwHFp7hnu2nDMLC8YBnIMisdiEFWfBi rmTsPF9jkARJkYhH4FSi8QzBDajXTfpftebExVNobuXNnXuqNHZVumcvwIUeBi/IBC4I KaIw== 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=sYQbDKxKYWpDeoQpYrc3yiRB83gRMS+rB9akqPv07Z8=; b=uA/vEY3VPy4bPhoou3afs84QulGqPCVfhGwyMviroBH/P1uDD18kho4IVVLk6g+mMT Bn+t9gNhk+V20c1lgoGJNfG78+U0lKgi/gR6yE9mFePVPi3M6ECGnpx95kLREl1hdPe3 VhryjngoU84NLC1tnu3Z4kveKEXrq9Rr1zTXJ+dRSqksdv++t4EhacTcxFpz29DRn8nO skhwE9KSvi13n0oJ42rxU+CHy6Bud1HnTzC/6xdbTbpzP0UgRD+lktBIn2tTi0qLB5uM SAgx+MEypgqTn2Slxrw87aEYzcZTvyojN0cWvjRVlYyL07F/q5+8sy8MWF4cnZQlCFp4 4EPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.b=BGhyiRmK; 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 c66si6322934pfc.226.2017.07.09.11.39.48; Sun, 09 Jul 2017 11:39:49 -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=BGhyiRmK; 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 S1753196AbdGISjD (ORCPT + 25 others); Sun, 9 Jul 2017 14:39:03 -0400 Received: from conuserg-08.nifty.com ([210.131.2.75]:45692 "EHLO conuserg-08.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752532AbdGISdR (ORCPT ); Sun, 9 Jul 2017 14:33:17 -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 v69IX2Cv000353; Mon, 10 Jul 2017 03:33:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v69IX2Cv000353 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1499625189; bh=sYQbDKxKYWpDeoQpYrc3yiRB83gRMS+rB9akqPv07Z8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BGhyiRmKZpq+3IR+jdMWBUTtPyX+9tKDfxIqNFu4Nkqce2wtO/Zz5zPnlt572Hz7G wLGMOcxMe3K58nPgObwPR42QrAh+x1SMXHNBJNtrznW1iZkWQ9Qe8RKUTD2U96vfaB GQhxdt7Ujt1k86mSXwWxbub+62xf4833o5u2WUvemgTAGqKNsE2sUzcmT+bxBfd9yW 3NeFnoH6w0SSSlEGga4o+IF7qAjhBujq1TfGuwOlHox7Ujzr49Ztw7E0Lh7urt4ggA iH178/of6zHmI9yAtReDOoX8nPB0yvGBpst0ZjCumYih9q1FOM2Lpp/tV2Bq9Vg4TP ytjZcpBxteLnw== 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 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst Date: Mon, 10 Jul 2017 03:32:33 +0900 Message-Id: <1499625180-8067-2-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 We have no true case for the $(if $(gen), ...) conditional. Drop it to simplify the gendir calculation. Signed-off-by: Masahiro Yamada --- scripts/Makefile.headersinst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.7.4 diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index c583a1e1bd3c..4e9287bfdf28 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -39,9 +39,6 @@ skip-inst := $(if $(filter %/uapi,$(obj)),1) ifeq ($(skip-inst),) -# generated header directory -gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj))) - # Kbuild file is optional kbuild-file := $(srctree)/$(obj)/Kbuild -include $(kbuild-file) @@ -53,7 +50,7 @@ endif installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst)) -gendir := $(objtree)/$(gen) +gendir := $(objtree)/$(subst include/,include/generated/,$(obj)) header-files := $(notdir $(wildcard $(srcdir)/*.h)) header-files += $(notdir $(wildcard $(srcdir)/*.agh)) header-files := $(filter-out $(no-export-headers), $(header-files))