From 683015a9ace386e710a1d5c66fe71d29090681c6 Mon Sep 17 00:00:00 2001 From: Vijay Kumar Banerjee Date: Fri, 30 Aug 2019 00:44:53 +0530 Subject: lvgl.py: fix include paths in build --- lv_conf.h | 6 +++--- lvgl.py | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lv_conf.h b/lv_conf.h index 0609a6e..5a0ea26 100644 --- a/lv_conf.h +++ b/lv_conf.h @@ -20,8 +20,8 @@ *====================*/ /* Maximal horizontal and vertical resolution to support by the library.*/ -#define LV_HOR_RES_MAX (2048) -#define LV_VER_RES_MAX (2048) +#define LV_HOR_RES_MAX (1024) +#define LV_VER_RES_MAX (768) /* Color depth: * - 1: 1 byte per pixel @@ -29,7 +29,7 @@ * - 16: RGB565 * - 32: ARGB8888 */ -#define LV_COLOR_DEPTH 32 +#define LV_COLOR_DEPTH 16 /* Swap the 2 bytes of RGB565 color. * Useful if the display has a 8 bit interface (e.g. SPI)*/ diff --git a/lvgl.py b/lvgl.py index 2024eaa..bc3eae2 100644 --- a/lvgl.py +++ b/lvgl.py @@ -88,8 +88,10 @@ def build(bld): arch_inc_path = rtems.arch_bsp_include_path(bld.env.RTEMS_VERSION, bld.env.RTEMS_ARCH_BSP) - driver_path = 'lv_drivers/display' - all_files = os.listdir(driver_path) - include_headers = [os.path.join(driver_path, x) for x in all_files if (x[-2:] == '.h')] + include_paths = ['lv_drivers/display', 'lvgl', 'lv_drivers', 'lvgl/src', '.'] + include_headers = [] + for include_path in include_paths: + files = os.listdir(include_path) + include_headers.extend([os.path.join(include_path, x) for x in files if (x[-2:] == '.h')]) bld.install_files('${PREFIX}/' + arch_lib_path, ["liblvgl.a"]) bld.install_files("${PREFIX}/" + arch_inc_path, include_headers) -- cgit v1.2.3