diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-11-28 13:07:43 -0800 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-12-02 09:26:19 +0100 |
commit | 0288b204f3c12af1561218fa0cfcdfb9a5508b47 (patch) | |
tree | 2ed29173d90350223cf10172a17e40646b29d2ac /meta-oe/recipes-connectivity | |
parent | c476219e845934f767927e81fe60dbaa157df9ee (diff) | |
download | meta-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.bb | 35 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obex/openobex_1.7.2.bb | 37 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp/0001-apps-CMakeLists.txt-Explicitly-link-libbfb-and-libmu.patch | 66 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp/make_fuse_swig_optional.patch | 24 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb | 16 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp_0.24.2.bb | 41 |
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 @@ | |||
1 | DESCRIPTION = "The Openobex project is an open source implementation of the \ | ||
2 | Object Exchange (OBEX) protocol." | ||
3 | HOMEPAGE = "http://openobex.triq.net" | ||
4 | SECTION = "libs" | ||
5 | DEPENDS = "virtual/libusb0" | ||
6 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','bluez5','bluez5','bluez4',d)}" | ||
7 | |||
8 | LICENSE = "GPLv2 & LGPLv2.1" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
10 | file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
11 | " | ||
12 | |||
13 | SRC_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 | |||
18 | SRC_URI[md5sum] = "0d83dc86445a46a1b9750107ba7ab65c" | ||
19 | SRC_URI[sha256sum] = "e602047570799a47ecb028420bda8f2cef41310e5a99d084de10aa9422935e65" | ||
20 | |||
21 | inherit autotools binconfig pkgconfig | ||
22 | |||
23 | EXTRA_OECONF = "--enable-apps --enable-syslog" | ||
24 | |||
25 | do_install_append() { | ||
26 | install -d ${D}${datadir}/aclocal | ||
27 | install -m 0644 ${S}/openobex.m4 ${D}${datadir}/aclocal | ||
28 | } | ||
29 | |||
30 | PACKAGES += "openobex-apps" | ||
31 | FILES_${PN} = "${libdir}/lib*.so.*" | ||
32 | FILES_${PN}-dev += "${bindir}/openobex-config" | ||
33 | FILES_${PN}-apps = "${bindir}/*" | ||
34 | DEBIAN_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 @@ | |||
1 | DESCRIPTION = "The Openobex project is an open source implementation of the \ | ||
2 | Object Exchange (OBEX) protocol." | ||
3 | HOMEPAGE = "http://openobex.triq.net" | ||
4 | SECTION = "libs" | ||
5 | DEPENDS = "virtual/libusb0" | ||
6 | DEPENDS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES','bluez5','bluez5','bluez4',d)}" | ||
7 | |||
8 | LICENSE = "GPLv2 & LGPLv2.1" | ||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
10 | file://COPYING.LIB;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | ||
11 | " | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}/${PV}/${BP}-Source.tar.gz \ | ||
14 | " | ||
15 | |||
16 | SRC_URI[md5sum] = "f6e0b6cb7dcfd731460a7e9a91429a3a" | ||
17 | SRC_URI[sha256sum] = "158860aaea52f0fce0c8e4b64550daaae06df2689e05834697b7e8c7d73dd4fc" | ||
18 | |||
19 | inherit cmake pkgconfig | ||
20 | |||
21 | S = "${WORKDIR}/${BP}-Source" | ||
22 | |||
23 | EXTRA_OECONF = " -DCMAKE_SKIP_RPATH=ON " | ||
24 | |||
25 | #--enable-apps --enable-syslog | ||
26 | |||
27 | do_install_append () { | ||
28 | rmdir ${D}${bindir} | ||
29 | } | ||
30 | |||
31 | PACKAGES =+ "openobex-apps" | ||
32 | FILES_${PN}-apps = "${bindir}/*" | ||
33 | FILES_${PN} += "${libdir}/lib*.so.*" | ||
34 | FILES_${PN}-dev += "${bindir}/openobex-config ${libdir}/cmake" | ||
35 | DEBIAN_NOAUTONAME_${PN}-apps = "1" | ||
36 | |||
37 | BBCLASSEXTEND = "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 @@ | |||
1 | From b8dc608dad7d9fc3a4c16acd0327d97b81c23b95 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 15 Nov 2016 01:32:31 +0000 | ||
4 | Subject: [PATCH] apps/CMakeLists.txt: Explicitly link libbfb and libmulticobex | ||
5 | |||
6 | Transitive linking is disabled now for multicobex and | ||
7 | obexftp, This ends up with linking errors for apps, therefore | ||
8 | they are required to be added to link line explicitly. | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | apps/CMakeLists.txt | 13 +++++++++++-- | ||
13 | 1 file changed, 11 insertions(+), 2 deletions(-) | ||
14 | |||
15 | Index: 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 | ) | ||
45 | Index: 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 @@ | |||
1 | Index: 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 @@ | |||
1 | DESCRIPTION = "A tool for transfer files to/from any OBEX enabled device" | ||
2 | LICENSE = "GPLv2 & LGPLv2 & LGPLv2.1" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
4 | |||
5 | DEPENDS += "openobex" | ||
6 | |||
7 | SRC_URI = "http://sourceforge.net/projects/openobex/files/obexftp/${PV}/obexftp-${PV}.tar.bz2 \ | ||
8 | file://Remove_some_printf_in_obexftpd.patch " | ||
9 | |||
10 | SRC_URI[md5sum] = "f20762061b68bc921e80be4aebc349eb" | ||
11 | SRC_URI[sha256sum] = "44a74ff288d38c0f75354d6bc2efe7d6dec10112eaff2e7b10e292b0d2105b36" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
14 | |||
15 | EXTRA_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 @@ | |||
1 | DESCRIPTION = "A tool for transfer files to/from any OBEX enabled device" | ||
2 | LICENSE = "GPLv2 & PD & LGPLv2.1" | ||
3 | LIC_FILES_CHKSUM = "file://LGPL-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ | ||
4 | file://GPL-2.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
5 | file://License.txt;md5=fcbddc3c1debed80dd80da2d3e5f0dc1 \ | ||
6 | " | ||
7 | |||
8 | DEPENDS += "openobex obexftp-native" | ||
9 | SRC_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 | " | ||
14 | SRC_URI[md5sum] = "157a9d1b2ed220203f7084db906de73c" | ||
15 | SRC_URI[sha256sum] = "d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3" | ||
16 | |||
17 | inherit cmake pkgconfig | ||
18 | |||
19 | PACKAGECONFIG ?= "" | ||
20 | # fuse support will need meta-filesystems layer | ||
21 | PACKAGECONFIG[fuse] = "-DENABLE_FUSE=ON,-DENABLE_FUSE=OFF,fuse" | ||
22 | PACKAGECONFIG[swig] = "-DENABLE_SWIG=ON,-DENABLE_SWIG=OFF,swig" | ||
23 | |||
24 | DEPENDS_remove_class-native = "fuse-native" | ||
25 | |||
26 | S = "${WORKDIR}/${BP}-Source" | ||
27 | |||
28 | EXTRA_OECMAKE += "-DCMAKE_SKIP_RPATH=ON \ | ||
29 | -DENABLE_PERL=OFF -DENABLE_PYTHON=OFF \ | ||
30 | -DENABLE_RUBY=OFF -DENABLE_TCL=OFF \ | ||
31 | " | ||
32 | |||
33 | do_compile_class-native () { | ||
34 | oe_runmake crctable | ||
35 | } | ||
36 | |||
37 | do_install_class-native () { | ||
38 | install -D -m 0755 ${B}/bfb/crctable ${D}${bindir}/crctable | ||
39 | } | ||
40 | |||
41 | BBCLASSEXTEND = "native" | ||