4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-30 15:50:28 +08:00
Wayne Lin 4fcb87a8aa Support M2354 platform.
1. Add NuMaker-M2354 BSP.
2. Fix SLCD library and modify its demo.
2021-02-05 18:52:13 +08:00

24 lines
825 B
Python

# RT-Thread building script for component
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd]
group = []
# USB driver constrain
if GetDepend('BOARD_USING_USBD') and ( GetDepend('BSP_USING_OTG') or GetDepend('BSP_USING_USBH') ):
print 'Sorry, wrong selection.'
print '[Hint] You already select BOARD_USING_USBD. Please de-select BSP_USING_OTG and BSP_USING_USBH.'
sys.exit(1)
elif GetDepend('BOARD_USING_USBH') and ( GetDepend('BSP_USING_OTG') or GetDepend('BSP_USING_USBD') ):
print 'Sorry, wrong selection.'
print '[Hint] You already select BOARD_USING_USBH. Please de-select BSP_USING_OTG and BSP_USING_USBD options.'
sys.exit(1)
else:
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
Return('group')