summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/setserial
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/setserial')
-rw-r--r--meta/recipes-bsp/setserial/setserial/add_stdlib.patch18
-rw-r--r--meta/recipes-bsp/setserial/setserial/ldflags.patch24
-rw-r--r--meta/recipes-bsp/setserial/setserial_2.17.bb29
3 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-bsp/setserial/setserial/add_stdlib.patch b/meta/recipes-bsp/setserial/setserial/add_stdlib.patch
new file mode 100644
index 0000000000..e34f262a89
--- /dev/null
+++ b/meta/recipes-bsp/setserial/setserial/add_stdlib.patch
@@ -0,0 +1,18 @@
1# This patch addes stdlib.h to fix compiler warnings due to the exit
2# built-in not being defined and getting an incorrect implicit definition
3
4Upstream-Status: Pending
5
6Created-by: Saul Wold <saul.wold@intel.com>
7
8--- setserial-2.17/setserial.c 2010-09-02 14:11:27.569763088 -0700
9+++ setserial-2.17_fixed/setserial.c 2010-09-02 14:11:08.546264139 -0700
10@@ -11,6 +11,7 @@
11 */
12
13 #include <stdio.h>
14+#include <stdlib.h>
15 #include <fcntl.h>
16 #include <termios.h>
17 #include <string.h>
18
diff --git a/meta/recipes-bsp/setserial/setserial/ldflags.patch b/meta/recipes-bsp/setserial/setserial/ldflags.patch
new file mode 100644
index 0000000000..4313d2c797
--- /dev/null
+++ b/meta/recipes-bsp/setserial/setserial/ldflags.patch
@@ -0,0 +1,24 @@
1Obey LDFLAGS
2
3Signed-off-by: Christopher Larson <chris_larson@mentor.com>
4Upstream-status: Pending
5
6--- setserial-2.17.orig/Makefile.in
7+++ setserial-2.17/Makefile.in
8@@ -13,6 +13,7 @@ STRIP = @STRIP@
9 CC = @CC@
10 RM = rm -f
11 CFLAGS = @CFLAGS@
12+LDFLAGS = @LDFLAGS@
13 DEFS = @DEFS@
14 INCS = -I.
15 TAR = tar
16@@ -20,7 +21,7 @@ TAR = tar
17 all: setserial setserial.cat
18
19 setserial: setserial.c
20- $(CC) $(CFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
21+ $(CC) $(CFLAGS) $(LDFLAGS) $(DEFS) $(INCS) setserial.c -o setserial
22
23 setserial.cat: setserial.8
24 nroff -man setserial.8 > setserial.cat
diff --git a/meta/recipes-bsp/setserial/setserial_2.17.bb b/meta/recipes-bsp/setserial/setserial_2.17.bb
new file mode 100644
index 0000000000..8dbddd7dc5
--- /dev/null
+++ b/meta/recipes-bsp/setserial/setserial_2.17.bb
@@ -0,0 +1,29 @@
1SUMMARY = "Controls the configuration of serial ports"
2DESCRIPTION = "setserial is a program designed to set and/or report the configuration information associated with a serial port"
3HOMEPAGE = "http://setserial.sourceforge.net"
4AUTHOR = "Theodore Ts'o <tytso@mit.edu>"
5SECTION = "console/utils"
6
7LICENSE = "GPLv2.0"
8LIC_FILES_CHKSUM = "file://version.h;beginline=1;endline=6;md5=2e7c59cb9e57e356ae81f50f4e4dfd99"
9PR = "r3"
10
11DEPENDS += "groff-native"
12
13inherit autotools-brokensep
14
15SRC_URI = "${SOURCEFORGE_MIRROR}/setserial/${BPN}-${PV}.tar.gz \
16 file://add_stdlib.patch \
17 file://ldflags.patch \
18 "
19
20SRC_URI[md5sum] = "c4867d72c41564318e0107745eb7a0f2"
21SRC_URI[sha256sum] = "7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a"
22
23do_install() {
24 install -d ${D}${bindir}
25 install -d ${D}${mandir}/man8
26
27 install -m 0755 ${S}/setserial ${D}${bindir}
28 install -m 0644 ${S}/setserial.8 ${D}${mandir}/man8
29}