2018-06-05 14:36:29 +08:00
|
|
|
import rtconfig
|
|
|
|
Import('RTT_ROOT')
|
|
|
|
from building import *
|
|
|
|
|
|
|
|
# get current directory
|
|
|
|
cwd = GetCurrentDir()
|
|
|
|
|
|
|
|
# The set of source files associated with this SConscript file.
|
|
|
|
src = Split("""
|
|
|
|
startup_gcc.S
|
|
|
|
common/aes/ck_aes.c
|
|
|
|
common/crc/ck_crc.c
|
|
|
|
common/dmac/ck_dmac.c
|
|
|
|
common/eflash/ck_eflash.c
|
|
|
|
common/pwm/ck_pwm.c
|
|
|
|
common/rsa/ck_rsa.c
|
|
|
|
common/sha/ck_sha.c
|
|
|
|
common/trng/ck_trng.c
|
|
|
|
common/timer/dw_timer.c
|
|
|
|
common/gpio/dw_gpio.c
|
|
|
|
common/spi/dw_spi.c
|
|
|
|
common/iic/dw_iic.c
|
|
|
|
common/usart/dw_usart.c
|
|
|
|
common/wdt/dw_wdt.c
|
|
|
|
""")
|
|
|
|
|
|
|
|
path = [cwd + '/include',
|
2023-01-09 10:14:23 +08:00
|
|
|
cwd + '/common/aes',
|
2018-06-05 14:36:29 +08:00
|
|
|
cwd + '/common/aes',
|
|
|
|
cwd + '/common/crc',
|
|
|
|
cwd + '/common/dmac',
|
|
|
|
cwd + '/common/eflash',
|
|
|
|
cwd + '/common/gpio',
|
|
|
|
cwd + '/common/iic',
|
|
|
|
cwd + '/common/pwm',
|
|
|
|
cwd + '/common/rsa',
|
|
|
|
cwd + '/common/rtc',
|
|
|
|
cwd + '/common/sha',
|
|
|
|
cwd + '/common/spi',
|
|
|
|
cwd + '/common/timer',
|
|
|
|
cwd + '/common/trng',
|
|
|
|
cwd + '/common/usart',
|
|
|
|
cwd + '/common/wdt'
|
|
|
|
]
|
|
|
|
|
2020-11-20 13:38:11 +08:00
|
|
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
2018-06-05 14:36:29 +08:00
|
|
|
|
|
|
|
Return('group')
|