diff --git a/Makefile b/Makefile index 943d17771a63..25f3ffa75cd8 100644 --- a/Makefile +++ b/Makefile @@ -655,7 +655,7 @@ endif ifeq ($(KBUILD_EXTMOD),) # Objects we will link into vmlinux / subdirs we need to visit core-y := init/ usr/ -drivers-y := drivers/ sound/ +drivers-y := drivers/ sound/ techpack/ drivers-$(CONFIG_SAMPLES) += samples/ drivers-y += net/ virt/ libs-y := lib/ @@ -1102,6 +1102,9 @@ export MODULES_NSDEPS := $(extmod-prefix)modules.nsdeps PHONY += headers +techpack-dirs := $(shell find $(srctree)/techpack -maxdepth 1 -mindepth 1 -type d -not -name ".*") +techpack-dirs := $(subst $(srctree)/,,$(techpack-dirs)) + #Default location for installed headers ifeq ($(KBUILD_EXTMOD),) PHONY += archheaders archscripts @@ -1131,6 +1134,9 @@ ifeq ($(KBUILD_EXTMOD),) endif $(Q)$(MAKE) $(hdr-inst)=$(hdr-prefix)include/uapi $(Q)$(MAKE) $(hdr-inst)=$(hdr-prefix)arch/$(SRCARCH)/include/uapi + $(Q)for d in $(techpack-dirs); do \ + $(MAKE) $(hdr-inst)=$$d/include/uapi; \ + done ifeq ($(KBUILD_EXTMOD),) core-y += kernel/ certs/ mm/ fs/ ipc/ security/ crypto/ block/