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 29include $(LITEOSTOPDIR)/config.mk 30include ./lite.mk 31 32MODULE_NAME := hdf 33 34HDF_FRAMEWORKS = ../../../framework 35 36LOCAL_SRCS := ./osal/src/osal_timer.c \ 37 ./osal/src/osal_time.c \ 38 ./osal/src/osal_thread.c \ 39 ./osal/src/osal_spinlock.c \ 40 ./osal/src/osal_irq.c \ 41 ./osal/src/osal_firmware.c \ 42 ./osal/src/osal_file.c \ 43 ./osal/src/osal_workqueue.c \ 44 ./osal/src/osal_cdev.c \ 45 $(HDF_FRAMEWORKS)/utils/src/hdf_cstring.c \ 46 $(HDF_FRAMEWORKS)/utils/src/hdf_map.c \ 47 $(HDF_FRAMEWORKS)/utils/src/hdf_slist.c \ 48 $(HDF_FRAMEWORKS)/utils/src/hdf_sref.c \ 49 $(HDF_FRAMEWORKS)/utils/src/hdf_sbuf.c \ 50 $(HDF_FRAMEWORKS)/utils/src/hdf_sbuf_impl_raw.c \ 51 $(HDF_FRAMEWORKS)/utils/src/hdf_task_queue.c \ 52 ./osal/src/osal_mem.c \ 53 ./osal/src/osal_mutex.c \ 54 ./osal/src/osal_sem.c \ 55 ./manager/src/devmgr_pm_reg.c \ 56 $(HDF_FRAMEWORKS)/core/host/src/devhost_service.c \ 57 $(HDF_FRAMEWORKS)/core/host/src/devmgr_service_clnt.c \ 58 $(HDF_FRAMEWORKS)/core/host/src/devsvc_manager_clnt.c \ 59 $(HDF_FRAMEWORKS)/core/host/src/hdf_device.c \ 60 $(HDF_FRAMEWORKS)/core/host/src/hdf_device_node.c \ 61 $(HDF_FRAMEWORKS)/core/host/src/hdf_device_token.c \ 62 $(HDF_FRAMEWORKS)/core/host/src/hdf_driver_loader.c \ 63 $(HDF_FRAMEWORKS)/core/host/src/hdf_observer_record.c \ 64 $(HDF_FRAMEWORKS)/core/host/src/hdf_service_subscriber.c \ 65 $(HDF_FRAMEWORKS)/core/host/src/hdf_device_object.c \ 66 $(HDF_FRAMEWORKS)/core/host/src/hdf_power_manager.c \ 67 $(HDF_FRAMEWORKS)/core/host/src/hdf_service_observer.c \ 68 $(HDF_FRAMEWORKS)/core/host/src/power_state_token.c \ 69 $(HDF_FRAMEWORKS)/core/manager/src/devhost_service_clnt.c \ 70 $(HDF_FRAMEWORKS)/core/manager/src/device_token_clnt.c \ 71 $(HDF_FRAMEWORKS)/core/manager/src/devmgr_service.c \ 72 $(HDF_FRAMEWORKS)/core/manager/src/devsvc_manager.c \ 73 $(HDF_FRAMEWORKS)/core/manager/src/devsvc_manager_ext.c, \ 74 $(HDF_FRAMEWORKS)/core/manager/src/servstat_listener_holder.c, \ 75 $(HDF_FRAMEWORKS)/core/manager/src/hdf_driver_installer.c \ 76 $(HDF_FRAMEWORKS)/core/manager/src/hdf_host_info.c \ 77 $(HDF_FRAMEWORKS)/core/manager/src/power_state_token_clnt.c \ 78 $(HDF_FRAMEWORKS)/core/manager/src/driver_manager.c \ 79 $(HDF_FRAMEWORKS)/core/shared/src/hdf_service_record.c \ 80 $(HDF_FRAMEWORKS)/core/shared/src/hdf_device_info.c \ 81 $(HDF_FRAMEWORKS)/core/shared/src/hdf_object_manager.c \ 82 $(HDF_FRAMEWORKS)/core/shared/src/hdf_io_service.c \ 83 $(HDF_FRAMEWORKS)/core/shared/src/service_status.c \ 84 $(HDF_FRAMEWORKS)/core/adapter/vnode/src/hdf_vnode_adapter.c \ 85 $(HDF_FRAMEWORKS)/core/common/src/devlite_object_config.c \ 86 $(HDF_FRAMEWORKS)/core/common/src/hdf_attribute.c \ 87 $(HDF_FRAMEWORKS)/core/common/src/buildin_config_entry.c, \ 88 $(HDF_FRAMEWORKS)/core/common/src/devmgr_service_start.c \ 89 $(HDF_FRAMEWORKS)/core/common/src/hdf_device_node_ext.c \ 90 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/hcs_blob_if.c \ 91 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/hcs_buildin_parser.c \ 92 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/hcs_parser.c \ 93 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/hcs_generate_tree.c \ 94 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/hcs_tree_if.c \ 95 $(HDF_FRAMEWORKS)/utils/src/hcs_parser/device_resource_if.c 96LOCAL_CFLAGS += $(HDF_INCLUDE) 97 98ifeq ($(LOSCFG_NET_LWIP_SACK), y) 99 LOCAL_SRCS += ./network/src/netbuf_adapter.c 100ifeq ($(LOSCFG_DRIVERS_HDF_WIFI), y) 101 LOCAL_SRCS += ./network/src/net_device_adapter.c 102endif 103endif 104 105LOCAL_FLAGS += $(LITEOS_GCOV_OPTS) 106 107include $(HDF_DRIVER) 108