Lines Matching full:headers
3 # Installing headers
5 # All headers under include/uapi, include/generated/uapi,
29 src-headers := $(if $(src-subdirs), $(shell cd $(src) && find $(src-subdirs) -name '*.h'))
30 src-headers := $(filter-out $(no-export-headers), $(src-headers))
31 gen-headers := $(if $(gen-subdirs), $(shell cd $(gen) && find $(gen-subdirs) -name '*.h'))
32 gen-headers := $(filter-out $(no-export-headers), $(gen-headers))
36 duplicated := $(filter $(gen-headers), $(src-headers))
39 gen-headers := $(filter-out $(duplicated), $(gen-headers))
43 src-headers := $(addprefix $(dst)/, $(src-headers))
44 gen-headers := $(addprefix $(dst)/, $(gen-headers))
45 all-headers := $(src-headers) $(gen-headers)
49 old-headers := $(if $(old-subdirs),$(shell find $(old-subdirs) -name '*.h'))
50 unwanted := $(filter-out $(all-headers), $(old-headers))
53 existing-dirs := $(sort $(dir $(old-headers)))
54 wanted-dirs := $(sort $(dir $(all-headers)))
62 $(src-headers): $(dst)/%.h: $(src)/%.h $(srctree)/scripts/headers_install.sh FORCE
65 $(gen-headers): $(dst)/%.h: $(gen)/%.h $(srctree)/scripts/headers_install.sh FORCE
71 __headers: $(all-headers)
77 existing-headers := $(filter $(old-headers), $(all-headers))
79 -include $(foreach f,$(existing-headers),$(dir $(f)).$(notdir $(f)).cmd)