@@ -31,10 +31,10 @@ check-file := $(install)/.check
# generic-export-y list all generic headers to be exported
# generic-y list all files an architecture uses from asm-generic
# Use this to build a list of headers which require a wrapper
-wrapper-files := $(filter $(generic-export-y), $(generic-y))
+wrapper-files := $(filter $(header-y), $(generic-y))
# all headers files for this dir
-header-y := $(filter-out $(wrapper-files), $(header-y))
+header-y := $(filter-out $(generic-y), $(header-y))
all-files := $(header-y) $(objhdr-y) $(generic-y)
input-files := $(addprefix $(_src)/,$(header-y)) \
$(addprefix $(objtree)/$(obj)/,$(objhdr-y))