swupdate-image.bb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. SUMMARY = "Root file system image for MCX board"
  2. DESCRIPTION = "Root FS includes the following functionality: \
  3. Busybox: standard for ELDK 5.2 (syslogd removed) \
  4. mtd-utils: standard for ELDK 5.2 \
  5. base-files: standard script for ELDK 5.2 (/var/log placement changed) \
  6. tinylogin: standard for ELDK 5.2 \
  7. sysvinit: standard for ELDK 5.2 (bootlogd removed) \
  8. initscripts: modified standard script for ELDK 5.2 \
  9. "
  10. IMAGE_INSTALL = "base-files \
  11. base-passwd \
  12. busybox \
  13. mtd-utils \
  14. mtd-utils-ubifs \
  15. libconfig \
  16. swupdate \
  17. swupdate-www \
  18. sysvinit \
  19. util-linux-sfdisk \
  20. initscripts \
  21. "
  22. USE_DEVFS = "1"
  23. #IMAGE_DEVICE_TABLES = "files/device_table-minimal.txt"
  24. LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
  25. file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \
  26. "
  27. # This variable is triggered to check if sysvinit must be overwritten by a single rcS
  28. export SYSVINIT = "no"
  29. LICENSE = "MIT"
  30. IMAGE_CLASSES += " image_types_uboot"
  31. IMAGE_FSTYPES = "ext3.gz.u-boot"
  32. IMAGE_ROOTFS_SIZE = "8192"
  33. inherit image
  34. remove_locale_data_files() {
  35. printf "Post processing local %s\n" ${IMAGE_ROOTFS}${libdir}/locale
  36. rm -rf ${IMAGE_ROOTFS}${libdir}/locale
  37. }
  38. fix_inittab_swupdate () {
  39. sed -e 's/1\:2345.*/1\:2345:respawn:\/bin\/sh/' \
  40. "${IMAGE_ROOTFS}${sysconfdir}/inittab" | \
  41. sed -e 's/^z6/#&/' | \
  42. sed -e 's/.*getty.*//' \
  43. > "${IMAGE_ROOTFS}${sysconfdir}/inittab.swupdate"
  44. rm ${IMAGE_ROOTFS}${sysconfdir}/inittab
  45. mv ${IMAGE_ROOTFS}${sysconfdir}/inittab.swupdate ${IMAGE_ROOTFS}${sysconfdir}/inittab
  46. }
  47. exchange_rcs () {
  48. rm ${IMAGE_ROOTFS}${sysconfdir}/init.d/rcS
  49. mv ${IMAGE_ROOTFS}${sysconfdir}/init.d/rcS.swupdate \
  50. ${IMAGE_ROOTFS}${sysconfdir}/init.d/rcS
  51. }
  52. # remove not needed ipkg informations
  53. ROOTFS_POSTPROCESS_COMMAND += "remove_locale_data_files ; "
  54. ROOTFS_POSTPROCESS_COMMAND += "fix_inittab_swupdate ; "
  55. #ROOTFS_POSTPROCESS_COMMAND += "exchange_rcs ; "