lvgl: add customize compilation optimization level config

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
pengyiqiang 2024-09-06 18:05:56 +08:00 committed by Xiang Xiao
parent aaf4e9d480
commit eee2a2ef6b
2 changed files with 9 additions and 0 deletions

View File

@ -1641,4 +1641,8 @@ menu "LVGL configuration"
endmenu
config LV_OPTLEVEL
string "Customize compilation optimization level"
default ""
endif # GRAPHICS_LVGL

View File

@ -78,6 +78,11 @@ ifeq ($(wildcard $(LVGL_UNPACKNAME)/.git),)
context:: $(LVGL_UNPACKNAME)
endif
ifneq ($(CONFIG_LV_OPTLEVEL), "")
CFLAGS += $(CONFIG_LV_OPTLEVEL)
CXXFLAGS += $(CONFIG_LV_OPTLEVEL)
endif
include $(APPDIR)/Application.mk
ifeq ($(wildcard $(LVGL_UNPACKNAME)/.git),)