swupdate_1.0.bb 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. SRC_URI = "git:///opt/tools/Projects/swupdate;protocol=file \
  12. file://defconfig \
  13. file://swupdate \
  14. "
  15. PACKAGES =+ "${PN}-www"
  16. FILES_${PN}-www = "/www/*"
  17. FILES_${PN} = "${bindir}/* /etc/init.d"
  18. CONFFILES_${PN} += "${sysconfdir}/init.d/recovery"
  19. S = "${WORKDIR}/git/"
  20. EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
  21. do_configure () {
  22. cp ${WORKDIR}/defconfig ${S}/.config
  23. cml1_do_configure
  24. }
  25. do_install () {
  26. install -d ${D}${bindir}/
  27. install -m 0755 swupdate ${D}${bindir}/
  28. install -m 0755 -d ${D}/www
  29. install -m 0755 ${S}www/* ${D}/www
  30. install -d ${D}${sysconfdir}/init.d
  31. install -m 755 ${WORKDIR}/swupdate ${D}${sysconfdir}/init.d
  32. }
  33. do_compile() {
  34. unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  35. oe_runmake swupdate_unstripped
  36. cp swupdate_unstripped swupdate
  37. }
  38. PARALLEL_MAKE = ""
  39. INITSCRIPT_NAME = "swupdate"
  40. INITSCRIPT_PARAMS = "defaults 70"