mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
ospl: fix build error of header files absence
pippen and ali-shm2018 audo kernel directory is not same, include differenct header file directory according directory exist or not Change-Id: I721fe66e659945caa3cae39d579c6f3a754dc0f7 Signed-off-by: huangys <huangys@motorola.com> Reviewed-on: https://gerrit.mot.com/1167714 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
eb96306f27
commit
d648dbbb5f
1 changed files with 11 additions and 0 deletions
|
|
@ -1,8 +1,19 @@
|
|||
# add -Wall to try to catch everything we can.
|
||||
EXTRA_CFLAGS += -Wall
|
||||
EXTRA_CFLAGS += -I$(TOP)/motorola/kernel/modules/include
|
||||
|
||||
HAVE_AUDIO_KERNEL = $(shell test -d $(TOP)/vendor/qcom/opensource/audio-kernel && echo 1)
|
||||
|
||||
ifeq ($(HAVE_AUDIO_KERNEL),1)
|
||||
$(info audio kernel path exist)
|
||||
EXTRA_CFLAGS += -I$(TOP)/vendor/qcom/opensource/audio-kernel/include
|
||||
EXTRA_CFLAGS += -I$(TOP)/vendor/qcom/opensource/audio-kernel/include/uapi
|
||||
else
|
||||
$(info audio kernel path not exist, include techpack audio header)
|
||||
EXTRA_CFLAGS += -I$(TOP)/kernel/techpack/audio/include
|
||||
EXTRA_CFLAGS += -I$(TOP)/kernel/techpack/audio/include/uapi
|
||||
endif
|
||||
|
||||
EXTRA_CFLAGS += -DCONFIG_SND_SOC_AOV_TRIGGER -DCONFIG_SND_SOC_OPALUM
|
||||
|
||||
cirrus_madera-objs = madera.o madera-slimbus.o wm_adsp.o
|
||||
|
|
|
|||
Loading…
Reference in a new issue