# RT-Thread building script for componentfrombuildingimport*cwd=GetCurrentDir()# add the general drivers.src=Split("""board.c""")# add serial driver codeifGetDepend('BSP_USING_UART1')orGetDepend('BSP_USING_UART2'):src+=['drv_uart.c']# add gpio driver codeifGetDepend(['BSP_USING_GPIO']):src+=['drv_gpio.c']