|
@@ -8,17 +8,27 @@ LICENSE = "GPL-2.0-or-later"
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=de4b1111cc7f3c8bc81546de6f9b24e4"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=de4b1111cc7f3c8bc81546de6f9b24e4"
|
|
|
|
|
|
|
|
SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https;branch=rust-port \
|
|
SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https;branch=rust-port \
|
|
|
|
|
+ file://0001-lv-build-with-LVGL-9.2.patch \
|
|
|
|
|
+ file://swupdate-gui \
|
|
|
file://swupdate-gui.service \
|
|
file://swupdate-gui.service \
|
|
|
file://90-recovery-gui.rules \
|
|
file://90-recovery-gui.rules \
|
|
|
"
|
|
"
|
|
|
SRCREV = "e904a5768fba63dc484d2fdc948ae10772406af9"
|
|
SRCREV = "e904a5768fba63dc484d2fdc948ae10772406af9"
|
|
|
|
|
|
|
|
|
|
+S = "${WORKDIR}/git"
|
|
|
|
|
+
|
|
|
PV = "1.0.0+git"
|
|
PV = "1.0.0+git"
|
|
|
|
|
|
|
|
include swupdategui-rs-crates.inc
|
|
include swupdategui-rs-crates.inc
|
|
|
|
|
|
|
|
-inherit cargo cargo-update-recipe-crates pkgconfig systemd
|
|
|
|
|
|
|
+inherit cargo cargo-update-recipe-crates pkgconfig update-rc.d systemd
|
|
|
|
|
|
|
|
|
|
+# Requirements in scarthgap:
|
|
|
|
|
+# - Rust >= 1.77 (scarthgap ships 1.75), for example from meta-lts-mixins,
|
|
|
|
|
+# branch scarthgap/rust
|
|
|
|
|
+# - LVGL >= 9.2 (provided by this layer)
|
|
|
|
|
+# - clang-native from meta-clang
|
|
|
|
|
+#
|
|
|
# Bindings for LVGL and libswupdate are generated by bindgen, which needs libclang.
|
|
# Bindings for LVGL and libswupdate are generated by bindgen, which needs libclang.
|
|
|
# LVGL is found with pkg-config, libswupdate in the target sysroot.
|
|
# LVGL is found with pkg-config, libswupdate in the target sysroot.
|
|
|
DEPENDS += "clang-native lvgl swupdate"
|
|
DEPENDS += "clang-native lvgl swupdate"
|
|
@@ -27,11 +37,19 @@ export BINDGEN_EXTRA_CLANG_ARGS = "--sysroot=${STAGING_DIR_HOST} -I${STAGING_INC
|
|
|
export SWUPDATE_INCLUDE_DIR = "${STAGING_INCDIR}"
|
|
export SWUPDATE_INCLUDE_DIR = "${STAGING_INCDIR}"
|
|
|
export SWUPDATE_LIB_DIR = "${STAGING_LIBDIR}"
|
|
export SWUPDATE_LIB_DIR = "${STAGING_LIBDIR}"
|
|
|
|
|
|
|
|
|
|
+INITSCRIPT_NAME = "swupdate-gui"
|
|
|
|
|
+INITSCRIPT_PARAMS = "defaults 90"
|
|
|
SYSTEMD_SERVICE:${PN} = "swupdate-gui.service"
|
|
SYSTEMD_SERVICE:${PN} = "swupdate-gui.service"
|
|
|
|
|
|
|
|
do_install:append() {
|
|
do_install:append() {
|
|
|
install -d ${D}${systemd_system_unitdir}
|
|
install -d ${D}${systemd_system_unitdir}
|
|
|
- install -m 0644 ${UNPACKDIR}/swupdate-gui.service ${D}${systemd_system_unitdir}
|
|
|
|
|
|
|
+ install -m 0644 ${WORKDIR}/swupdate-gui.service ${D}${systemd_system_unitdir}
|
|
|
|
|
+
|
|
|
|
|
+ # Same init script as the C implementation
|
|
|
|
|
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
|
|
|
|
|
+ install -d ${D}${sysconfdir}/init.d
|
|
|
|
|
+ install -m 0755 ${WORKDIR}/swupdate-gui ${D}${sysconfdir}/init.d/
|
|
|
|
|
+ fi
|
|
|
|
|
|
|
|
install -d ${D}${sysconfdir}/recovery_gui
|
|
install -d ${D}${sysconfdir}/recovery_gui
|
|
|
install -m 0644 ${S}/config/config.txt ${D}${sysconfdir}/recovery_gui/
|
|
install -m 0644 ${S}/config/config.txt ${D}${sysconfdir}/recovery_gui/
|
|
@@ -43,7 +61,7 @@ do_install:append() {
|
|
|
|
|
|
|
|
# The GUI opens /dev/fb and /dev/input/{keyboard0,touchscreen0}
|
|
# The GUI opens /dev/fb and /dev/input/{keyboard0,touchscreen0}
|
|
|
install -d ${D}${sysconfdir}/udev/rules.d
|
|
install -d ${D}${sysconfdir}/udev/rules.d
|
|
|
- install -m 0644 ${UNPACKDIR}/90-recovery-gui.rules ${D}${sysconfdir}/udev/rules.d/
|
|
|
|
|
|
|
+ install -m 0644 ${WORKDIR}/90-recovery-gui.rules ${D}${sysconfdir}/udev/rules.d/
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
FILES:${PN} += "${sysconfdir}/udev/rules.d/90-recovery-gui.rules"
|
|
FILES:${PN} += "${sysconfdir}/udev/rules.d/90-recovery-gui.rules"
|