Advertisement
Guest User

safplus_rocko_recipe

a guest
Dec 12th, 2017
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 0 0
  1. DESCRIPTION = "The canonical example of init scripts"
  2. SECTION = "base"
  3. LICENSE = "GPLv2"
  4. LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
  5. PR = "r0"
  6.  
  7. BB_STRICT_CHECKSUM = "0"
  8.  
  9. DEPENDS = "sqlite3 glib-2.0 gdbm db"
  10. RDEPENDS_${PN} = "sqlite3 glib-2.0 gdbm db"
  11. RPROVIDES_${PN} += "libClUtils.so libmw.so libClDbal.so"
  12.  
  13. # SRCREV = "acb7eeed075e44a4d3265541781c6c7efe21f8b4"
  14.  
  15. SRCREV = "${AUTOREV}"
  16. SRC_URI = "git://github.com/OpenClovis/SAFplus-Availability-Scalability-Platform"
  17.  
  18. # SRC_URI = "git://git@gitlab.com/kostaz/SAFplus-Availability-Scalability-Platform.git;protocol=ssh;branch=v6.0.1_mrv_tc_lk_4_4"
  19. # https://chmorgan.blogspot.co.il/2014/05/yocto-recipe-srcuri-for-bitbucket.html
  20. # SRC_URI = "git://git@bitbucket.org/cmorgan/somerepository.git;protocol=ssh"
  21.  
  22. S = "${WORKDIR}/git"
  23.  
  24. inherit autotools pkgconfig
  25.  
  26. EXTRA_OEMAKE = "'CC=${CC} -Wformat-truncation=0 -Wformat-overflow=0 -Wshift-overflow=0'"
  27. PARALLEL_MAKE = ""
  28.  
  29. # -Wformat-truncation=
  30.  
  31. OC_SDK = "${WORKDIR}/clovis"
  32. OC_ASP_BUILD = "${WORKDIR}/asp_build"
  33.  
  34. OC_TARGET_DIR = "${prefix}/target/${TARGET_ARCH}/${TARGET_OS}"
  35.  
  36. EXTRA_OECONF = " \
  37. --with-sdk-dir=${OC_SDK} \
  38. --with-safplus-build \
  39. --without-snmp-build \
  40. --prefix=${D}${prefix} \
  41. "
  42.  
  43. do_configure () {
  44.  
  45. mkdir -p ${OC_SDK}/6.1/sdk
  46. mkdir -p ${OC_SDK}/6.1/buildtools/yocto
  47. mkdir -p ${OC_ASP_BUILD}
  48. cd ${OC_ASP_BUILD}
  49.  
  50. TARGET=${TARGET_OS} \
  51. ARCH=${TARGET_ARCH} \
  52. MARCH=${TARGET_ARCH} \
  53. ${S}/src/SAFplus/configure ${EXTRA_OECONF}
  54. }
  55.  
  56. do_compile () {
  57. cd ${OC_ASP_BUILD}/asp/build/local
  58. oe_runmake V=1
  59. }
  60.  
  61. do_install () {
  62. cd ${OC_ASP_BUILD}/asp/build/local
  63. make safplus-install
  64. }
  65.  
  66. INSANE_SKIP_${PN} += "dev-so libdir"
  67. INSANE_SKIP_${PN}-dbg += "libdir"
  68.  
  69. FILES_${PN}-dbg += " ${OC_TARGET_DIR}/lib/.debug ${OC_TARGET_DIR}/lib/shared-*/.debug"
  70. FILES_${PN}-staticdev += " ${OC_TARGET_DIR}/lib/*.a"
  71. FILES_${PN} += " ${OC_TARGET_DIR}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement