rescuegui_git.bb 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. SUMMARY = "Simple GUI for SWUpdate in rescue mode"
  2. DESCRIPTION = "This is a simple GUI that allows to set network addresses \
  3. and start an install from local media. It shows progress on the HMI"
  4. SECTION = "swupdate"
  5. LICENSE = "GPL-2.0-or-later"
  6. LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-or-later;md5=fed54355545ffd980b814dab4a3b312c"
  7. inherit update-rc.d
  8. DEPENDS += "swupdate lua luafilesystem"
  9. RDEPENDS:${PN} += "swupdate-tools swupdate-lua"
  10. SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https;branch=master \
  11. file://rescuegui \
  12. file://config.lua \
  13. "
  14. # Modify these as desired
  15. PV = "1.0+git${SRCPV}"
  16. SRCREV = "a52b3d3bc315eb1195fc6311c8170651a54d7893"
  17. FILES:${PN} = "/opt ${sysconfdir}"
  18. do_configure () {
  19. # Specify any needed configure commands here
  20. :
  21. }
  22. do_compile () {
  23. # Specify compilation commands here
  24. :
  25. }
  26. do_install () {
  27. install -d ${D}/opt/rescueGUI
  28. install -d ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  29. for f in ${S}/*.lua;do
  30. install -m 755 ${f} ${D}/opt/rescueGUI
  31. done
  32. for f in ${S}/tek/ui/locale/SWUpdate/SWUpdate-GUI/*;do
  33. install -m 644 ${f} ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  34. done
  35. install -m 644 ${S}/config.lua ${D}/opt/rescueGUI
  36. install -d ${D}/${sysconfdir}/init.d
  37. install -m 755 ${WORKDIR}/rescuegui ${D}${sysconfdir}/init.d
  38. }
  39. # Be sure to run the GUI after starting SWUpdate
  40. INITSCRIPT_NAME = "rescuegui"
  41. INITSCRIPT_PARAMS = "defaults 90"