Advertisement
penguin359

Binary Bitbake Recipe

Oct 30th, 2019
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  1. SUMMARY = "My Package"
  2. DESCRIPTION = "It does something cool"
  3. SECTION = "base"
  4. PR = "r0"
  5. LICENSE = "CLOSED"
  6.  
  7. SRC_URI = "file://package_binaries.zip \
  8.           file://package.service"
  9.  
  10. FILESPATH_append = ":/opt/package-${PV}/images"
  11.  
  12. S = "${WORKDIR}"
  13.  
  14. do_compile[noexec] = "1"
  15.  
  16. do_install() {
  17.     install -m 755 -d ${D}${bindir} ${D}${sysconfdir}/systemd/system/multi-user.target.wants
  18.     install -m 755 ${S}/agent ${D}${bindir}/agent
  19.     install -m 644 ${WORKDIR}/package.service ${D}${sysconfdir}/systemd/system
  20.     ln -s ../package.service ${D}${sysconfdir}/systemd/system/multi-user.target.wants/
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement