wmxml2: don't do out-of-tree builds manually
PATCH 1/5 wmxml2: don't do out-of-tree builds manually
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that functionality instead of passing arguments to EXTRA_OECMAKE and _prepends.
--- meta-oe/recipes-support/opensync/wbxml2_0.10.8.bb | 10 ---------- 1 file changed, 10 deletions(-)
meta-oe/recipes-support/opensync/wbxml2_0.10.8.bb +0 -10
@@ -15,17 +15,7 @@ S = "${WORKDIR}/libwbxml-${PV}" inherit cmake pkgconfig -EXTRA_OECMAKE += " . -B${WORKDIR}/build " - PACKAGES += "${PN}-tools" FILES_${PN}-tools = "${bindir}" FILES_${PN} = "${libdir}/*.so.*" - -do_build_prepend() { - cd ${WORKDIR}/build -} - -do_install_prepend() { - cd ${WORKDIR}/build -}
Signature · 1 line
1.7.10.4
PATCH 2/5 llvm: don't do out-of-tree builds manually
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that functionality directly to clean up the recipe.
--- meta-oe/recipes-core/llvm/llvm2.inc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
meta-oe/recipes-core/llvm/llvm2.inc +3 -8
@@ -20,13 +20,8 @@ LLVM_RELEASE = "${PV}" BBCLASSEXTEND = "native" -LLVM_BUILD_DIR = "${B}/build" LLVM_INSTALL_DIR = "${B}/llvm-install" -# llvm *must* be built out of tree -OECMAKE_SOURCEPATH = ".." -OECMAKE_BUILDPATH = "build" - # other architectures require X86 available, LLVM_EXTRA_ARCH = "X86;" LLVM_EXTRA_ARCH_x86 = ""
@@ -73,7 +68,7 @@ base_do_compile_prepend() { do_install() { # Install into a private directory to be able to reorganize the files. - cd ${LLVM_BUILD_DIR} + cd ${B} oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install # Create our custom target directories
@@ -101,7 +96,7 @@ do_install() { SYSROOT_PREPROCESS_FUNCS_append_class-target = " llvm_sysroot_preprocess" llvm_sysroot_preprocess() { - cd ${LLVM_BUILD_DIR} + cd ${B} # Fix the paths in the config script to make it find the binaries and # library files. Doing so allows 3rd party configure scripts working
@@ -118,7 +113,7 @@ llvm_sysroot_preprocess() { do_install_class-native() { # Install into a private directory to be able to reorganize the files. - cd ${LLVM_BUILD_DIR} + cd ${B} oe_runmake DESTDIR=${LLVM_INSTALL_DIR} install # Create our custom target directories
Signature · 1 line
1.7.10.4
Re: [meta-oe][PATCH 2/5] llvm: don't do out-of-tree builds manually
Quoted 6 lines · Ross Burton
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that
functionality directly to clean up the recipe.Signed-off-by Ross Burton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 3/5 libssh: don't do out-of-tree builds manually
In reply to Ross Burtoncmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that functionality instead of OECMAKE_BUILDPATH/_SOURCEPATH which are no longer used.
--- meta-oe/recipes-support/libssh/libssh_git.bb | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
meta-oe/recipes-support/libssh/libssh_git.bb +2 -5
@@ -12,20 +12,17 @@ SRC_URI = "git://git.libssh.org/projects/libssh.git;branch=v0-5" SRCREV = "43914a5f07702fe292a968322d5ff2627e0431db" S = "${WORKDIR}/git" -OECMAKE_BUILDPATH = "${S}/build" -OECMAKE_SOURCEPATH = "${S}" EXTRA_OECMAKE = " \ -DWITH_GCRYPT=1 \ -DWITH_PCAP=1 \ -DWITH_SFTP=1 \ -DWITH_ZLIB=1 \ " -EXTRA_OEMAKE = "-C ${OECMAKE_BUILDPATH}" inherit cmake do_configure_prepend () { # Disable building of examples - sed -i -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' CMakeLists.txt \ - || bb_fatal "Failed to disable examples" + sed -i -e '/add_subdirectory(examples)/s/^/#DONOTWANT/' ${S}/CMakeLists.txt \ + || bbfatal "Failed to disable examples" }
Signature · 1 line
1.7.10.4
Re: [meta-oe][PATCH 3/5] libssh: don't do out-of-tree builds manually
Quoted 7 lines · Ross Burton
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that
functionality instead of OECMAKE_BUILDPATH/_SOURCEPATH which are no longer used.Signed-off-by Ross Burton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 4/5 libsyncml: don't do out-of-tree builds manually
In reply to Ross Burtoncmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that functionality instead of passing arguments to EXTRA_OECMAKE and _prepends.
--- meta-oe/recipes-support/opensync/libsyncml_0.5.4.bb | 10 ---------- 1 file changed, 10 deletions(-)
meta-oe/recipes-support/opensync/libsyncml_0.5.4.bb +0 -10
@@ -13,17 +13,7 @@ SRC_URI[sha256sum] = "05d6513637adb1300a3a58b6e29d53ab6373c8f370807d0d925bae72b2 inherit cmake pkgconfig -EXTRA_OECMAKE += " . -B${WORKDIR}/build " - PACKAGES += "${PN}-tools" FILES_${PN}-tools = "${bindir}" FILES_${PN} = "${libdir}/*.so.*" - -do_build_prepend() { - cd ${WORKDIR}/build -} - -do_install_prepend() { - cd ${WORKDIR}/build -}
Signature · 1 line
1.7.10.4
Re: [meta-oe][PATCH 4/5] libsyncml: don't do out-of-tree builds manually
Quoted 6 lines · Ross Burton
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that
functionality instead of passing arguments toEXTRA_OECMAKEand_prepends.Signed-off-by Ross Burton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 5/5 libsyncml: move build dependencies from RRECOMMENDS to DEPENDS
In reply to Ross BurtonPutting build dependencies into RRECOMMENDS isn't going to work, so move them to DEPENDS.
--- meta-oe/recipes-support/opensync/libsyncml_0.5.4.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-oe/recipes-support/opensync/libsyncml_0.5.4.bb +1 -2
@@ -4,8 +4,7 @@ SECTION = "libs" LICENSE = "LGPLv2.1" LIC_FILES_CHKSUM = "file://COPYING;md5=fad9b3332be894bab9bc501572864b29" -DEPENDS = "libxml2 glib-2.0" -RRECOMMENDS_${PN} = "wbxml2 openobex libsoup-2.4" +DEPENDS = "libxml2 glib-2.0 libsoup-2.4 openobex wbxml2" SRC_URI = "${SOURCEFORGE_MIRROR}/libsyncml/libsyncml-${PV}.tar.gz" SRC_URI[md5sum] = "84879ed7cb94618530fbcb801a1a4f95"
Signature · 1 line
1.7.10.4
Re: [meta-oe][PATCH 5/5] libsyncml: move build dependencies from RRECOMMENDS to DEPENDS
Quoted 6 lines · Ross Burton
Putting build dependencies into RRECOMMENDS isn't going to work, so move them to
DEPENDS.Signed-off-by Ross Burton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
Quoted 6 lines · Ross Burton
cmake.bbclass as of oe-core 783fb88 defaults to out-of-tree builds. Use that
functionality instead of passing arguments toEXTRA_OECMAKEand_prepends.Signed-off-by Ross Burton <[email protected]>
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750