From patchwork Mon Jun 12 03:26:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 103598 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp14154qgd; Sun, 11 Jun 2017 20:33:07 -0700 (PDT) X-Received: by 10.84.217.134 with SMTP id p6mr54165609pli.192.1497238387868; Sun, 11 Jun 2017 20:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1497238387; cv=none; d=google.com; s=arc-20160816; b=KkikVmI3haSkL3ebZ9AuVuZcBNAbOHRA/AEYuBrkCWxeZiOGNVBrzLu6zoRd/Y2jq9 XgPH6ikkLZsWj/7KR/hi/T2wE1ObWTjir2y3y59Roxute+MqENEip71CUicNvda7LgdI 3bCwqfGoTKX8Ys18oYlA0NTL1Dr4b4MCZQ78RgsUpaIIJ4d8ZQwoiN5Vf277ZP6oEmo+ YjsxAu2lD5PsM0AIMT6PxYEofgkfYcoLs2ahKhgx/JSvXpOLuymeiqgQsAIg8jS2D6pj pp2obuFw/cLqHY+9Go5jWAnzZOtJKrHY2TECNpo0kAdOgYyfxV8MWo6ZmYpfbpVK9piA oYRQ== 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=c5A+GaygmeCDXJNL9JZQdMf/roTUHXxLJRpjd5O9Lto=; b=M+rNB9a4ft/PcjCEYGsw/3YW2wePn7HJxhNW+xod6ZRKoBd9oe6pyd/7XpTTPTQHMF wysgVZbsfTVYJ3JUPL7FxXGBOS1Y/jKNG2SQ7DDrg+NPRyMh84lDhRDwwMWnUgFq+MCu P1TzumuxtAPcJd4Pz2gQt9iqaXTRqD0kyTtuvvFJyqgP+blpfUAI/d+4gY1ds13twzPZ hW+freQRJ6cIMxMcnIHojidLX24RNe2lnr8gQ2eI33zzue9+wCspp0Q1mn35hI1aUyH7 1UWeKyHK2SLTmvxnJcrtkD/RnRfKI+aKpUw4TK5vXF+FchWYVHChsMwYXHTGi/i243fN 3mXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com; 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 64si6149360plk.286.2017.06.11.20.33.07; Sun, 11 Jun 2017 20:33:07 -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; 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 S1752522AbdFLDcw (ORCPT + 25 others); Sun, 11 Jun 2017 23:32:52 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:63926 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbdFLD2F (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 v5C3RXP1001077; Mon, 12 Jun 2017 12:27:37 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v5C3RXP1001077 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1497238057; bh=c5A+GaygmeCDXJNL9JZQdMf/roTUHXxLJRpjd5O9Lto=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V6ZbwFY9SSrmOOC3dxHvO2ymec/lZMeRWN7Om7/5x+muNYzPvCtaWr3WO5hkJA+z4 0rZOG7Aod/JjP9eWs9jUccTudZBz98pw2JgeN1i/Dx9TeRppDQUVvc9BGwWEDe6yvi FMbf5dUQQCsa4DIZf5vS3+9R8roF05NeWnxeCfdbQJrvqAWu3CGedMZT1zcYsi9vv3 cLXAm+bXYYZBS9zeCWBCsi6a/AImftcK0hAlVImoNuTtLVLWdXDJR6HLNdZF5kkeYm 3s/JwmUrrMeEFShyoXI8GIAQB7w+EAeW4AXxeq4ydYRReAgZT2kWAnl9qW++iMIq8A QzWM/8TNZiTYw== 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 01/27] kbuild: remove useless $(gen) variable in Makefile.headersinst Date: Mon, 12 Jun 2017 12:26:55 +0900 Message-Id: <1497238041-7011-2-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-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 ce753a408c56..c801bc129635 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -31,9 +31,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) @@ -45,7 +42,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))