summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-07-09 20:32:33 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-07-09 20:43:17 +0200
commit87ebb94e28ccac00bacba0d6a0dac0aac5b9c63b (patch)
treedb1201b3397a1c42b56d9cd2a7b27a750cbd0a3c /scripts
parentMerge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-87ebb94e28ccac00bacba0d6a0dac0aac5b9c63b.tar.xz
linux-87ebb94e28ccac00bacba0d6a0dac0aac5b9c63b.zip
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')
-rw-r--r--scripts/Makefile.headersinst5
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)
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))