From 6bb9656344481e48ca867fdedf1556c8d71c9676 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 28 Feb 2022 09:24:05 +0100 Subject: [PATCH] tests/lvgl*: add more stack for native --- tests/pkg_lvgl/Makefile | 8 +++++++- tests/pkg_lvgl_touch/Makefile | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/pkg_lvgl/Makefile b/tests/pkg_lvgl/Makefile index c89d099886..05b92a38cf 100644 --- a/tests/pkg_lvgl/Makefile +++ b/tests/pkg_lvgl/Makefile @@ -12,6 +12,12 @@ USEMODULE += lvgl_extra_layout_flex USEMODULE += lvgl_extra_theme_default USEMODULE += lvgl_extra_theme_default_dark -CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*1024 +# SDL requires more stack +ifeq (native,$(BOARD)) + CFLAGS += -DTHREAD_STACKSIZE_MAIN=64*1024 +else + CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*1024 +endif + include $(RIOTBASE)/Makefile.include diff --git a/tests/pkg_lvgl_touch/Makefile b/tests/pkg_lvgl_touch/Makefile index 3747a14fca..f2a464affd 100644 --- a/tests/pkg_lvgl_touch/Makefile +++ b/tests/pkg_lvgl_touch/Makefile @@ -15,6 +15,11 @@ USEMODULE += lvgl_extra_theme_default # uncomment the following to enable growing button (needs more RAM) # USEMODULE += lvgl_extra_theme_default_grow -CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*1024 +# SDL requires more stack +ifeq (native,$(BOARD)) + CFLAGS += -DTHREAD_STACKSIZE_MAIN=64*1024 +else + CFLAGS += -DTHREAD_STACKSIZE_MAIN=2*1024 +endif include $(RIOTBASE)/Makefile.include