lvgl: add customize compilation optimization level config
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
aaf4e9d480
commit
eee2a2ef6b
@ -1641,4 +1641,8 @@ menu "LVGL configuration"
|
||||
|
||||
endmenu
|
||||
|
||||
config LV_OPTLEVEL
|
||||
string "Customize compilation optimization level"
|
||||
default ""
|
||||
|
||||
endif # GRAPHICS_LVGL
|
||||
|
@ -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),)
|
||||
|
Loading…
Reference in New Issue
Block a user