Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
ser2net: Fix compilation failures due to missing TIOCSRS485 macro
|
||||
|
||||
Patch sent upstream:
|
||||
https://sourceforge.net/p/ser2net/mailman/message/32905302/
|
||||
|
||||
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
|
||||
|
||||
From: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
|
||||
include <asm-generic/ioctls.h> fixes compilations for systems,
|
||||
where <asm-generic/ioctls.h> won't be included automatically.
|
||||
|
||||
Move special Linux includes to dataxfer.h.
|
||||
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
---
|
||||
dataxfer.h | 5 +++--
|
||||
devcfg.c | 2 --
|
||||
2 files changed, 3 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/dataxfer.h b/dataxfer.h
|
||||
index bd2665e..c3d7431 100644
|
||||
--- a/dataxfer.h
|
||||
+++ b/dataxfer.h
|
||||
@@ -20,8 +20,6 @@
|
||||
#ifndef DATAXFER
|
||||
#define DATAXFER
|
||||
|
||||
-#include <linux/serial.h>
|
||||
-
|
||||
#include "controller.h"
|
||||
|
||||
#ifdef USE_UUCP_LOCKING
|
||||
@@ -30,6 +28,9 @@ extern int uucp_locking_enabled;
|
||||
|
||||
#ifdef linux
|
||||
|
||||
+#include <linux/serial.h>
|
||||
+#include <asm-generic/ioctls.h>
|
||||
+
|
||||
#define USE_RS485_FEATURE
|
||||
|
||||
/* Check, if the toolchain provides serial_rs485 structure and macros */
|
||||
diff --git a/devcfg.c b/devcfg.c
|
||||
index ab819a6..1f84714 100644
|
||||
--- a/devcfg.c
|
||||
+++ b/devcfg.c
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
|
||||
/* This code handles generating the configuration for the serial port. */
|
||||
-
|
||||
#include <unistd.h>
|
||||
#include <termios.h>
|
||||
#include <sys/ioctl.h>
|
||||
@@ -31,7 +30,6 @@
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <syslog.h>
|
||||
-#include <linux/serial.h>
|
||||
|
||||
#include "ser2net.h"
|
||||
#include "selector.h"
|
||||
--
|
||||
1.9.1
|
||||
43
bsp/buildroot/package/ser2net/S50ser2net
Normal file
43
bsp/buildroot/package/ser2net/S50ser2net
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Startup script for ser2net
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting ser2net: "
|
||||
if [ ! -f /etc/ser2net.conf ] ; then
|
||||
echo "no configuration file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
start-stop-daemon -S -q --exec /usr/sbin/ser2net -- -P /var/run/ser2net.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Shutting down ser2net: "
|
||||
start-stop-daemon -K -q -p /var/run/ser2net.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: ser2net {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@@ -1,2 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 98f6193225338e25f35302fef5e1f16688693ed43e7b3c3e9e09187eb54547ac ser2net-2.10.0.tar.gz
|
||||
sha256 cee4ad8fb3531281e8761751694dfab39d681022b2363b1edeba764d397c3c99 ser2net-2.10.1.tar.gz
|
||||
|
||||
@@ -4,9 +4,14 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SER2NET_VERSION = 2.10.0
|
||||
SER2NET_VERSION = 2.10.1
|
||||
SER2NET_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
|
||||
SER2NET_LICENSE = GPLv2+
|
||||
SER2NET_LICENSE_FILES = COPYING
|
||||
|
||||
define SER2NET_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/ser2net/S50ser2net \
|
||||
$(TARGET_DIR)/etc/init.d/S50ser2net
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Reference in New Issue
Block a user