1# Copyright (C) 2022 Beken Corporation 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("${beken_sdk_dir}/sdkconfig.gni") 15 16if (ohos_kernel_type == "liteos_m") { 17 import("//kernel/liteos_m/liteos.gni") 18 module_name = get_path_info(rebase_path("."), "name") 19 config("board_config") { 20 ldflags = [ 21 "-std=c99", 22 "-mstrict-align", 23 "-Wl,--gc-sections", 24 "-ffunction-sections", 25 "-fdata-sections", 26 "-D__LITEOS__", 27 "-DCFG_SUPPORT_LITEOS", 28 "-DBEKEN_PLATFORM", 29 "-Wno-strict-prototypes", 30 "-Wno-parentheses", 31 ] 32 33 include_dirs = [ 34 ".", 35 "include", 36 ] 37 } 38 39 module_group(module_name) { 40 modules = [] 41 deps = [ 42 "components/base64", 43 "components/bk_adapter", 44 "components/bk_ate", 45 "components/bk_cli", 46 "components/bk_event", 47 "components/bk_init", 48 "components/bk_log", 49 "components/bk_netif", 50 "components/bk_os:bk_os", 51 "components/bk_ps:bk_ps", 52 "components/bk_startup", 53 "components/bk_system", 54 "components/easy_flash", 55 "components/media", 56 "components/saradc_intf", 57 "components/security", 58 "components/temp_detect", 59 "components/utf8:utf8", 60 "middleware/arch:arch", 61 "middleware/boards:boards", 62 "middleware/driver:driver", 63 "middleware/soc:soc", 64 "projects", 65 ] 66 } 67} 68