rescuegui_git.bb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 = "GPLv2+"
  6. LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
  7. inherit update-rc.d
  8. DEPENDS += "swupdate lua lua-swupdate luafilesystem"
  9. RDEPENDS_${PN} += "swupdate-tools"
  10. SRC_URI = "git://github.com/sbabic/SWUpdateGUI.git;protocol=https \
  11. file://rescuegui \
  12. file://config.lua \
  13. "
  14. # Modify these as desired
  15. PV = "1.0+git${SRCPV}"
  16. #SRCREV = "e286a994e7ed4fc660d644634abc4837c1f78beb"
  17. SRCREV = "${AUTOREV}"
  18. S = "${WORKDIR}/git"
  19. FILES_${PN} = "/opt ${sysconfdir}"
  20. do_configure () {
  21. # Specify any needed configure commands here
  22. :
  23. }
  24. do_compile () {
  25. # Specify compilation commands here
  26. :
  27. }
  28. do_install () {
  29. install -d ${D}/opt/rescueGUI
  30. install -d ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  31. for f in ${S}/*.lua;do
  32. install -m 755 ${f} ${D}/opt/rescueGUI
  33. done
  34. for f in ${S}/tek/ui/locale/SWUpdate/SWUpdate-GUI/*;do
  35. install -m 644 ${f} ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  36. done
  37. install -m 644 ${S}/config.lua ${D}/opt/rescueGUI
  38. install -d ${D}/${sysconfdir}/init.d
  39. install -m 755 ${WORKDIR}/rescuegui ${D}${sysconfdir}/init.d
  40. }
  41. # Be sure to run the GUI after starting SWUpdate
  42. INITSCRIPT_NAME = "rescuegui"
  43. INITSCRIPT_PARAMS = "defaults 90"