1# Copyright (c) 2020-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 29HDF_ROOT_TEST_DIR = $(LITEOSTOPDIR)/../../drivers 30 31HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include 32HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/osal 33HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/utils 34HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/utils/include 35HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/platform 36HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/core 37HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/interfaces/inner_api/core 38HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/interfaces/inner_api/utils 39HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/interfaces/inner_api/osal/shared 40HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/interfaces/inner_api/host/shared 41HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/support/platform/include 42HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/support/platform/include/rtc 43HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/support/platform/include/pcie 44HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/host/include 45HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/master/include 46HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/shared/include 47HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/manager/include 48HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/common/include/host 49HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/adapter/khdf/liteos/osal/include 50HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/adapter/khdf/liteos/test/osal/include 51HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/adapter/vnode/include 52HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/core/adapter/syscall/include 53HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/adapter/khdf/liteos/network/include 54HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/common 55HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/manager 56HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/config 57HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/platform 58HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/platform/common 59HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/platform/entry 60HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/hdfframe 61HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/osal 62HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/adapter/osal/unittest 63HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/adapter/osal/include 64HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/utils/hcs_parser/unittest 65HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest 66HDF_TEST_INCLUDE += -I $(LITEOSTOPDIR)/bsd/compat/linuxkpi/include 67HDF_TEST_INCLUDE += -I $(LITEOSTOPDIR)/../../base/hiviewdfx/hilog_lite/interfaces/native/innerkits 68 69ifeq ($(LOSCFG_DRIVERS_HDF_WIFI), y) 70HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/network/wifi/unittest/netdevice 71HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/network/wifi/unittest/module 72HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/network/wifi/unittest/net 73HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/network/wifi/unittest/qos 74HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/include 75HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/common/netdevice 76HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/src/qos 77HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/network/wifi/unittest/message 78HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/include 79HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/module 80HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/include 81HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/include/message 82HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/platform/src 83HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/components/softap 84HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/network/wifi/core/components/sta 85HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/wifi 86HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/include/net 87HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/wifi 88endif 89ifeq ($(LOSCFG_DRIVERS_HDF_SENSOR), y) 90HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/sensor 91HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/sensor/interfaces/include 92HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/sensor/hal/include 93HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/sensor/driver/include 94HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/model/sensor/driver/common/include 95endif 96ifeq ($(LOSCFG_DRIVERS_HDF_USB_DDK_DEVICE), y) 97HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/usb/device/include 98HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/ddk/common/include 99HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/ddk/device/include 100HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/interfaces/ddk/common 101HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/interfaces/ddk/device 102endif 103ifeq ($(LOSCFG_DRIVERS_HDF_USB_DDK_HOST), y) 104HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/hdf_core/framework/test/unittest/model/usb/host/include 105HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/interfaces/ddk/common 106HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/interfaces/ddk/host 107HDF_TEST_INCLUDE += -I $(HDF_ROOT_TEST_DIR)/peripheral/usb/gadget/function/include 108endif 109LOCAL_CFLAGS += $(HDF_TEST_INCLUDE) 110HDF_DRIVER_TEST = $(HDF_ROOT_TEST_DIR)/hdf_core/adapter/khdf/liteos/hdf_driver.mk 111