Advertisement
Guest User

Untitled

a guest
May 20th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. # extends recipes from: meta-arcure/recipes-omniorb
  2. PRINC := "${@int(PRINC) + 1}"
  3.  
  4. # fix licensing
  5. LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=dcf3c825659e82539645da41a7908589"
  6.  
  7. # fix configuration for nativesdk
  8. FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  9. ## RB: useless since EXTRA_OECONF for python path
  10. SRC_URI_append_virtclass-nativesdk += "file://omniORB-nativesdk.patch"
  11.  
  12. ### RB: force python to installed python (env python)
  13. #SRC_URI += "file://omniORB-python.patch \
  14. # file://omniORB-arm.patch \
  15. #"
  16. DEPENDS_virtclass-nativesdk += "python-native"
  17.  
  18. # add python modules and avoid QA issues with .debug subdirectory
  19. FILES_${PN} += "${libdir}/python2.*/site-packages"
  20. FILES_${PN}-dbg += "${libdir}/python2.*/site-packages/.debug"
  21.  
  22. #EXTRA_OECONF += "PYTHON='/usr/bin/env python'"
  23. #EXTRA_OECONF_virtclass-native += "PYTHON='${STAGING_DIR_NATIVE}/usr/bin/python-native/python'"
  24. #EXTRA_OECONF_virtclass-nativesdk += "PYTHON='${PYTHON}'"
  25.  
  26. # RB: ugly patch (specific to x86 machines)
  27. #LDFLAGS_append_x86-64_virtclass-nativesdk = " -Wl,--dynamic-linker=${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"
  28. #LDFLAGS_append_i686_virtclass-nativesdk = " -Wl,--dynamic-linker=${STAGING_DIR_NATIVE}/lib/ld-linux.so.2"
  29.  
  30. #do_compile_virtclass-nativesdk () {
  31. # # http://www.omniorb-support.com/omniwiki/CrossCompiling
  32. # bbnote "Compile tools for cross-compiling"
  33. # make -C src/tool/omniidl/cxx/cccp
  34. # make -C src/tool/omniidl/cxx
  35. # make -C src/tool/omkdepend
  36. # bbnote "test..."
  37. # (cd src ; make export)
  38. #}
  39.  
  40. #EXECUTABLE_LIBRARIES_virtclass-nativesdk = "${WORKDIR}/image/${SDKPATHNATIVE}/usr/lib/lib*"
  41. #EMBEDDEDSYSTEM_virtclass-nativesdk = ""
  42. #
  43. ##do_compile_for_native_arch () {
  44. ## # disable EmbeddedSystem flag
  45. ## unset EmbeddedSystem
  46. ## # http://www.omniorb-support.com/omniwiki/CrossCompiling
  47. ## # (does not work at all. Should work when not using cross-canadian ?)
  48. ## #bbnote "Compile tools for cross-compiling"
  49. ## #make CC=gcc -C src/tool/omniidl/cxx/cccp
  50. ## #make CXX=g++ -C src/tool/omniidl/cxx
  51. ## #make CC=gcc -C src/tool/omkdepend
  52. ## export TOOLBINDIR=${STAGING_BINDIR_NATIVE}
  53. ##
  54. ## bbnote "making using native toolchain..."
  55. ## make CC=gcc -C src/tool/omniidl/cxx/cccp
  56. ## make CXX=g++ -C src/tool/omniidl/cxx
  57. ## make CC=gcc -C src/tool/omkdepend
  58. ## oe_runmake
  59. ##}
  60. ##
  61. ##do_compile_virtclass-native () {
  62. ## do_compile_for_native_arch
  63. ##}
  64. ##
  65. ##do_compile_virtclass-nativesdk () {
  66. ## do_compile_for_native_arch
  67. ##}
  68. #
  69. #do_install_prepend () {
  70. # echo =======================================
  71. # echo == global variables
  72. # echo LOG_DIR=${LOG_DIR}
  73. # echo MACHINE=${MACHINE}
  74. # echo == recipe variables
  75. # echo PN=${PN}
  76. # echo PV=${PV}
  77. # echo P=${P}
  78. # echo WORKDIR=${WORKDIR}
  79. # echo S=${S}
  80. # echo B=${B}
  81. # echo D=${D}
  82. # echo TARGET_PREFIX=${TARGET_PREFIX}
  83. # echo TARGET_SYS=${TARGET_SYS}
  84. # echo RUNTIMETARGET=${TARGET_SYS}
  85. # echo "== autotools specific (?)"
  86. # echo includedir=${includedir}
  87. # echo bindir=${bindir}
  88. # echo mandir=${mandir}
  89. # echo infodir=${infodir}
  90. # echo libexecdir=${libexecdir}
  91. # echo =======================================
  92. #}
  93. #
  94. #do_install_append () {
  95. # if [ "${EMBEDDEDSYSTEM}" == "1" ] ; then
  96. # install -d ${D}/${SDKPATHNATIVE}/${bindir}
  97. # install -d ${D}/${SDKPATHNATIVE}/${libdir}
  98. # install ${S}/bin/omniidl ${D}/${SDKPATHNATIVE}/${bindir}
  99. # install ${S}/lib/omnicpp ${D}/${SDKPATHNATIVE}/${libdir}
  100. # fi
  101. #}
  102.  
  103. BBCLASSEXTEND = "native nativesdk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement