aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2024-03-13 05:40:08 +0100
committerKhem Raj <raj.khem@gmail.com>2024-03-12 22:28:39 -0700
commit1f075a9a2853bd6861e2ebcc6d989d236e7e8a2b (patch)
tree0267317e43d06ee371838bfecbf0fa26fbde45e8 /meta-oe/recipes-graphics
parent2e69edc17a248b758217a7a188bbeca5f91fae61 (diff)
downloadmeta-openembedded-1f075a9a2853bd6861e2ebcc6d989d236e7e8a2b.tar.gz
lvgl: Configure assertions based on DEBUG_BUILD
Configure all the LVGL assertions to enabled or disabled based on OE DEBUG_BUILD variable. This way, debug builds come with assertions which are expensive, while regular builds do not. Signed-off-by: Marek Vasut <marex@denx.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-graphics')
-rw-r--r--meta-oe/recipes-graphics/lvgl/lv-conf.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/lvgl/lv-conf.inc b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
index 85c08b0d58..cb676ac62b 100644
--- a/meta-oe/recipes-graphics/lvgl/lv-conf.inc
+++ b/meta-oe/recipes-graphics/lvgl/lv-conf.inc
@@ -14,6 +14,8 @@ LVGL_CONFIG_SDL_FULLSCREEN ?= "0"
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
LVGL_CONFIG_LV_COLOR_DEPTH ?= "32"
+DEBUG_BUILD ??= "0"
+
ALLOW_EMPTY:${PN} = "1"
EXTRA_OECMAKE += "-Dinstall:BOOL=ON -DLIB_INSTALL_DIR=${baselib}"
@@ -42,5 +44,11 @@ do_configure:append() {
\
-e "s|\(^#define LV_USE_EVDEV \).*|#define LV_USE_EVDEV ${LVGL_CONFIG_USE_EVDEV}|g" \
\
+ -e "s|\(^#define LV_USE_ASSERT_NULL \).*|#define LV_USE_ASSERT_NULL ${DEBUG_BUILD}|g" \
+ -e "s|\(^#define LV_USE_ASSERT_MALLOC \).*|#define LV_USE_ASSERT_MALLOC ${DEBUG_BUILD}|g" \
+ -e "s|\(^#define LV_USE_ASSERT_STYLE \).*|#define LV_USE_ASSERT_STYLE ${DEBUG_BUILD}|g" \
+ -e "s|\(^#define LV_USE_ASSERT_MEM_INTEGRITY \).*|#define LV_USE_ASSERT_MEM_INTEGRITY ${DEBUG_BUILD}|g" \
+ -e "s|\(^#define LV_USE_ASSERT_OBJ \).*|#define LV_USE_ASSERT_OBJ ${DEBUG_BUILD}|g" \
+ \
-i "${S}/lv_conf.h"
}