|
|
@@ -23,15 +23,12 @@ subdirs := $(patsubst $(srcdir)/%/,%,\
|
|
|
$(filter-out $(srcdir)/,\
|
|
|
$(sort $(dir $(wildcard $(srcdir)/*/)))))
|
|
|
|
|
|
-# caller may set destination dir (when installing to asm/)
|
|
|
-_dst := $(if $(dst),$(dst),$(obj))
|
|
|
-
|
|
|
# Recursion
|
|
|
__headers: $(subdirs)
|
|
|
|
|
|
.PHONY: $(subdirs)
|
|
|
$(subdirs):
|
|
|
- $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(_dst)/$@
|
|
|
+ $(Q)$(MAKE) $(hdr-inst)=$(obj)/$@ dst=$(dst)/$@
|
|
|
|
|
|
# Skip header install/check for include/uapi and arch/$(hdr-arch)/include/uapi.
|
|
|
# We have only sub-directories there.
|
|
|
@@ -48,8 +45,7 @@ ifneq ($(wildcard $(old-kbuild-file)),)
|
|
|
include $(old-kbuild-file)
|
|
|
endif
|
|
|
|
|
|
-installdir := $(INSTALL_HDR_PATH)/$(subst uapi/,,$(_dst))
|
|
|
-
|
|
|
+installdir := $(INSTALL_HDR_PATH)/$(dst)
|
|
|
gendir := $(objtree)/$(subst include/,include/generated/,$(obj))
|
|
|
header-files := $(notdir $(wildcard $(srcdir)/*.h))
|
|
|
header-files += $(notdir $(wildcard $(srcdir)/*.agh))
|