Skip to content

Commit

Permalink
kbuild: remove useless $(gen) variable in Makefile.headersinst
Browse files Browse the repository at this point in the history
We have no true case for the $(if $(gen), ...) conditional.  Drop it
to simplify the gendir calculation.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Jul 9, 2017
1 parent 2b97620 commit 87ebb94
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/Makefile.headersinst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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))
Expand Down

0 comments on commit 87ebb94

Please sign in to comment.