swupdate_1.0.bb 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. SUMMARY="Image updater for Yocto projects"
  2. DESCRIPTION = "Application for automatic software update from USB Pen"
  3. SECTION="swupdate"
  4. DEPENDS = "mtd-utils libconfig openssl"
  5. LICENSE = "GPLv2+"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
  7. PR = "r0"
  8. inherit cml1 update-rc.d
  9. SRCREV = "${AUTOREV}"
  10. SRC_URI = "git://github.com/sbabic/swupdate.git;protocol=git \
  11. file://defconfig \
  12. file://swupdate \
  13. "
  14. PACKAGES =+ "${PN}-www"
  15. FILES_${PN}-www = "/www/*"
  16. FILES_${PN} = "${bindir}/* /etc/init.d"
  17. CONFFILES_${PN} += "${sysconfdir}/init.d/recovery"
  18. S = "${WORKDIR}/git/"
  19. EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
  20. do_configure () {
  21. cp ${WORKDIR}/defconfig ${S}/.config
  22. cml1_do_configure
  23. }
  24. do_install () {
  25. install -d ${D}${bindir}/
  26. install -m 0755 swupdate ${D}${bindir}/
  27. install -m 0755 -d ${D}/www
  28. install -m 0755 ${S}www/* ${D}/www
  29. install -d ${D}${sysconfdir}/init.d
  30. install -m 755 ${WORKDIR}/swupdate ${D}${sysconfdir}/init.d
  31. }
  32. do_compile() {
  33. unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  34. oe_runmake swupdate_unstripped
  35. cp swupdate_unstripped swupdate
  36. }
  37. PARALLEL_MAKE = ""
  38. INITSCRIPT_NAME = "swupdate"
  39. INITSCRIPT_PARAMS = "defaults 70"