lvgl: move lvgl-demo-init modifications to their corresponding recipe
lv-conf.inc is a general configuration file, meant for any LVGL application, while lvgl-demo_9.3.0.bb is the recipe for our example demo. Make sure any modification made to the demo or its initscript is made in its corresponding recipe. This is cosmetic, no functional change. Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
21d9c4f17b
commit
289a6e5e09
|
|
@ -99,7 +99,4 @@ do_configure:append() {
|
||||||
\
|
\
|
||||||
-e "s|^([[:space:]]*#define LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \
|
-e "s|^([[:space:]]*#define LV_USE_LOTTIE[[:space:]]).*|\1${LVGL_CONFIG_USE_LOTTIE}|" \
|
||||||
-i "${S}/lv_conf.h"
|
-i "${S}/lv_conf.h"
|
||||||
sed -i -e 's,##LVGL_CONFIG_DRM_CARD##,${LVGL_CONFIG_DRM_CARD},g' \
|
|
||||||
-i -e 's,##LVGL_CONFIG_FBDEV_DEVICE##,${LVGL_CONFIG_FBDEV_DEVICE},g' \
|
|
||||||
-i ${WORKDIR}/lvgl-demo-init
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@ do_install:append() {
|
||||||
# Install wrapper bootscript to launch LVGL demo on boot
|
# Install wrapper bootscript to launch LVGL demo on boot
|
||||||
install -d ${D}${sysconfdir}/init.d
|
install -d ${D}${sysconfdir}/init.d
|
||||||
install -m 0755 ${WORKDIR}/lvgl-demo-init ${D}${sysconfdir}/lvgl-demo-init
|
install -m 0755 ${WORKDIR}/lvgl-demo-init ${D}${sysconfdir}/lvgl-demo-init
|
||||||
|
sed -i -e 's,##LVGL_CONFIG_DRM_CARD##,${LVGL_CONFIG_DRM_CARD},g' \
|
||||||
|
-i -e 's,##LVGL_CONFIG_FBDEV_DEVICE##,${LVGL_CONFIG_FBDEV_DEVICE},g' \
|
||||||
|
-i ${D}${sysconfdir}/lvgl-demo-init
|
||||||
ln -sf ${sysconfdir}/lvgl-demo-init ${D}${sysconfdir}/init.d/lvgl-demo-init
|
ln -sf ${sysconfdir}/lvgl-demo-init ${D}${sysconfdir}/init.d/lvgl-demo-init
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue