summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-11-28 13:07:43 -0800
committerMartin Jansa <Martin.Jansa@gmail.com>2016-12-02 09:26:19 +0100
commit0288b204f3c12af1561218fa0cfcdfb9a5508b47 (patch)
tree2ed29173d90350223cf10172a17e40646b29d2ac /meta-oe/recipes-connectivity
parentc476219e845934f767927e81fe60dbaa157df9ee (diff)
downloadmeta-openembedded-0288b204f3c12af1561218fa0cfcdfb9a5508b47.tar.gz
openobex,obexftp: Update recipes
Update obexftp to 0.24.2 and openobex to 1.7.2 These packages moved to CMake infra for builds therefore make adjustments to cross compile it Add packageconfig options for fuse and swig Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity')
-rw-r--r--meta-oe/recipes-connectivity/obex/openobex/disable-cable-test.patch (renamed from meta-oe/recipes-connectivity/obex/openobex-1.5/disable-cable-test.patch)0
-rw-r--r--meta-oe/recipes-connectivity/obex/openobex/libusb_crosscompile_check.patch (renamed from meta-oe/recipes-connectivity/obex/openobex-1.5/libusb_crosscompile_check.patch)0
-rw-r--r--meta-oe/recipes-connectivity/obex/openobex/separate_builddir.patch (renamed from meta-oe/recipes-connectivity/obex/openobex-1.5/separate_builddir.patch)0
-rw-r--r--meta-oe/recipes-connectivity/obex/openobex_1.5.bb35
-rw-r--r--meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb37
-rw-r--r--meta-oe/recipes-connectivity/obexftp/obexftp/0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch66
-rw-r--r--meta-oe/recipes-connectivity/obexftp/obexftp/make_fuse_swig_optional.patch24
-rw-r--r--meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb16
-rw-r--r--meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb41
9 files changed, 168 insertions, 51 deletions
diff --git a/meta-oe/recipes-connectivity/obex/openobex-1.5/disable-cable-test.patch b/meta-oe/recipes-connectivity/obex/openobex/disable-cable-test.patch
index 95b636dd8..95b636dd8 100644
--- a/meta-oe/recipes-connectivity/obex/openobex-1.5/disable-cable-test.patch
+++ b/meta-oe/recipes-connectivity/obex/openobex/disable-cable-test.patch
diff --git a/meta-oe/recipes-connectivity/obex/openobex-1.5/libusb_crosscompile_check.patch b/meta-oe/recipes-connectivity/obex/openobex/libusb_crosscompile_check.patch
index 1177dfeac..1177dfeac 100644
--- a/meta-oe/recipes-connectivity/obex/openobex-1.5/libusb_crosscompile_check.patch
+++ b/meta-oe/recipes-connectivity/obex/openobex/libusb_crosscompile_check.patch
diff --git a/meta-oe/recipes-connectivity/obex/openobex-1.5/separate_builddir.patch b/meta-oe/recipes-connectivity/obex/openobex/separate_builddir.patch
index 8abf8ae24..8abf8ae24 100644
--- a/meta-oe/recipes-connectivity/obex/openobex-1.5/separate_builddir.patch
+++ b/meta-oe/recipes-connectivity/obex/openobex/separate_builddir.patch
diff --git a/meta-oe/recipes-connectivity/obex/openobex_1.5.bb b/meta-oe/recipes-connectivity/obex/openobex_1.5.bb
deleted file mode 100644
index 6ac790598..000000000
--- a/meta-oe/recipes-connectivity/obex/openobex_1.5.bb
+++ /dev/null
@@ -1,35 +0,0 @@
1DESCRIPTION = "The Openobex project is an open source implementation of the \
2Object Exchange (OBEX) protocol."
3HOMEPAGE = "http://openobex.triq.net"
4SECTION = "libs"
5DEPENDS = "virtual/libusb0"
6DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','bluez5','bluez5','bluez4',d)}"
7
8LICENSE = "GPLv2 & LGPLv2.1"
9LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
10 file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \
11"
12
13SRC_URI = "http://www.kernel.org/pub/linux/bluetooth/openobex-${PV}.tar.gz \
14 file://disable-cable-test.patch \
15 file://libusb_crosscompile_check.patch \
16 file://separate_builddir.patch"
17
18SRC_URI[md5sum] = "0d83dc86445a46a1b9750107ba7ab65c"
19SRC_URI[sha256sum] = "e602047570799a47ecb028420bda8f2cef41310e5a99d084de10aa9422935e65"
20
21inherit autotools binconfig pkgconfig
22
23EXTRA_OECONF = "--enable-apps --enable-syslog"
24
25do_install_append() {
26 install -d ${D}${datadir}/aclocal
27 install -m 0644 ${S}/openobex.m4 ${D}${datadir}/aclocal
28}
29
30PACKAGES += "openobex-apps"
31FILES_${PN} = "${libdir}/lib*.so.*"
32FILES_${PN}-dev += "${bindir}/openobex-config"
33FILES_${PN}-apps = "${bindir}/*"
34DEBIAN_NOAUTONAME_${PN}-apps = "1"
35
diff --git a/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb b/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb
new file mode 100644
index 000000000..053c80a84
--- /dev/null
+++ b/meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb
@@ -0,0 +1,37 @@
1DESCRIPTION = "The Openobex project is an open source implementation of the \
2Object Exchange (OBEX) protocol."
3HOMEPAGE = "http://openobex.triq.net"
4SECTION = "libs"
5DEPENDS = "virtual/libusb0"
6DEPENDS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES','bluez5','bluez5','bluez4',d)}"
7
8LICENSE = "GPLv2 & LGPLv2.1"
9LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
10 file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \
11"
12
13SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}/${PV}/${BP}-Source.tar.gz \
14"
15
16SRC_URI[md5sum] = "f6e0b6cb7dcfd731460a7e9a91429a3a"
17SRC_URI[sha256sum] = "158860aaea52f0fce0c8e4b64550daaae06df2689e05834697b7e8c7d73dd4fc"
18
19inherit cmake pkgconfig
20
21S = "${WORKDIR}/${BP}-Source"
22
23EXTRA_OECONF = " -DCMAKE_SKIP_RPATH=ON "
24
25#--enable-apps --enable-syslog
26
27do_install_append () {
28 rmdir ${D}${bindir}
29}
30
31PACKAGES =+ "openobex-apps"
32FILES_${PN}-apps = "${bindir}/*"
33FILES_${PN} += "${libdir}/lib*.so.*"
34FILES_${PN}-dev += "${bindir}/openobex-config ${libdir}/cmake"
35DEBIAN_NOAUTONAME_${PN}-apps = "1"
36
37BBCLASSEXTEND = "native"
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp/0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch b/meta-oe/recipes-connectivity/obexftp/obexftp/0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch
new file mode 100644
index 000000000..1f6de87c8
--- /dev/null
+++ b/meta-oe/recipes-connectivity/obexftp/obexftp/0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch
@@ -0,0 +1,66 @@
1From b8dc608dad7d9fc3a4c16acd0327d97b81c23b95 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 15 Nov 2016 01:32:31 +0000
4Subject: [PATCH] apps/CMakeLists.txt: Explicitly link libbfb and libmulticobex
5
6Transitive linking is disabled now for multicobex and
7obexftp, This ends up with linking errors for apps, therefore
8they are required to be added to link line explicitly.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 apps/CMakeLists.txt | 13 +++++++++++--
13 1 file changed, 11 insertions(+), 2 deletions(-)
14
15Index: obexftp-0.24.2-Source/apps/CMakeLists.txt
16===================================================================
17--- obexftp-0.24.2-Source.orig/apps/CMakeLists.txt
18+++ obexftp-0.24.2-Source/apps/CMakeLists.txt
19@@ -5,14 +5,23 @@ add_definitions( -DVERSION="${obexftp_VE
20 add_definitions ( -DHAVE_USB )
21
22 add_executable ( obexftp_app obexftp.c )
23-target_link_libraries ( obexftp_app obexftp )
24+target_link_libraries ( obexftp_app
25+ PRIVATE multicobex
26+ PRIVATE bfb
27+ obexftp
28+)
29 set_target_properties ( obexftp_app PROPERTIES
30 OUTPUT_NAME obexftp
31 )
32
33
34 add_executable ( obexftpd_app obexftpd.c )
35-target_link_libraries ( obexftpd_app obexftp openobex )
36+target_link_libraries ( obexftpd_app
37+ PRIVATE multicobex
38+ PRIVATE bfb
39+ obexftp
40+ openobex
41+)
42 set_target_properties ( obexftpd_app PROPERTIES
43 OUTPUT_NAME obexftpd
44 )
45Index: obexftp-0.24.2-Source/fuse/CMakeLists.txt
46===================================================================
47--- obexftp-0.24.2-Source.orig/fuse/CMakeLists.txt
48+++ obexftp-0.24.2-Source/fuse/CMakeLists.txt
49@@ -13,6 +13,8 @@ if ( Fuse_FOUND )
50 )
51
52 target_link_libraries ( obexfs
53+ PRIVATE multicobex
54+ PRIVATE bfb
55 obexftp
56 ${Fuse_LIBRARIES}
57 ${EXPAT_LIBRARIES}
58@@ -23,6 +25,8 @@ if ( Fuse_FOUND )
59 )
60
61 target_link_libraries ( obexautofs
62+ PRIVATE multicobex
63+ PRIVATE bfb
64 obexftp
65 ${Fuse_LIBRARIES}
66 )
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp/make_fuse_swig_optional.patch b/meta-oe/recipes-connectivity/obexftp/obexftp/make_fuse_swig_optional.patch
new file mode 100644
index 000000000..84b143bf5
--- /dev/null
+++ b/meta-oe/recipes-connectivity/obexftp/obexftp/make_fuse_swig_optional.patch
@@ -0,0 +1,24 @@
1Index: obexftp-0.24.2-Source/CMakeLists.txt
2===================================================================
3--- obexftp-0.24.2-Source.orig/CMakeLists.txt
4+++ obexftp-0.24.2-Source/CMakeLists.txt
5@@ -58,9 +58,17 @@ add_subdirectory ( bfb )
6 add_subdirectory ( multicobex )
7 add_subdirectory ( obexftp )
8 add_subdirectory ( apps )
9-add_subdirectory ( fuse )
10-add_subdirectory ( swig )
11 add_subdirectory ( doc )
12+
13+option ( ENABLE_FUSE "Build the obexftp fuse module" OFF )
14+if ( ENABLE_FUSE )
15+ add_subdirectory ( fuse )
16+endif ( ENABLE_FUSE )
17+
18+option ( ENABLE_SWIG "Build the obexftp swig module" OFF )
19+if ( ENABLE_SWIG )
20+ add_subdirectory ( swig )
21+endif ( ENABLE_SWIG )
22 #examples
23
24 set ( prefix "${CMAKE_INSTALL_PREFIX}" )
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb b/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb
deleted file mode 100644
index b6bdfb7e4..000000000
--- a/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb
+++ /dev/null
@@ -1,16 +0,0 @@
1DESCRIPTION = "A tool for transfer files to/from any OBEX enabled device"
2LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1"
3LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
4
5DEPENDS += "openobex"
6
7SRC_URI = "http://sourceforge.net/projects/openobex/files/obexftp/${PV}/obexftp-${PV}.tar.bz2 \
8 file://Remove_some_printf_in_obexftpd.patch "
9
10SRC_URI[md5sum] = "f20762061b68bc921e80be4aebc349eb"
11SRC_URI[sha256sum] = "44a74ff288d38c0f75354d6bc2efe7d6dec10112eaff2e7b10e292b0d2105b36"
12
13inherit autotools pkgconfig
14
15EXTRA_OECONF += "--disable-tcl --disable-perl --disable-python --disable-ruby"
16
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb b/meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb
new file mode 100644
index 000000000..489861cb7
--- /dev/null
+++ b/meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb
@@ -0,0 +1,41 @@
1DESCRIPTION = "A tool for transfer files to/from any OBEX enabled device"
2LICENSE = "GPLv2 & PD & LGPLv2.1"
3LIC_FILES_CHKSUM = "file://LGPL-2.1.txt;md5=4fbd65380cdd255951079008b364516c \
4 file://GPL-2.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
5 file://License.txt;md5=fcbddc3c1debed80dd80da2d3e5f0dc1 \
6 "
7
8DEPENDS += "openobex obexftp-native"
9SRC_URI = "http://downloads.sourceforge.net/openobex/${BP}-Source.tar.gz \
10 file://Remove_some_printf_in_obexftpd.patch \
11 file://0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch \
12 file://make_fuse_swig_optional.patch \
13"
14SRC_URI[md5sum] = "157a9d1b2ed220203f7084db906de73c"
15SRC_URI[sha256sum] = "d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3"
16
17inherit cmake pkgconfig
18
19PACKAGECONFIG ?= ""
20# fuse support will need meta-filesystems layer
21PACKAGECONFIG[fuse] = "-DENABLE_FUSE=ON,-DENABLE_FUSE=OFF,fuse"
22PACKAGECONFIG[swig] = "-DENABLE_SWIG=ON,-DENABLE_SWIG=OFF,swig"
23
24DEPENDS_remove_class-native = "fuse-native"
25
26S = "${WORKDIR}/${BP}-Source"
27
28EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON \
29 -DENABLE_PERL=OFF -DENABLE_PYTHON=OFF \
30 -DENABLE_RUBY=OFF -DENABLE_TCL=OFF \
31"
32
33do_compile_class-native () {
34 oe_runmake crctable
35}
36
37do_install_class-native () {
38 install -D -m 0755 ${B}/bfb/crctable ${D}${bindir}/crctable
39}
40
41BBCLASSEXTEND = "native"