Makefile: export headers from certain external modules
* audio-kernel * display-drivers * video-kernel * nxp driver Change-Id: I64d38125fd705be754f67485e6d2eac2e664d7ef
This commit is contained in:
parent
ef6745fc13
commit
ad386a8919
7
Makefile
7
Makefile
@ -1208,6 +1208,10 @@ export MODULES_NSDEPS := $(extmod_prefix)modules.nsdeps
|
||||
|
||||
PHONY += headers
|
||||
|
||||
ext-mod-dir := ../sm8550-modules
|
||||
ext-mod-dirs := $(ext-mod-dir)/qcom/opensource/audio-kernel $(ext-mod-dir)/qcom/opensource/display-drivers $(ext-mod-dir)/qcom/opensource/video-kernel $(ext-mod-dir)/nxp/opensource/driver
|
||||
ext-mod-dirs := $(subst $(srctree)/,,$(ext-mod-dirs))
|
||||
|
||||
#Default location for installed headers
|
||||
ifeq ($(KBUILD_EXTMOD),)
|
||||
PHONY += archheaders archscripts
|
||||
@ -1236,6 +1240,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 $(ext-mod-dirs); do \
|
||||
$(MAKE) $(hdr-inst)=$$d/include/uapi; \
|
||||
done
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Devicetree files
|
||||
|
Loading…
Reference in New Issue
Block a user