mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 04:23:58 +00:00
lvgl: Introduce global variable for configuration
Relate-to: https://github.com/lvgl/lvgl/issues/2534 Forwarded: https://github.com/openembedded/meta-openembedded/pull/473 Signed-off-by: Philippe Coval <philippe.coval@huawei.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
4e82153b40
commit
243c83334a
@ -21,9 +21,12 @@ S = "${WORKDIR}/${PN}-${PV}"
|
|||||||
|
|
||||||
EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
|
EXTRA_OECMAKE += "-Dinstall:BOOL=ON"
|
||||||
|
|
||||||
|
LVGL_CONFIG_LV_MEM_CUSTOM ?= "0"
|
||||||
|
|
||||||
do_configure:prepend() {
|
do_configure:prepend() {
|
||||||
[ -r "${S}/lv_conf.h" ] \
|
[ -r "${S}/lv_conf.h" ] \
|
||||||
|| sed -e "s|#if 0 /*Set it to \"1\" to enable the content*/|#if 1 // Enabled by ${PN}|g" \
|
|| sed -e 's|#if 0 .*Set it to "1" to enable .*|#if 1 // Enabled|g' \
|
||||||
|
-e "s|\(#define LV_MEM_CUSTOM .*\)0|\1${LVGL_CONFIG_LV_MEM_CUSTOM}|g" \
|
||||||
< "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
|
< "${S}/lv_conf_template.h" > "${S}/lv_conf.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user