1# Copyright (c) 2021 Huawei Device Co., Ltd. All rights reserved. 2# 3# Redistribution and use in source and binary forms, with or without modification, 4# are permitted provided that the following conditions are met: 5# 6# 1. Redistributions of source code must retain the above copyright notice, this list of 7# conditions and the following disclaimer. 8# 9# 2. Redistributions in binary form must reproduce the above copyright notice, this list 10# of conditions and the following disclaimer in the documentation and/or other materials 11# provided with the distribution. 12# 13# 3. Neither the name of the copyright holder nor the names of its contributors may be used 14# to endorse or promote products derived from this software without specific prior written 15# permission. 16# 17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 19# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 21# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 24# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 25# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 26# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 27# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 29include $(LITEOSTOPDIR)/../../drivers/hdf_core/adapter/khdf/liteos/lite.mk 30 31MODULE_NAME := hdf_audio_driver 32 33KHDF_AUDIO_BASE_ROOT_DIR = $(LITEOSTOPDIR)/../../ 34KHDF_AUDIO_ROOT_DIR = $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/framework/model/audio 35KHDF_FRAMEWORK_ROOT_DIR = $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/framework 36KHDF_AUDIO_HI3516DV300_DIR = $(KHDF_AUDIO_BASE_ROOT_DIR)/device/board/hisilicon/hispark_taurus/audio_drivers 37 38LOCAL_INCLUDE := $(KHDF_AUDIO_BASE_ROOT_DIR)/third_party/bounds_checking_function/include \ 39 $(KHDF_AUDIO_KHDF_ROOT_DIR)/osal/include \ 40 $(KHDF_FRAMEWORK_ROOT_DIR)/include/core \ 41 $(KHDF_FRAMEWORK_ROOT_DIR)/include/utils \ 42 $(KHDF_FRAMEWORK_ROOT_DIR)/include/osal \ 43 $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/interfaces/inner_api/core \ 44 $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/interfaces/inner_api/utils \ 45 $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/interfaces/inner_api/osal/shared \ 46 $(KHDF_AUDIO_BASE_ROOT_DIR)/drivers/hdf_core/interfaces/inner_api/host/shared \ 47 $(KHDF_FRAMEWORK_ROOT_DIR)/include/platform \ 48 $(KHDF_FRAMEWORK_ROOT_DIR)/include/config \ 49 $(KHDF_FRAMEWORK_ROOT_DIR)/include/audio \ 50 $(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/core/include \ 51 $(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/sapm/include \ 52 $(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/dispatch/include \ 53 $(KHDF_FRAMEWORK_ROOT_DIR)/model/audio/common/include \ 54 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/tfa9879/include \ 55 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/hi3516/include \ 56 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/include \ 57 $(KHDF_AUDIO_HI3516DV300_DIR)/dsp/include \ 58 $(LITEOSTOPDIR)/kernel/base/include 59 60LOCAL_SRCS += $(KHDF_AUDIO_ROOT_DIR)/core/src/audio_core.c \ 61 $(KHDF_AUDIO_ROOT_DIR)/core/src/audio_host.c \ 62 $(KHDF_AUDIO_ROOT_DIR)/core/src/audio_parse.c \ 63 $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_codec_base.c \ 64 $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_platform_base.c \ 65 $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_dsp_base.c \ 66 $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_dai_base.c \ 67 $(KHDF_AUDIO_ROOT_DIR)/common/src/audio_dma_base.c \ 68 $(KHDF_AUDIO_ROOT_DIR)/sapm/src/audio_sapm.c \ 69 $(KHDF_AUDIO_ROOT_DIR)/dispatch/src/audio_stream_dispatch.c \ 70 $(KHDF_AUDIO_ROOT_DIR)/dispatch/src/audio_control_dispatch.c \ 71 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/tfa9879/src/tfa9879_codec_adapter.c \ 72 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/tfa9879/src/tfa9879_codec_ops.c \ 73 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/hi3516/src/hi3516_codec_adapter.c \ 74 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/hi3516/src/hi3516_codec_impl.c \ 75 $(KHDF_AUDIO_HI3516DV300_DIR)/codec/hi3516/src/hi3516_codec_ops.c \ 76 $(KHDF_AUDIO_HI3516DV300_DIR)/dsp/src/dsp_adapter.c \ 77 $(KHDF_AUDIO_HI3516DV300_DIR)/dsp/src/dsp_ops.c \ 78 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/src/hi3516_dai_adapter.c \ 79 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/src/hi3516_dai_ops.c \ 80 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/src/hi3516_aiao_impl.c \ 81 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/src/hi3516_dma_ops.c \ 82 $(KHDF_AUDIO_HI3516DV300_DIR)/soc/src/hi3516_dma_adapter.c 83 84LOCAL_CFLAGS += -Wno-error 85include $(HDF_DRIVER) 86