rescuegui_git.bb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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-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 \
  11. file://rescuegui \
  12. file://config.lua \
  13. "
  14. # Modify these as desired
  15. PV = "1.0+git${SRCPV}"
  16. SRCREV = "a52b3d3bc315eb1195fc6311c8170651a54d7893"
  17. S = "${WORKDIR}/git"
  18. FILES_${PN} = "/opt ${sysconfdir}"
  19. do_configure () {
  20. # Specify any needed configure commands here
  21. :
  22. }
  23. do_compile () {
  24. # Specify compilation commands here
  25. :
  26. }
  27. do_install () {
  28. install -d ${D}/opt/rescueGUI
  29. install -d ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  30. for f in ${S}/*.lua;do
  31. install -m 755 ${f} ${D}/opt/rescueGUI
  32. done
  33. for f in ${S}/tek/ui/locale/SWUpdate/SWUpdate-GUI/*;do
  34. install -m 644 ${f} ${D}/opt/rescueGUI/tek/ui/locale/SWUpdate/SWUpdate-GUI
  35. done
  36. install -m 644 ${S}/config.lua ${D}/opt/rescueGUI
  37. install -d ${D}/${sysconfdir}/init.d
  38. install -m 755 ${WORKDIR}/rescuegui ${D}${sysconfdir}/init.d
  39. }
  40. # Be sure to run the GUI after starting SWUpdate
  41. INITSCRIPT_NAME = "rescuegui"
  42. INITSCRIPT_PARAMS = "defaults 90"