Advertisement
Guest User

Untitled

a guest
Aug 31st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #
  2. # The goal of this recipe is to move keyFile to target machine so it can be used as public key for
  3. # authoriztion of deb repo.
  4. #
  5. # Author: Yahia Farghaly
  6.  
  7. SUMMARY = "Move keyFile example to /deb_key"
  8. SECTION = "examples"
  9. LICENSE = "MIT"
  10. LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
  11.  
  12. SRC_URI = "file://keyFile"
  13.  
  14. #to inform yocto where to package the file
  15. # https://stackoverflow.com/questions/33912477/how-can-i-add-a-folder-or-file-to-the-root-in-a-recipe-with-bitbake
  16. FILES_${PN} += "/deb_key"
  17.  
  18. S = "${WORKDIR}"
  19.  
  20.  
  21. do_install() {
  22. install -d ${D}/deb_key
  23. install -m 0755 keyFile ${D}/deb_key
  24. }
  25.  
  26.  
  27. #bash prepare_source_list.sh
  28. #mv ~/sources.list ${D}/etc/apt/sources.list
  29. #rm ~/sources.list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement