summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorChristian Mauderer <christian.mauderer@embedded-brains.de>2020-07-09 17:42:11 +0200
committerChristian Mauderer <christian.mauderer@embedded-brains.de>2020-07-10 08:15:21 +0200
commit2d41a623b66995151897509fcf374a0eb3b1b001 (patch)
tree2394a6c5279bbda874d06d035a180cd05a5ba445 /wscript
parentlvgl: Update to v7.1.0 (diff)
downloadrtems-littlevgl-2d41a623b66995151897509fcf374a0eb3b1b001.tar.bz2
Allow to pass custom lv_conf.h and lv_drv_conf.h.
Diffstat (limited to 'wscript')
-rw-r--r--wscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/wscript b/wscript
index ae91daa..b3aa96f 100644
--- a/wscript
+++ b/wscript
@@ -49,9 +49,21 @@ def options(opt):
dest = "drivers",
help = "Build without lv_drivers." +
"Useful for building without libbsd.")
+ opt.add_option("--lv-conf",
+ default = "default_lv_conf.h",
+ dest = "lv_conf",
+ help = "Use a custom lv_conf.h instead of the default one.")
+ opt.add_option("--lv-drv-conf",
+ default = "default_lv_drv_conf.h",
+ dest = "lv_drv_conf",
+ help = "Use a custom lv_drv_conf.h instead of the default one.")
def configure(conf):
conf.env.DRIVERS = conf.options.drivers
+ with open(conf.options.lv_conf, "rb") as lv_conf:
+ conf.env.LV_CONF = lv_conf.read()
+ with open(conf.options.lv_drv_conf, "rb") as lv_drv_conf:
+ conf.env.LV_DRV_CONF = lv_drv_conf.read()
rtems.configure(conf)
def build(bld):