README 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. SWU image signing
  20. ------------
  21. There are 3 signing mechanisms supported by meta-swupdate at the moment:
  22. 1. RSA signing:
  23. * Set variable: `SWUPDATE_SIGNING = "RSA"`
  24. * Set `SWUPDATE_PRIVATE_KEY` to the full path of private key file
  25. 2. CMS signing:
  26. * Set variable: `SWUPDATE_SIGNING = "CMS"`
  27. * Set `SWUPDATE_CMS_CERT` to the full path of certificate file
  28. * Set `SWUPDATE_CMS_KEY ` to the full path of private key file
  29. 3. Custom signing tool:
  30. * Set variable: `SWUPDATE_SIGNING = "CUSTOM"`
  31. * Set variable `SWUPDATE_SIGN_TOOL' to custom string that needs to be
  32. executed in order to perform the signing
  33. sw-description is signed and the signature is written to sw-description.sig
  34. which is included in the SWU file.
  35. Encrypted private keys are not currently supported since a secure
  36. mechanism must exist to provide the passphrase.
  37. Maintainer
  38. ----------
  39. Stefano Babic <sbabic@denx.de>
  40. Submitting patches
  41. ------------------
  42. You can submit your patches (or post questions reagarding
  43. this layer to the swupdate Mailing List:
  44. swupdate@googlegroups.com
  45. When creating patches, please use something like:
  46. git format-patch -s --subject-prefix='meta-swupdate][PATCH' <revision range>
  47. Please use 'git send-email' to send the generated patches to the ML
  48. to bypass changes from your mailer.