From 08c5998472af05c0dab97388b599513bdfb77c50 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Fri, 14 Aug 2020 20:31:51 +0800 Subject: [PATCH] graphics/lvgl: Specific LVGL version by kconfig Signed-off-by: Huang Qi --- examples/lvgldemo/Makefile | 2 +- graphics/lvgl/Kconfig | 4 ++++ graphics/lvgl/Makefile | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/lvgldemo/Makefile b/examples/lvgldemo/Makefile index 1e48d47c5..2b30f473c 100644 --- a/examples/lvgldemo/Makefile +++ b/examples/lvgldemo/Makefile @@ -39,7 +39,7 @@ include $(APPDIR)/Make.defs CONFIG_LV_EXAMPLES_URL ?= https://github.com/lvgl/lv_examples/archive -LVGL_EXAMPLES_VERSION ?= 7.0.2 +LVGL_EXAMPLES_VERSION = $(patsubst "%",%,$(strip $(CONFIG_LVGL_VERSION))) LVGL_EXAMPLES_TARBALL = v$(LVGL_EXAMPLES_VERSION).zip WGET ?= wget diff --git a/graphics/lvgl/Kconfig b/graphics/lvgl/Kconfig index c0fa7134a..993a40e8a 100644 --- a/graphics/lvgl/Kconfig +++ b/graphics/lvgl/Kconfig @@ -11,6 +11,10 @@ menuconfig GRAPHICS_LVGL if GRAPHICS_LVGL +config LVGL_VERSION + string "LVGL Version" + default "7.3.0" + config LV_MEM_SIZE int "Heap size of the graphics library" default 32768 diff --git a/graphics/lvgl/Makefile b/graphics/lvgl/Makefile index 16e278a02..adf0c3a39 100644 --- a/graphics/lvgl/Makefile +++ b/graphics/lvgl/Makefile @@ -57,7 +57,7 @@ WD := ${shell echo $(CURDIR) | sed -e 's/ /\\ /g'} CONFIG_GRAPH_LVGL_URL ?= "https://github.com/lvgl/lvgl/archive" -LVGL_VERSION ?= 7.0.2 +LVGL_VERSION = $(patsubst "%",%,$(strip $(CONFIG_LVGL_VERSION))) LVGL_TARBALL = v$(LVGL_VERSION).zip WGET ?= wget