• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//kernel/liteos_m/liteos.gni")
15import("${beken_sdk_dir}/sdkconfig.gni")
16import("${board_adapter_dir}/hals/sdk_dir.gni")
17module_name = get_path_info(rebase_path("."), "name")
18lite_component(module_name) {
19  features = [
20    ":bk7235",
21    ":common",
22  ]
23}
24
25static_library("bk7235") {
26  sources = [
27    "bk7235/hal/adc_hal_debug.c",
28    "bk7235/hal/adc_ll.c",
29    "bk7235/hal/aon_pmu_hal.c",
30    "bk7235/hal/aon_rtc_hal_debug.c",
31    "bk7235/hal/aon_rtc_ll.c",
32    "bk7235/hal/dma_hal_debug.c",
33    "bk7235/hal/dma_ll.c",
34    "bk7235/hal/efuse_hal_debug.c",
35    "bk7235/hal/efuse_ll.c",
36    "bk7235/hal/fft_hal_debug.c",
37    "bk7235/hal/flash_hal_debug.c",
38    "bk7235/hal/gpio_hal_debug.c",
39    "bk7235/hal/gpio_ll.c",
40    "bk7235/hal/i2c_hal_debug.c",
41    "bk7235/hal/i2c_ll.c",
42    "bk7235/hal/i2s_hal_debug.c",
43    "bk7235/hal/icu_hal_debug.c",
44    "bk7235/hal/icu_ll.c",
45    "bk7235/hal/jpeg_dec_hal.c",
46    "bk7235/hal/jpeg_hal_debug.c",
47    "bk7235/hal/jpeg_ll.c",
48    "bk7235/hal/pwm_hal_debug.c",
49    "bk7235/hal/pwm_ll.c",
50    "bk7235/hal/spi_hal_debug.c",
51    "bk7235/hal/spi_ll.c",
52    "bk7235/hal/sys_hal.c",
53    "bk7235/hal/timer_hal_debug.c",
54    "bk7235/hal/timer_ll.c",
55    "bk7235/hal/trng_hal_debug.c",
56    "bk7235/hal/trng_ll.c",
57    "bk7235/hal/uart_hal_debug.c",
58    "bk7235/hal/uart_ll.c",
59    "bk7235/hal/wdt_hal_debug.c",
60    "bk7235/hal/wdt_ll.c",
61    "bk7235/stub.c",
62  ]
63  public_configs = [
64    ":public",
65    "${beken_sdk_dir}/middleware/driver:public",
66  ]
67}
68
69static_library("common") {
70  sources = [
71    "common/hal/adc_hal.c",
72    "common/hal/aon_rtc_hal.c",
73    "common/hal/dma_hal.c",
74    "common/hal/efuse_hal.c",
75    "common/hal/flash_hal.c",
76    "common/hal/gpio_hal.c",
77    "common/hal/i2c_hal.c",
78    "common/hal/icu_hal.c",
79    "common/hal/pwm_hal.c",
80    "common/hal/spi_hal.c",
81    "common/hal/timer_hal.c",
82    "common/hal/trng_hal.c",
83    "common/hal/uart_hal.c",
84    "common/hal/wdt_hal.c",
85  ]
86  public_configs = [
87    ":public",
88    "${beken_sdk_dir}/middleware/driver:public",
89  ]
90}
91
92config("public") {
93  include_dirs = [
94    "bk7235/soc",
95    "bk7235/hal",
96    "common/soc/include",
97    "common/hal/include",
98  ]
99}
100