README 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. meta-swupdate, Yocto layer for deploy tool
  2. ==========================================
  3. This layer's purpose is to add support for a deployment
  4. mechanism of Yocto's images based on swupdate project.
  5. Layer dependencies
  6. ------------------
  7. This layer depends on:
  8. URI: git://github.com/openembedded/meta-openembedded.git
  9. subdirectory: meta-oe
  10. BitBake variable expansion
  11. --------------------------
  12. To insert the values of BitBake variables into the update file, pre- and postfix
  13. the names with "@@". For example, to automatically set the version tag, use the
  14. line `version = "@@DISTRO_VERSION@@";` in your sw-description file.
  15. Image hashing
  16. -------------
  17. During creation of the update file, occurrences of @IMAGE (where IMAGE is an
  18. image filename) are replaced with the sha256 hash of the image.
  19. BitBake auto versions
  20. ---------------------
  21. By setting the version tag in the update file to `@SWU_AUTO_VERSION` it is
  22. automatically replaced with `PV` from BitBake's package-data-file for the package
  23. matching the name of the provided filename tag.
  24. Since the filename can differ from package name (deployed with another name or
  25. the file is a container for the real package) you can append the correct package
  26. name to the tag:
  27. `@SWU_AUTO_VERSION:<package-name>`
  28. SWU image signing
  29. ------------
  30. There are 3 signing mechanisms supported by meta-swupdate at the moment:
  31. 1. RSA signing:
  32. * Set variable: `SWUPDATE_SIGNING = "RSA"`
  33. * Set `SWUPDATE_PRIVATE_KEY` to the full path of private key file
  34. 2. CMS signing:
  35. * Set variable: `SWUPDATE_SIGNING = "CMS"`
  36. * Set `SWUPDATE_CMS_CERT` to the full path of certificate file
  37. * Set `SWUPDATE_CMS_KEY ` to the full path of private key file
  38. 3. Custom signing tool:
  39. * Set variable: `SWUPDATE_SIGNING = "CUSTOM"`
  40. * Set variable `SWUPDATE_SIGN_TOOL' to custom string that needs to be
  41. executed in order to perform the signing
  42. sw-description is signed and the signature is written to sw-description.sig
  43. which is included in the SWU file.
  44. Encrypted private keys are not currently supported since a secure
  45. mechanism must exist to provide the passphrase.
  46. Maintainer
  47. ----------
  48. Stefano Babic <sbabic@denx.de>
  49. Submitting patches
  50. ------------------
  51. You can submit your patches (or post questions reagarding
  52. this layer to the swupdate Mailing List:
  53. swupdate@googlegroups.com
  54. When creating patches, please use something like:
  55. git format-patch -s --subject-prefix='meta-swupdate][PATCH' <revision range>
  56. Please use 'git send-email' to send the generated patches to the ML
  57. to bypass changes from your mailer.