This patch fixes an issue with all the functions defined in scripts/Makefile.lib gets called everytime when this makefile is included thus causing the build to slow down. Bug: 118818737 Change-Id: I4929e64d53a0bc865b12a27cce37520be52c9744 Signed-off-by: Thierry Strudel <tstrudel@google.com>
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# auto-detect subdirs
|
|
ifeq ($(CONFIG_ARCH_SDM845), y)
|
|
include $(srctree)/techpack/audio/config/sdm845auto.conf
|
|
export $(shell sed 's/=.*//' $(srctree)/techpack/audio/config/sdm845auto.conf)
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDM670), y)
|
|
include $(srctree)/techpack/audio/config/sdm670auto.conf
|
|
export $(shell sed 's/=.*//' $(srctree)/techpack/audio/config/sdm670auto.conf)
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
|
|
include $(srctree)/techpack/audio/config/sdxpoorwillsauto.conf
|
|
export $(shell sed 's/=.*//' $(srctree)/techpack/audio/config/sdxpoorwillsauto.conf)
|
|
endif
|
|
|
|
# Use USERINCLUDE when you must reference the UAPI directories only.
|
|
USERINCLUDE += \
|
|
-I$(srctree)/techpack/audio/include/uapi \
|
|
|
|
# Use LINUXINCLUDE when you must reference the include/ directory.
|
|
# Needed to be compatible with the O= option
|
|
LINUXINCLUDE += \
|
|
-I$(srctree)/techpack/audio/include/uapi \
|
|
-I$(srctree)/techpack/audio/include
|
|
|
|
ifeq ($(CONFIG_ARCH_SDM845), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdm845autoconf.h
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDM670), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdm670autoconf.h
|
|
endif
|
|
ifeq ($(CONFIG_ARCH_SDXPOORWILLS), y)
|
|
LINUXINCLUDE += \
|
|
-include $(srctree)/techpack/audio/config/sdxpoorwillsautoconf.h
|
|
endif
|
|
|
|
obj-y += asoc/
|
|
obj-y += dsp/
|
|
obj-y += ipc/
|
|
obj-y += soc/
|