diff options
author | Vijay Kumar Banerjee <vijaykumar9597@gmail.com> | 2019-08-30 00:44:53 +0530 |
---|---|---|
committer | Vijay Kumar Banerjee <vijaykumar9597@gmail.com> | 2019-08-30 00:44:53 +0530 |
commit | 683015a9ace386e710a1d5c66fe71d29090681c6 (patch) | |
tree | bbcaaaa0012f4a53070fae225dc45239605aaec3 | |
parent | lvgl.py: Add waf builder for lvgl (diff) | |
download | rtems-littlevgl-683015a9ace386e710a1d5c66fe71d29090681c6.tar.bz2 |
lvgl.py: fix include paths in build
-rw-r--r-- | lv_conf.h | 6 | ||||
-rw-r--r-- | lvgl.py | 8 |
2 files changed, 8 insertions, 6 deletions
@@ -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)*/ @@ -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) |