1# Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") 2# All rights reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16import("//build/lite/config/component/lite_component.gni") 17import("//build/lite/config/subsystem/lite_subsystem.gni") 18import("//drivers/hdf_core/adapter/khdf/liteos_m/hdf.gni") 19import("//kernel/liteos_m/liteos.gni") 20 21#driver_sdk_path = "b91m_ble_sdk" 22driver_sdk_path = "b91_ble_sdk" 23 24config("B91_config") { 25 defines = [ "CHIP_TYPE=CHIP_TYPE_9518" ] 26 27 include_dirs = [ 28 "liteos_m/inc", 29 "$driver_sdk_path", 30 "$driver_sdk_path/common", 31 "$driver_sdk_path/drivers", 32 "$driver_sdk_path/drivers/B91", 33 "$driver_sdk_path/vendor/common", 34 "$driver_sdk_path/stack/ble", 35 "$driver_sdk_path/stack/ble/service/ota", 36 ] 37 38 configs = [ 39 "//drivers/hdf_core/adapter/khdf/liteos_m:hdf_config", 40 "$driver_sdk_path:public", 41 ] 42} 43 44module_name = get_path_info(rebase_path("."), "name") 45 46module_group(module_name) { 47 deps = [ 48 "hdf", 49 driver_sdk_path, 50 ] 51 modules = [ "liteos_m" ] 52} 53