summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-08-30 00:44:53 +0530
committerVijay Kumar Banerjee <vijaykumar9597@gmail.com>2019-08-30 00:44:53 +0530
commit683015a9ace386e710a1d5c66fe71d29090681c6 (patch)
treebbcaaaa0012f4a53070fae225dc45239605aaec3
parentlvgl.py: Add waf builder for lvgl (diff)
downloadrtems-littlevgl-683015a9ace386e710a1d5c66fe71d29090681c6.tar.bz2
lvgl.py: fix include paths in build
-rw-r--r--lv_conf.h6
-rw-r--r--lvgl.py8
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)