swupdate-gui_git.bb 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. inherit cmake update-rc.d systemd
  15. TARGET_CFLAGS:append = " -I${STAGING_INCDIR}/lvgl"
  16. TARGET_CFLAGS:append = " -I${STAGING_INCDIR}/lvgl/lv_drivers"
  17. INITSCRIPT_NAME = "swupdate-gui"
  18. INITSCRIPT_PARAMS = "defaults 90"
  19. SYSTEMD_SERVICE:${PN} = "swupdate-gui.service"
  20. do_install:append () {
  21. install -d ${D}${sysconfdir}/init.d
  22. install -d ${D}${systemd_system_unitdir}
  23. install -m 0755 ${WORKDIR}/swupdate-gui ${D}${sysconfdir}/init.d/
  24. install -m 644 ${WORKDIR}/swupdate-gui.service ${D}${systemd_system_unitdir}
  25. install -d ${D}${sysconfdir}/recovery_gui
  26. install -m 0644 ${S}/config/config.txt ${D}${sysconfdir}/recovery_gui/
  27. install -m 0755 ${S}/scripts/recovery-check-bridge-interface.sh ${D}${bindir}
  28. install -m 0755 ${S}/scripts/recovery-edit-default-gateway.sh ${D}${bindir}
  29. install -m 0755 ${S}/scripts/recovery-get-dhcp-status.sh ${D}${bindir}
  30. install -m 0755 ${S}/scripts/recovery-set-dhcp.sh ${D}${bindir}
  31. install -m 0755 ${S}/scripts/recovery-set-static.sh ${D}${bindir}
  32. }
  33. RDEPENDS:${PN}:append = " \
  34. swupdate \
  35. "