swupdate.inc 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 lua curl"
  5. LICENSE = "GPLv2+"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
  7. inherit cml1
  8. SRC_URI = "git://github.com/sbabic/swupdate.git;protocol=git \
  9. file://defconfig \
  10. "
  11. PACKAGES =+ "${PN}-www"
  12. FILES_${PN}-www = "/www/*"
  13. FILES_${PN} = "${bindir}/* /etc/init.d"
  14. CONFFILES_${PN} += "${sysconfdir}/init.d/recovery"
  15. S = "${WORKDIR}/git/"
  16. EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
  17. do_configure () {
  18. cp ${WORKDIR}/defconfig ${S}/.config
  19. cml1_do_configure
  20. }
  21. do_install () {
  22. install -d ${D}${bindir}/
  23. install -m 0755 swupdate ${D}${bindir}/
  24. install -m 0755 -d ${D}/www
  25. install -m 0755 ${S}www/* ${D}/www
  26. }
  27. do_compile() {
  28. unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
  29. oe_runmake swupdate_unstripped
  30. cp swupdate_unstripped swupdate
  31. }