diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-09 14:32:33 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-07-09 14:43:17 -0400 |
commit | 87ebb94e28ccac00bacba0d6a0dac0aac5b9c63b (patch) | |
tree | db1201b3397a1c42b56d9cd2a7b27a750cbd0a3c /scripts/Makefile.headersinst | |
parent | 2b976203417cf033079e0be30cae5f41d88e385e (diff) |
kbuild: remove useless $(gen) variable in Makefile.headersinst
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>
Diffstat (limited to 'scripts/Makefile.headersinst')
-rw-r--r-- | scripts/Makefile.headersinst | 5 |
1 files changed, 1 insertions, 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) | |||
39 | 39 | ||
40 | ifeq ($(skip-inst),) | 40 | ifeq ($(skip-inst),) |
41 | 41 | ||
42 | # generated header directory | ||
43 | gen := $(if $(gen),$(gen),$(subst include/,include/generated/,$(obj))) | ||
44 | |||
45 | # Kbuild file is optional | 42 | # Kbuild file is optional |
46 | kbuild-file := $(srctree)/$(obj)/Kbuild | 43 | kbuild-file := $(srctree)/$(obj)/Kbuild |
47 | -include $(kbuild-file) | 44 | -include $(kbuild-file) |
@@ -53,7 +50,7 @@ endif | |||
53 | 50 | ||
54 | installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst)) | 51 | installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst)) |
55 | 52 | ||
56 | gendir := $(objtree)/$(gen) | 53 | gendir := $(objtree)/$(subst include/,include/generated/,$(obj)) |
57 | header-files := $(notdir $(wildcard $(srcdir)/*.h)) | 54 | header-files := $(notdir $(wildcard $(srcdir)/*.h)) |
58 | header-files += $(notdir $(wildcard $(srcdir)/*.agh)) | 55 | header-files += $(notdir $(wildcard $(srcdir)/*.agh)) |
59 | header-files := $(filter-out $(no-export-headers), $(header-files)) | 56 | header-files := $(filter-out $(no-export-headers), $(header-files)) |