Merge pull request #5220 from mysterywolf/kconfig

This commit is contained in:
guo 2021-10-24 16:02:06 +08:00 committed by GitHub
commit 9ea2c2b075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -37,15 +37,14 @@ menu "Onboard Peripheral Drivers"
default n
config BSP_USING_LCD_SAMPLE
bool "Enable LCD sample"
depends on BSP_USING_SPI_LCD
depends on !BSP_USING_LVGL
bool "Enable LCD raw driver sample"
depends on BSP_USING_SPI_LCD && !BSP_USING_LVGL
default n
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select BSP_USING_SPI_LCD
select PKG_USING_LVGL
select BSP_USING_SPI_LCD
default n
config BSP_USING_SDCARD

View File

@ -56,4 +56,10 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPDEFINES = ['STM32L475xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript'))
Return('group')