Skip to content

Commit eee2a2e

Browse files
pengyiqiangxiaoxiang781216
authored andcommitted
lvgl: add customize compilation optimization level config
Signed-off-by: pengyiqiang <[email protected]>
1 parent aaf4e9d commit eee2a2e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

graphics/lvgl/Kconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,4 +1641,8 @@ menu "LVGL configuration"
16411641

16421642
endmenu
16431643

1644+
config LV_OPTLEVEL
1645+
string "Customize compilation optimization level"
1646+
default ""
1647+
16441648
endif # GRAPHICS_LVGL

graphics/lvgl/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ ifeq ($(wildcard $(LVGL_UNPACKNAME)/.git),)
7878
context:: $(LVGL_UNPACKNAME)
7979
endif
8080

81+
ifneq ($(CONFIG_LV_OPTLEVEL), "")
82+
CFLAGS += $(CONFIG_LV_OPTLEVEL)
83+
CXXFLAGS += $(CONFIG_LV_OPTLEVEL)
84+
endif
85+
8186
include $(APPDIR)/Application.mk
8287

8388
ifeq ($(wildcard $(LVGL_UNPACKNAME)/.git),)

0 commit comments

Comments
 (0)