mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-22 17:12:55 +08:00
31 lines
507 B
Python
31 lines
507 B
Python
|
# RT-Thread building script for component
|
||
|
|
||
|
from building import *
|
||
|
|
||
|
cwd = GetCurrentDir()
|
||
|
CPPPATH = [cwd]
|
||
|
|
||
|
gic390_group = Split('''
|
||
|
gic_pl390.c
|
||
|
''')
|
||
|
|
||
|
gic400_group = Split('''
|
||
|
gic_pl400.c
|
||
|
''')
|
||
|
|
||
|
gic500_group = Split('''
|
||
|
gic_pl500.c
|
||
|
''')
|
||
|
|
||
|
src = ()
|
||
|
if GetDepend('BSP_USING_GIC390'):
|
||
|
src = gic390_group
|
||
|
if GetDepend('BSP_USING_GIC400'):
|
||
|
src = gic400_group
|
||
|
if GetDepend('BSP_USING_GIC500'):
|
||
|
src = gic500_group
|
||
|
|
||
|
group = DefineGroup('gic', src, depend = ['BSP_USING_GIC'], CPPPATH = CPPPATH)
|
||
|
|
||
|
Return('group')
|