importrtconfigfrombuildingimport*cwd=GetCurrentDir()# add the general drivers.src=Glob('board.c')src+=Glob('CubeMX_Config/Src/stm32f4xx_hal_msp.c')ifGetDepend(['BSP_USING_ETH']):src+=Glob('ports/phy_reset.c')ifGetDepend(['BSP_USING_SPI_FLASH']):src+=Glob('ports/spi_flash_init.c')path=[cwd]path+=[cwd+'/CubeMX_Config/Inc']