1# Copyright (C) 2022 HiHope Open Source Organization . 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 14if (ohos_kernel_type == "liteos_m") { 15 import("//kernel/liteos_m/liteos.gni") 16 module_name = get_path_info(rebase_path("."), "name") 17 config("board_config") { 18 ldflags = [ 19 "-mcpu=ck804ef", 20 "-mhard-float", 21 "-Wl,--gc-sections", 22 "-Wl,-zmax-page-size=1024", 23 "-Wl,-T" + rebase_path("ld/w800/gcc_csky.ld"), 24 "-Wl,--start-group", 25 "-Wl,--end-group", 26 "-nostartfiles", 27 "-nodefaultlibs", 28 "-L" + rebase_path("./lib/w800"), 29 ] 30 31 libs = [ 32 "gcc", 33 34 #"c", 35 "btcontroller", 36 "wlan", 37 38 #"dsp", 39 ] 40 41 include_dirs = [ 42 ".", 43 "include", 44 "include/app", 45 "include/arch/xt804", 46 "include/arch/xt804/csi_core", 47 "include/arch/xt804/csi_dsp", 48 "include/bt", 49 "include/driver", 50 "include/net", 51 "include/os", 52 "include/platform", 53 "include/wifi", 54 "include/app", 55 "platform/common/params", 56 "platform/drivers/spi", 57 "platform/inc", 58 "platform/sys", 59 "src/os/liteos/include", 60 "src/os/liteos/include_standrd", 61 "//commonlibrary/utils_lite/include", 62 "//third_party/musl/porting/liteos_m/kernel/include", 63 "//third_party/musl/porting/liteos_m/kernel/src/include", 64 "//third_party/musl/porting/liteos_m/kernel/src/internal", 65 "//third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils", 66 "//drivers/hdf_core/framework/core/common/include/manager", 67 "//drivers/hdf_core/framework/include/platform", 68 "//drivers/hdf_core/framework/include/utils", 69 "//drivers/hdf_core/adapter/khdf/liteos_m/osal/include", 70 "//drivers/hdf_core/interfaces/inner_api/osal/shared", 71 "//commonlibrary/c_utils/base/include", 72 ] 73 } 74 module_group(module_name) { 75 modules = [ 76 "platform", 77 "app", 78 "src", 79 ] 80 configs = [ ":board_config" ] 81 } 82} 83