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") 18static_library(module_name) { 19 sources = [ 20 "bk7235/gpio_driver.c", 21 "bk7235/interrupt.c", 22 "bk7235/interrupt_statis.c", 23 "common/dd.c", 24 "common/driver.c", 25 "common/drv_model.c", 26 "efuse/efuse_driver.c", 27 "flash/flash_bypass.c", 28 "flash/flash_driver.c", 29 "flash/flash_partition.c", 30 "general_dma/dma_driver.c", 31 "gpio/gpio_driver_base.c", 32 "icu/icu_driver.c", 33 "icu/interrupt_base.c", 34 "pmu/aon_pmu_driver.c", 35 "reset_reason/reset_reason.c", 36 "rtc/aon_rtc_driver.c", 37 "saradc/adc_driver.c", 38 "saradc/adc_statis.c", 39 "security/hal_aes.c", 40 "security/security.c", 41 "spi/spi_driver.c", 42 "spi/spi_statis.c", 43 "spinlock/amp_res_lock.c", 44 "sys_ctrl/sys_audio_driver.c", 45 "sys_ctrl/sys_bt_driver.c", 46 "sys_ctrl/sys_clock_driver.c", 47 "sys_ctrl/sys_ctrl.c", 48 "sys_ctrl/sys_driver.c", 49 "sys_ctrl/sys_driver_common.c", 50 "sys_ctrl/sys_int_driver.c", 51 "sys_ctrl/sys_ps_driver.c", 52 "sys_ctrl/sys_psram_driver.c", 53 "sys_ctrl/sys_touch_driver.c", 54 "sys_ctrl/sys_video_driver.c", 55 "sys_ctrl/sys_wifi_driver.c", 56 "timer/timer_driver.c", 57 "trng/trng_driver.c", 58 "uart/printf.c", 59 "uart/uart_driver.c", 60 "uart/uart_statis.c", 61 "wdt/wdt_driver.c", 62 ] 63 64 public_configs = [ 65 ":public", 66 "${beken_sdk_dir}/middleware/compal:public", 67 "${beken_sdk_dir}/middleware/arch:public", 68 "${beken_sdk_dir}/middleware/soc:public", 69 "${beken_sdk_dir}/components/bk_os:public", 70 ] 71} 72 73config("public") { 74 include_dirs = [ 75 ".", 76 "bk7235", 77 "include", 78 "common", 79 "reset_reason", 80 "pwm", 81 "flash", 82 "uart", 83 "sys_ctrl", 84 "gpio", 85 "general_dma", 86 "icu", 87 "i2c", 88 "sdcard", 89 "saradc", 90 "pmu", 91 "mailbox", 92 "spinlock", 93 "touch", 94 "sbc", 95 "rtc", 96 "i2s", 97 "fft", 98 "chip_support", 99 "spi", 100 "jpeg_enc", 101 "sdcard", 102 "include/bk_private", 103 "include/bk_private/legacy", 104 ] 105} 106