From 50708dcad76e5acf3cbe14c908d55a38e4c32afe Mon Sep 17 00:00:00 2001 From: jixucheng Date: Thu, 23 Jul 2026 15:16:59 +0800 Subject: [PATCH] [patch]Exclude ge2d/mpp_dec(artinchip) by default. The lvgl.mk wildcard find(1) collects all .c files under src/, including ArtInChip-specific draw backends (ge2d/mpp_dec) that depend on headers from vendor/artinchip BSP. Exclude them unless the corresponding Kconfig option is enabled, matching the existing CMakeLists.txt Change-Id: I5e38c25c5b703b62a4d924929f3a90897d624b41 Signed-off-by: jixucheng --- lvgl.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lvgl.mk b/lvgl.mk index d5062ce13..900b93294 100644 --- a/lvgl.mk +++ b/lvgl.mk @@ -2,6 +2,13 @@ LVGL_PATH ?= ${shell pwd}/lvgl ASRCS += $(shell find $(LVGL_PATH)/src -type f -name '*.S') CSRCS += $(shell find $(LVGL_PATH)/src -type f -name '*.c') +# Exclude ArtInChip-specific draw backends (GE2D/MPP) unless explicitly enabled +ifneq ($(CONFIG_LV_USE_DRAW_GE2D),y) + CSRCS := $(filter-out $(LVGL_PATH)/src/draw/artinchip/ge2d/%, $(CSRCS)) +endif +ifneq ($(CONFIG_LV_USE_MPP_DEC),y) + CSRCS := $(filter-out $(LVGL_PATH)/src/draw/artinchip/mpp_dec/%, $(CSRCS)) +endif CSRCS += $(shell find $(LVGL_PATH)/demos -type f -name '*.c') CSRCS += $(shell find $(LVGL_PATH)/examples -type f -name '*.c') CXXEXT := .cpp -- Gitee