kbuild: remove useless $(gen) variable in Makefile.headersinst
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 9 Jul 2017 18:32:33 +0000 (03:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 9 Jul 2017 18:43:17 +0000 (03:43 +0900)
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

index c583a1e1bd3c16356cf67a772a3e680adec9681a..4e9287bfdf28477b36ee505aba51a17e6cae106f 100644 (file)
@@ -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))