1# Copyright (c) 2021 Huawei Device Co., Ltd. 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("//kernel/liteos_m/liteos.gni") 15 16kernel_module("bsp_config") { 17 sources = [ 18 "fs/fs_init.c", 19 "fs/littlefs_hal.c", 20 "hals/driver/hal_watchdog.c", 21 "libc/dprintf.c", 22 "libc/swap.c", 23 "main.c", 24 ] 25 if (!defined(LOSCFG_TEST)) { 26 # kernel's testsuites not enabled, use ower's 27 sources += [ "test/task_demo.c" ] 28 } 29 include_dirs = [ 30 "include", 31 "hals/driver", 32 "test", 33 "fs", 34 "//commonlibrary/utils_lite/include", 35 ] 36} 37 38config("public") { 39 include_dirs = [ 40 ".", 41 "fs", 42 ] 43 ldflags = [ 44 "-Wl,-T" + rebase_path("ESP32.ld"), 45 "-nostdlib", 46 ] 47 libs = [ "gcc" ] 48} 49