diff options
author | Lauren Post <lauren.post@freescale.com> | 2014-03-07 15:26:10 -0600 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2014-03-15 15:25:27 +0100 |
commit | 2e7e9bec4882ee0a01e1a13cd8d981f2fd15c639 (patch) | |
tree | 48a1435c17af6f7627b180219bb0868dbeab8f7a /meta-oe/recipes-connectivity/obexftp | |
parent | 095fbd60d7b0b59558e49b97a20814d34626084e (diff) | |
download | meta-openembedded-2e7e9bec4882ee0a01e1a13cd8d981f2fd15c639.tar.gz |
obexftp: Create 0.23 version
obexftp is a tool to transfer files from any
OBEX enabled device. Disable prints to improve
performance
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/obexftp')
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp/Remove_some_printf_in_obexftpd.patch | 34 | ||||
-rw-r--r-- | meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb | 16 |
2 files changed, 50 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp/Remove_some_printf_in_obexftpd.patch b/meta-oe/recipes-connectivity/obexftp/obexftp/Remove_some_printf_in_obexftpd.patch new file mode 100644 index 000000000..8b73af32e --- /dev/null +++ b/meta-oe/recipes-connectivity/obexftp/obexftp/Remove_some_printf_in_obexftpd.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Signed-off-by: Jun Zhu <R01007@freescale.com> | ||
2 | |||
3 | Upstream-Status: Not applicable | ||
4 | |||
5 | diff -Nru obexftp-0.23/apps.orig/obexftpd.c obexftp-0.23/apps/obexftpd.c | ||
6 | --- obexftp-0.23/apps.orig/obexftpd.c 2013-11-08 10:42:20.816631583 +0800 | ||
7 | +++ obexftp-0.23/apps/obexftpd.c 2013-11-08 10:44:18.628634893 +0800 | ||
8 | @@ -639,7 +639,7 @@ | ||
9 | struct stat statbuf; | ||
10 | //char *namebuf = NULL; | ||
11 | |||
12 | - fprintf(stderr, "put_done>>>\n"); | ||
13 | + //fprintf(stderr, "put_done>>>\n"); | ||
14 | while(OBEX_ObjectGetNextHeader(handle, object, &hi, &hv, &hlen)) { | ||
15 | switch(hi) { | ||
16 | case OBEX_HDR_BODY: | ||
17 | @@ -671,7 +671,7 @@ | ||
18 | } | ||
19 | } | ||
20 | if(!body) { | ||
21 | - printf("Got a PUT without a body\n"); | ||
22 | + //printf("Got a PUT without a body\n"); | ||
23 | OBEX_ObjectSetRsp(object, OBEX_RSP_CONTINUE, OBEX_RSP_SUCCESS); | ||
24 | } | ||
25 | if(!name) { | ||
26 | @@ -807,7 +807,7 @@ | ||
27 | |||
28 | switch(obex_cmd) { | ||
29 | case OBEX_CMD_PUT: | ||
30 | - fprintf(stderr, "obex_ev_progress: obex_cmd_put\n"); | ||
31 | + //fprintf(stderr, "obex_ev_progress: obex_cmd_put\n"); | ||
32 | put_done(handle, obj, 0); | ||
33 | break; | ||
34 | default: | ||
diff --git a/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb b/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb new file mode 100644 index 000000000..b6bdfb7e4 --- /dev/null +++ b/meta-oe/recipes-connectivity/obexftp/obexftp_0.23.bb | |||
@@ -0,0 +1,16 @@ | |||
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 | |||