Advertisement
Guest User

Untitled

a guest
May 20th, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. inherit nativesdk
  2.  
  3. CONFIG_NAME = "odb-gcc-X"
  4. B = "${WORKDIR}/build2"
  5.  
  6. # We must have a valid configuration before fetching
  7. do_fetch_prepend() {
  8. install -d ${B}
  9. bpkg create -d ${B}/${CONFIG_NAME} cc \
  10. --wipe \
  11. config.cxx=g++ \
  12. config.cc.coptions=-O3 \
  13. config.install.root=${D}/usr
  14. }
  15.  
  16. do_fetch() {
  17. bpkg fetch --trust-yes \
  18. --directory ${B}/${CONFIG_NAME} https://pkg.cppget.org/1/beta
  19. }
  20.  
  21. do_compile() {
  22. bpkg build odb -y ${PARALLEL_MAKE} --directory ${B}/${CONFIG_NAME}
  23. }
  24.  
  25. do_install() {
  26. bpkg install odb --verbose 3 --directory ${B}/${CONFIG_NAME}
  27. }
  28.  
  29. FILES_${PN}_append = " ${SDKPATHNATIVE}"
  30. FILES_${PN}_append = " /usr/*"
  31.  
  32. #BBCLASSEXTEND = "native nativesdk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement