1# Copyright (c) 2021 FnLink (hunan) Technologies CO., LIMITED. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//drivers/hdf_core/adapter/khdf/liteos_m/hdf.gni") 15 16module_switch = defined(LOSCFG_DRIVERS_HDF_PLATFORM_GPIO) 17module_name = get_path_info(rebase_path("."), "name") 18 19hdf_driver(module_name) { 20 if (defined(LOSCFG_SOC_COMPANY_BESTECHNIC)) { 21 sources = [ 22 "//drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/devmgr_service_start.c", 23 "//drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/devsmall_object_config.c", 24 "//drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/hdf_device_node_ext.c", 25 "//drivers/hdf_core/framework/core/host/src/devhost_service.c", 26 "//drivers/hdf_core/framework/core/host/src/devmgr_service_clnt.c", 27 "//drivers/hdf_core/framework/core/host/src/devsvc_manager_clnt.c", 28 "//drivers/hdf_core/framework/core/host/src/hdf_device.c", 29 "//drivers/hdf_core/framework/core/host/src/hdf_device_node.c", 30 "//drivers/hdf_core/framework/core/host/src/hdf_device_object.c", 31 "//drivers/hdf_core/framework/core/host/src/hdf_device_token.c", 32 "//drivers/hdf_core/framework/core/host/src/hdf_driver_loader.c", 33 "//drivers/hdf_core/framework/core/host/src/hdf_observer_record.c", 34 "//drivers/hdf_core/framework/core/host/src/hdf_service_observer.c", 35 "//drivers/hdf_core/framework/core/host/src/hdf_service_subscriber.c", 36 "//drivers/hdf_core/framework/core/host/src/power_state_token.c", 37 "//drivers/hdf_core/framework/core/manager/src/devhost_service_clnt.c", 38 "//drivers/hdf_core/framework/core/manager/src/device_token_clnt.c", 39 "//drivers/hdf_core/framework/core/manager/src/devmgr_service.c", 40 "//drivers/hdf_core/framework/core/manager/src/devsvc_manager.c", 41 "//drivers/hdf_core/framework/core/manager/src/driver_manager.c", 42 "//drivers/hdf_core/framework/core/manager/src/hdf_driver_installer.c", 43 "//drivers/hdf_core/framework/core/manager/src/hdf_host_info.c", 44 "//drivers/hdf_core/framework/core/manager/src/power_state_token_clnt.c", 45 "//drivers/hdf_core/framework/core/shared/src/hdf_device_info.c", 46 "//drivers/hdf_core/framework/core/shared/src/hdf_object_manager.c", 47 "//drivers/hdf_core/framework/core/shared/src/hdf_service_record.c", 48 "//drivers/hdf_core/framework/utils/src/hdf_cstring.c", 49 "//drivers/hdf_core/framework/utils/src/hdf_map.c", 50 "//drivers/hdf_core/framework/utils/src/hdf_sbuf.c", 51 "//drivers/hdf_core/framework/utils/src/hdf_sbuf_impl_raw.c", 52 "//drivers/hdf_core/framework/utils/src/hdf_slist.c", 53 "//drivers/hdf_core/framework/utils/src/hdf_sref.c", 54 ] 55 } 56 57 if (defined(LOSCFG_DRIVERS_HDF_CONFIG_MACRO)) { 58 sources += 59 [ "//drivers/hdf_core/framework/core/common/src/hdf_attribute_macro.c" ] 60 } 61 62 if (defined(LOSCFG_SHIELD_V200ZR_EVB_T1) && 63 defined(LOSCFG_DRIVERS_HDF_CONFIG_MACRO)) { 64 deps = [ "//device/board/fnlink/shields" ] 65 } 66} 67