summaryrefslogtreecommitdiff
path: root/package/picocom/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:21:01 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-24 22:27:24 +0200
commit297fab179d4acd15ac12ecb3d18b01043e2209b9 (patch)
tree6786a771e56f23b00f82536ae00795a1a7e3738f /package/picocom/patches
parent32ee809b5dc4dfb3ac6c189489e27a54b976c728 (diff)
picocom: update to 2.1
Diffstat (limited to 'package/picocom/patches')
-rw-r--r--package/picocom/patches/patch-Makefile22
-rw-r--r--package/picocom/patches/patch-linenoise-1_0_Makefile11
-rw-r--r--package/picocom/patches/patch-term_c106
3 files changed, 21 insertions, 118 deletions
diff --git a/package/picocom/patches/patch-Makefile b/package/picocom/patches/patch-Makefile
index 6c08b9d12..5d6911113 100644
--- a/package/picocom/patches/patch-Makefile
+++ b/package/picocom/patches/patch-Makefile
@@ -1,20 +1,18 @@
---- picocom-1.7.orig/Makefile 2012-02-21 06:42:24.000000000 +0100
-+++ picocom-1.7/Makefile 2013-12-26 09:43:38.000000000 +0100
-@@ -4,13 +4,14 @@ VERSION=1.7
- UUCP_LOCK_DIR=/var/lock
+--- picocom-2.1.orig/Makefile 2015-10-15 23:25:02.000000000 +0200
++++ picocom-2.1/Makefile 2016-09-23 15:45:44.240688077 +0200
+@@ -1,12 +1,12 @@
- # CC = gcc
--CPPFLAGS=-DVERSION_STR=\"$(VERSION)\" \
-+CPPFLAGS ?=
-+CPPFLAGS+=-DVERSION_STR=\"$(VERSION)\" \
- -DUUCP_LOCK_DIR=\"$(UUCP_LOCK_DIR)\" \
- -DHIGH_BAUD
+ VERSION = 2.1
+
+-#CC = gcc
++CC ?= gcc
+ CPPFLAGS = -DVERSION_STR=\"$(VERSION)\"
-CFLAGS = -Wall -g
+CFLAGS ?= -Wall -g
- # LD = gcc
+ LD = $(CC)
-LDFLAGS = -g
+LDFLAGS ?= -g
LDLIBS =
- picocom : picocom.o term.o
+ all: picocom
diff --git a/package/picocom/patches/patch-linenoise-1_0_Makefile b/package/picocom/patches/patch-linenoise-1_0_Makefile
new file mode 100644
index 000000000..d7c7a6526
--- /dev/null
+++ b/package/picocom/patches/patch-linenoise-1_0_Makefile
@@ -0,0 +1,11 @@
+--- picocom-2.1.orig/linenoise-1.0/Makefile 2015-10-15 23:25:02.000000000 +0200
++++ picocom-2.1/linenoise-1.0/Makefile 2016-09-23 15:44:57.086909523 +0200
+@@ -1,7 +1,7 @@
+ linenoise_example: linenoise.h linenoise.c
+
+ linenoise_example: linenoise.c example.c
+- $(CC) -Wall -W -Os -g -o linenoise_example linenoise.c example.c
++ $(CC) $(CFLAGS) -o linenoise_example linenoise.c example.c
+
+ clean:
+ rm -f linenoise_example
diff --git a/package/picocom/patches/patch-term_c b/package/picocom/patches/patch-term_c
deleted file mode 100644
index 6ed95ab65..000000000
--- a/package/picocom/patches/patch-term_c
+++ /dev/null
@@ -1,106 +0,0 @@
---- picocom-1.7.orig/term.c 2010-05-29 00:41:19.000000000 +0200
-+++ picocom-1.7/term.c 2013-12-26 09:45:20.000000000 +0100
-@@ -33,11 +33,7 @@
- #include <string.h>
- #include <errno.h>
- #include <unistd.h>
--#ifdef __linux__
--#include <termio.h>
--#else
- #include <termios.h>
--#endif /* of __linux__ */
-
- #include "term.h"
-
-@@ -945,27 +941,6 @@ term_pulse_dtr (int fd)
- break;
- }
-
--#ifdef __linux__
-- {
-- int opins = TIOCM_DTR;
--
-- r = ioctl(fd, TIOCMBIC, &opins);
-- if ( r < 0 ) {
-- term_errno = TERM_EDTRDOWN;
-- rval = -1;
-- break;
-- }
--
-- sleep(1);
--
-- r = ioctl(fd, TIOCMBIS, &opins);
-- if ( r < 0 ) {
-- term_errno = TERM_EDTRUP;
-- rval = -1;
-- break;
-- }
-- }
--#else
- {
- struct termios tio, tioold;
-
-@@ -997,8 +972,6 @@ term_pulse_dtr (int fd)
- break;
- }
- }
--#endif /* of __linux__ */
--
- } while (0);
-
- return rval;
-@@ -1020,19 +993,6 @@ term_raise_dtr(int fd)
- rval = -1;
- break;
- }
--
--#ifdef __linux__
-- {
-- int opins = TIOCM_DTR;
--
-- r = ioctl(fd, TIOCMBIS, &opins);
-- if ( r < 0 ) {
-- term_errno = TERM_EDTRUP;
-- rval = -1;
-- break;
-- }
-- }
--#else
- r = tcsetattr(fd, TCSANOW, &term.currtermios[i]);
- if ( r < 0 ) {
- /* FIXME: perhaps try to update currtermios */
-@@ -1040,7 +1000,6 @@ term_raise_dtr(int fd)
- rval = -1;
- break;
- }
--#endif /* of __linux__ */
- } while (0);
-
- return rval;
-@@ -1064,18 +1023,6 @@ term_lower_dtr(int fd)
- break;
- }
-
--#ifdef __linux__
-- {
-- int opins = TIOCM_DTR;
--
-- r = ioctl(fd, TIOCMBIC, &opins);
-- if ( r < 0 ) {
-- term_errno = TERM_EDTRDOWN;
-- rval = -1;
-- break;
-- }
-- }
--#else
- {
- struct termios tio;
-
-@@ -1097,7 +1044,6 @@ term_lower_dtr(int fd)
- break;
- }
- }
--#endif /* of __linux__ */
- } while (0);
-
- return rval;