• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/csky_driver/src/ck_usart.c",
21    "hals/csky_driver/src/devices.c",
22    "hals/csky_driver/src/dw_gpio.c",
23    "hals/csky_driver/src/dw_timer.c",
24    "hals/csky_driver/src/isr.c",
25    "hals/csky_driver/src/pinmux.c",
26    "hals/csky_driver/src/sys_freq.c",
27    "libc/dprintf.c",
28    "main.c",
29    "startup.S",
30  ]
31  if (!defined(LOSCFG_TEST)) {
32    # kernel's testsuites not enabled, use ower's
33    sources += [ "test/task_demo.c" ]
34  }
35  include_dirs = [
36    "//commonlibrary/utils_lite/include",
37    "test",
38    "libc",
39  ]
40}
41
42config("public") {
43  ldflags = [
44    "-mcpu=e802",
45    "-Wl,-T" + rebase_path("liteos.ld"),
46    "-nostdlib",
47  ]
48
49  libs = [ "gcc" ]
50
51  include_dirs = [
52    ".",
53    "hals/csky_driver/include",
54    "fs",
55  ]
56}
57