[update] use macro 'BSP_USING_LVGL' to select something about 'lvgl' .

This commit is contained in:
xiangxistu 2021-12-29 20:04:01 +08:00 committed by Bernard Xiong
parent a45953f2bc
commit 40785ea926
3 changed files with 10 additions and 3 deletions

View File

@ -12,5 +12,5 @@ for d in list:
if os.path.isfile(os.path.join(path, 'SConscript')): if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript')) group = group + SConscript(os.path.join(d, 'SConscript'))
group += DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH) group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -12,5 +12,5 @@ for d in list:
if os.path.isfile(os.path.join(path, 'SConscript')): if os.path.isfile(os.path.join(path, 'SConscript')):
group = group + SConscript(os.path.join(d, 'SConscript')) group = group + SConscript(os.path.join(d, 'SConscript'))
group += DefineGroup('LVGL-port', src, depend = ['PKG_USING_LVGL'], CPPPATH = CPPPATH) group += DefineGroup('LVGL-port', src, depend = ['BSP_USING_LVGL'], CPPPATH = CPPPATH)
Return('group') Return('group')

View File

@ -36,7 +36,7 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_MCU_LCD config BSP_USING_MCU_LCD
bool "Enable ATK LCD" bool "Enable ATK LCD"
select BSP_USING_SDRAM select BSP_USING_SRAM
default n default n
if BSP_USING_MCU_LCD if BSP_USING_MCU_LCD
config BSP_USING_MCU_LCD_TEST config BSP_USING_MCU_LCD_TEST
@ -54,6 +54,13 @@ menu "Onboard Peripheral Drivers"
default 17 default 17
endif endif
config BSP_USING_LVGL
bool "Enable LVGL for LCD"
select BSP_USING_MCU_LCD
select BSP_USING_TOUCH
select PKG_USING_LVGL
default n
config BSP_USING_SPI_FLASH config BSP_USING_SPI_FLASH
bool "Enable SPI FLASH (W25Q128 spi1)" bool "Enable SPI FLASH (W25Q128 spi1)"
select BSP_USING_SPI select BSP_USING_SPI