swupdate-gui_git.bb 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. SUMMARY = "Recovery GUI application"
  2. DESCRIPTION = "This recipe provides the GUI for recovery system and works with LVGL and framebuffer."
  3. LICENSE = "GPL-2.0-or-later"
  4. LIC_FILES_CHKSUM = "file://LICENSE;md5=de4b1111cc7f3c8bc81546de6f9b24e4"
  5. DEPENDS:append = " \
  6. lvgl \
  7. swupdate \
  8. "
  9. SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https;branch=main \
  10. file://swupdate-gui \
  11. file://swupdate-gui.service \
  12. "
  13. SRCREV = "d6bd129b4cea1e5c53bcad077a7d25af8260ef84"
  14. S = "${WORKDIR}/git"
  15. inherit cmake update-rc.d systemd
  16. TARGET_CFLAGS:append = " -I${STAGING_INCDIR}/lvgl"
  17. TARGET_CFLAGS:append = " -I${STAGING_INCDIR}/lvgl/lv_drivers"
  18. INITSCRIPT_NAME = "swupdate-gui"
  19. INITSCRIPT_PARAMS = "defaults 90"
  20. SYSTEMD_SERVICE:${PN} = "swupdate-gui.service"
  21. do_install:append () {
  22. install -d ${D}${sysconfdir}/init.d
  23. install -d ${D}${systemd_system_unitdir}
  24. install -m 0755 ${WORKDIR}/swupdate-gui ${D}${sysconfdir}/init.d/
  25. install -m 644 ${WORKDIR}/swupdate-gui.service ${D}${systemd_system_unitdir}
  26. install -d ${D}${sysconfdir}/recovery_gui
  27. install -m 0644 ${S}/config/config.txt ${D}${sysconfdir}/recovery_gui/
  28. install -m 0755 ${S}/scripts/recovery-check-bridge-interface.sh ${D}${bindir}
  29. install -m 0755 ${S}/scripts/recovery-edit-default-gateway.sh ${D}${bindir}
  30. install -m 0755 ${S}/scripts/recovery-get-dhcp-status.sh ${D}${bindir}
  31. install -m 0755 ${S}/scripts/recovery-set-dhcp.sh ${D}${bindir}
  32. install -m 0755 ${S}/scripts/recovery-set-static.sh ${D}${bindir}
  33. }
  34. RDEPENDS:${PN}:append = " \
  35. swupdate \
  36. "