Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1683798 > unrolled thread

[PATCH v2 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst

Started byMasahiro Yamada <yamada.masahiro@socionext.com>
First post2017-07-09 20:40 +0200
Last post2017-07-09 20:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-07-09 20:40 +0200

#1683798 — [PATCH v2 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst

FromMasahiro Yamada <yamada.masahiro@socionext.com>
Date2017-07-09 20:40 +0200
Subject[PATCH v2 01/28] kbuild: remove useless $(gen) variable in Makefile.headersinst
Message-ID<u1phE-2Oe-15@gated-at.bofh.it>
We have no true case for the $(if $(gen), ...) conditional.  Drop it
to simplify the gendir calculation.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 scripts/Makefile.headersinst | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

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))
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web