Makefile: techpack: Introduce techpack support

Add support for in-tree techpacks based on msm-5.4 commit 630dc6ea354b
("usb: gadget: qdss: Fix usage of usb_ep_autoconfig()").

Change-Id: I28d6672658891e5af824298125b8234c36eccfd4
Signed-off-by: Elliot Berman <eberman@codeaurora.org>
This commit is contained in:
Elliot Berman 2020-09-30 09:01:32 -07:00
parent 9923f5ffad
commit a0360656f2

View File

@ -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/