mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-07 00:59:00 +08:00
ToolsCI / Tools (push) Waiting to run
AutoTestCI / components/cpp11 (push) Waiting to run
AutoTestCI / kernel/atomic (push) Waiting to run
AutoTestCI / kernel/atomic/riscv64 (push) Waiting to run
AutoTestCI / kernel/atomic_c11 (push) Waiting to run
AutoTestCI / kernel/atomic_c11/riscv64 (push) Waiting to run
AutoTestCI / kernel/device (push) Waiting to run
AutoTestCI / kernel/ipc (push) Waiting to run
AutoTestCI / kernel/irq (push) Waiting to run
AutoTestCI / kernel/mem (push) Waiting to run
AutoTestCI / kernel/mem/riscv64 (push) Waiting to run
AutoTestCI / kernel/thread (push) Waiting to run
AutoTestCI / kernel/timer (push) Waiting to run
AutoTestCI / rtsmart/aarch64 (push) Waiting to run
AutoTestCI / rtsmart/arm (push) Waiting to run
AutoTestCI / rtsmart/riscv64 (push) Waiting to run
AutoTestCI / components/utest (push) Waiting to run
RT-Thread BSP Static Build Check / ESP32C3 (push) Waiting to run
RT-Thread BSP Static Build Check / Infineon_TI_microchip (push) Waiting to run
RT-Thread BSP Static Build Check / RT-Thread Online Packages (STM32F407 RT-Spark) (push) Waiting to run
RT-Thread BSP Static Build Check / RTduino/Arduino Libraries (Raspberry Pico) (push) Waiting to run
RT-Thread BSP Static Build Check / RTduino/Arduino Libraries (STM32F412 Nucleo) (push) Waiting to run
RT-Thread BSP Static Build Check / aarch64 (push) Waiting to run
RT-Thread BSP Static Build Check / gd32_n32_apm32 (push) Waiting to run
RT-Thread BSP Static Build Check / hpmicro (push) Waiting to run
RT-Thread BSP Static Build Check / i386-unknown (push) Waiting to run
RT-Thread BSP Static Build Check / llvm-arm (push) Waiting to run
RT-Thread BSP Static Build Check / mips (push) Waiting to run
RT-Thread BSP Static Build Check / nordic(yml) (push) Waiting to run
RT-Thread BSP Static Build Check / nuvoton (push) Waiting to run
RT-Thread BSP Static Build Check / nxp_renesas (push) Waiting to run
RT-Thread BSP Static Build Check / others_at32_hc32_ht32 (push) Waiting to run
RT-Thread BSP Static Build Check / riscv-none (push) Waiting to run
RT-Thread BSP Static Build Check / riscv64-unknown (push) Waiting to run
RT-Thread BSP Static Build Check / simulator (push) Waiting to run
RT-Thread BSP Static Build Check / stm32_f2_f4 (push) Waiting to run
RT-Thread BSP Static Build Check / stm32_f7_g0_h7_mp15_u5_h5_wb5 (push) Waiting to run
RT-Thread BSP Static Build Check / stm32l4_f0_f1 (push) Waiting to run
BSP compilation with more drivers / BSP Compilation with More Drivers (push) Waiting to run
pkgs_test / change (push) Waiting to run
56 lines
1.1 KiB
Python
56 lines
1.1 KiB
Python
#导入其他模块中的变量
|
|
Import('RTT_ROOT')
|
|
Import('rtconfig')
|
|
|
|
#导入使用到的模块
|
|
from building import *
|
|
|
|
#获取当前目录的路径
|
|
cwd = GetCurrentDir()
|
|
|
|
#创建一个列表,用于保存需要使用到的C文件路径
|
|
src = Split("""
|
|
drv_common.c
|
|
""")
|
|
#drv_common.c
|
|
#根据宏定义来对需要用到的C文件进行裁剪
|
|
if GetDepend(['BSP_USING_GPIO']):
|
|
src += ['drv_gpio.c']
|
|
|
|
if GetDepend(['BSP_USING_UART']):
|
|
src += ['drv_usart.c']
|
|
|
|
if GetDepend(['BSP_USING_SPI']):
|
|
src += ['drv_spi.c']
|
|
|
|
if GetDepend(['BSP_USING_I2C_HW']):
|
|
src += ['drv_i2c.c']
|
|
|
|
if GetDepend(['BSP_USING_I2C_SW']):
|
|
src += ['drv_soft_i2c.c']
|
|
|
|
if GetDepend(['BSP_USING_ADC']):
|
|
src += ['drv_adc.c']
|
|
|
|
if GetDepend(['BSP_USING_WDT']):
|
|
src += ['drv_wdt.c']
|
|
|
|
if GetDepend(['BSP_USING_CAN']):
|
|
src += ['drv_can.c']
|
|
|
|
if GetDepend(['BSP_USING_SDIO']):
|
|
src += ['drv_sdio.c']
|
|
|
|
if GetDepend(['BSP_USING_USBD']):
|
|
src += ['drv_usbd.c']
|
|
|
|
#创建一个列表,用于保存需要包含的H文件路径
|
|
path = [cwd]
|
|
|
|
#创建一个组别
|
|
group = DefineGroup('Drivers', src ,depend = [''], CPPPATH = path)
|
|
|
|
#返回创建好的组别
|
|
Return('group')
|
|
|