Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # extends recipes from: meta-arcure/recipes-omniorb
- PRINC := "${@int(PRINC) + 1}"
- # fix licensing
- LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=dcf3c825659e82539645da41a7908589"
- # fix configuration for nativesdk
- FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
- ## RB: useless since EXTRA_OECONF for python path
- SRC_URI_append_virtclass-nativesdk += "file://omniORB-nativesdk.patch"
- ### RB: force python to installed python (env python)
- #SRC_URI += "file://omniORB-python.patch \
- # file://omniORB-arm.patch \
- #"
- DEPENDS_virtclass-nativesdk += "python-native"
- # add python modules and avoid QA issues with .debug subdirectory
- FILES_${PN} += "${libdir}/python2.*/site-packages"
- FILES_${PN}-dbg += "${libdir}/python2.*/site-packages/.debug"
- #EXTRA_OECONF += "PYTHON='/usr/bin/env python'"
- #EXTRA_OECONF_virtclass-native += "PYTHON='${STAGING_DIR_NATIVE}/usr/bin/python-native/python'"
- #EXTRA_OECONF_virtclass-nativesdk += "PYTHON='${PYTHON}'"
- # RB: ugly patch (specific to x86 machines)
- #LDFLAGS_append_x86-64_virtclass-nativesdk = " -Wl,--dynamic-linker=${STAGING_DIR_NATIVE}/lib/ld-linux-x86-64.so.2"
- #LDFLAGS_append_i686_virtclass-nativesdk = " -Wl,--dynamic-linker=${STAGING_DIR_NATIVE}/lib/ld-linux.so.2"
- #do_compile_virtclass-nativesdk () {
- # # http://www.omniorb-support.com/omniwiki/CrossCompiling
- # bbnote "Compile tools for cross-compiling"
- # make -C src/tool/omniidl/cxx/cccp
- # make -C src/tool/omniidl/cxx
- # make -C src/tool/omkdepend
- # bbnote "test..."
- # (cd src ; make export)
- #}
- #EXECUTABLE_LIBRARIES_virtclass-nativesdk = "${WORKDIR}/image/${SDKPATHNATIVE}/usr/lib/lib*"
- #EMBEDDEDSYSTEM_virtclass-nativesdk = ""
- #
- ##do_compile_for_native_arch () {
- ## # disable EmbeddedSystem flag
- ## unset EmbeddedSystem
- ## # http://www.omniorb-support.com/omniwiki/CrossCompiling
- ## # (does not work at all. Should work when not using cross-canadian ?)
- ## #bbnote "Compile tools for cross-compiling"
- ## #make CC=gcc -C src/tool/omniidl/cxx/cccp
- ## #make CXX=g++ -C src/tool/omniidl/cxx
- ## #make CC=gcc -C src/tool/omkdepend
- ## export TOOLBINDIR=${STAGING_BINDIR_NATIVE}
- ##
- ## bbnote "making using native toolchain..."
- ## make CC=gcc -C src/tool/omniidl/cxx/cccp
- ## make CXX=g++ -C src/tool/omniidl/cxx
- ## make CC=gcc -C src/tool/omkdepend
- ## oe_runmake
- ##}
- ##
- ##do_compile_virtclass-native () {
- ## do_compile_for_native_arch
- ##}
- ##
- ##do_compile_virtclass-nativesdk () {
- ## do_compile_for_native_arch
- ##}
- #
- #do_install_prepend () {
- # echo =======================================
- # echo == global variables
- # echo LOG_DIR=${LOG_DIR}
- # echo MACHINE=${MACHINE}
- # echo == recipe variables
- # echo PN=${PN}
- # echo PV=${PV}
- # echo P=${P}
- # echo WORKDIR=${WORKDIR}
- # echo S=${S}
- # echo B=${B}
- # echo D=${D}
- # echo TARGET_PREFIX=${TARGET_PREFIX}
- # echo TARGET_SYS=${TARGET_SYS}
- # echo RUNTIMETARGET=${TARGET_SYS}
- # echo "== autotools specific (?)"
- # echo includedir=${includedir}
- # echo bindir=${bindir}
- # echo mandir=${mandir}
- # echo infodir=${infodir}
- # echo libexecdir=${libexecdir}
- # echo =======================================
- #}
- #
- #do_install_append () {
- # if [ "${EMBEDDEDSYSTEM}" == "1" ] ; then
- # install -d ${D}/${SDKPATHNATIVE}/${bindir}
- # install -d ${D}/${SDKPATHNATIVE}/${libdir}
- # install ${S}/bin/omniidl ${D}/${SDKPATHNATIVE}/${bindir}
- # install ${S}/lib/omnicpp ${D}/${SDKPATHNATIVE}/${libdir}
- # fi
- #}
- BBCLASSEXTEND = "native nativesdk"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement