update buildroot to 2017.02.11

This commit is contained in:
jbnadal
2018-05-22 15:35:47 +02:00
parent 4bf1f5e091
commit a3c10bd762
9257 changed files with 433426 additions and 1701 deletions

View File

@@ -0,0 +1,42 @@
From e04f5c20fc1536f8e6d4faf32f2f4657d441f7c8 Mon Sep 17 00:00:00 2001
From: Samuel Martin <s.martin49@gmail.com>
Date: Mon, 14 Apr 2014 17:54:37 +0200
Subject: [PATCH] version_generator.py: make it python3 compliant
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
---
openpgm/pgm/version_generator.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/openpgm/pgm/version_generator.py b/openpgm/pgm/version_generator.py
index 2265480..c31376f 100755
--- a/openpgm/pgm/version_generator.py
+++ b/openpgm/pgm/version_generator.py
@@ -1,5 +1,7 @@
#!/usr/bin/python
+from __future__ import print_function
+
import os
import platform
import time
@@ -8,7 +10,7 @@ build_date = time.strftime ("%Y-%m-%d")
build_time = time.strftime ("%H:%M:%S")
build_rev = filter (str.isdigit, "$Revision: 1369 $")
-print """
+print("""
/* vim:ts=8:sts=8:sw=4:noai:noexpandtab
*
* OpenPGM version.
@@ -47,6 +49,6 @@ const char* pgm_build_revision = "%s";
/* eof */
-"""%(build_date, build_time, platform.system(), platform.machine(), build_rev)
+"""%(build_date, build_time, platform.system(), platform.machine(), build_rev))
# end of file
--
1.9.2

View File

@@ -0,0 +1,38 @@
configure.ac: cross-compilation fix
This patch enables to configure the package when cross-compiling in a way
recommended by Autoconf manual (see manual for version 2.69, Section 6.6
Checking Runtime Behavior).
Signed-off-by: Alexander Lukichev <alexander.lukichev@gmail.com>
--- a/openpgm/pgm/configure.ac 2011-09-27 20:59:08.000000000 +0300
+++ b/openpgm/pgm/configure.ac 2013-02-12 10:33:53.000000000 +0200
@@ -272,14 +272,19 @@ uint32_t add32_with_carry (uint32_t a, u
;;
esac
# ticket spinlock friendly: unaligned pointers & atomic ops (excl. Sun Pro)
-AC_MSG_CHECKING([for unaligned pointers])
-AC_RUN_IFELSE(
- [AC_LANG_PROGRAM([[char* nezumi = "mouse";]],
- [[short x = *(short*)(nezumi + 2)]])],
- [AC_MSG_RESULT([yes])
- pgm_unaligned_pointers=yes],
- [AC_MSG_RESULT([no])
- pgm_unaligned_pointers=no])
+AC_CACHE_CHECK([if unaligned access fails], [ac_cv_lbl_unaligned_fail],
+ [AC_RUN_IFELSE(
+ [AC_LANG_PROGRAM([[char* nezumi = "mouse";]],
+ [[short x = *(short*)(nezumi + 2)]])],
+ [ac_cv_lbl_unaligned_fail=no],
+ [ac_cv_lbl_unaligned_fail=yes],
+ [ac_cv_lbl_unaligned_fail=yes])
+ ])
+if test "$ac_cv_lbl_unaligned_fail" = yes; then
+ pgm_unaligned_pointers=no
+else
+ pgm_unaligned_pointers=yes
+fi
AC_MSG_CHECKING([for intrinsic atomic ops])
# AC_PREPROC_IFELSE not always portable
AC_COMPILE_IFELSE(

View File

@@ -0,0 +1,55 @@
From 01128a2d8ad3288e8b96a908888049f186d156ee Mon Sep 17 00:00:00 2001
From: Bernd Kuhls <bernd.kuhls@t-online.de>
Date: Sat, 21 May 2016 19:44:48 +0200
Subject: [PATCH 1/1] Rework headers includes to fix build with musl libc
Downloaded patch from
http://git.alpinelinux.org/cgit/aports/plain/main/openpgm/openpgm-fix-includes.patch
and adjusted paths by prefixing with "openpgm/pgm/"
A build log with the compile error can be found here:
http://autobuild.buildroot.net/results/854/854554827ead82f29b293ddceced6eb7fbfeec27/build-end.log
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
(Patch sent upstream: https://github.com/steve-o/openpgm/pull/44)
---
openpgm/pgm/include/impl/security.h | 3 ++-
openpgm/pgm/include/pgm/types.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/openpgm/pgm/include/impl/security.h b/openpgm/pgm/include/impl/security.h
index c2b3e3d..896316f 100644
--- a/openpgm/pgm/include/impl/security.h
+++ b/openpgm/pgm/include/impl/security.h
@@ -33,7 +33,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
-#include <sys/timeb.h>
#include <impl/i18n.h>
#include <impl/errno.h>
#include <impl/string.h>
@@ -41,6 +40,8 @@
PGM_BEGIN_DECLS
#ifdef HAVE_FTIME
+#include <sys/timeb.h>
+
static inline
errno_t
# if !defined( _WIN32 )
diff --git a/openpgm/pgm/include/pgm/types.h b/openpgm/pgm/include/pgm/types.h
index 4e41261..58731a3 100644
--- a/openpgm/pgm/include/pgm/types.h
+++ b/openpgm/pgm/include/pgm/types.h
@@ -27,6 +27,7 @@
#ifndef _MSC_VER
# include <sys/param.h>
+# include <sys/types.h>
#endif
#include <pgm/macros.h>
--
2.8.1

View File

@@ -0,0 +1,20 @@
config BR2_PACKAGE_OPENPGM
bool "openpgm"
depends on BR2_TOOLCHAIN_HAS_SYNC_2
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_WCHAR
help
OpenPGM is an open source implementation of the Pragmatic
General Multicast (PGM) specification in RFC 3208 available at
www.ietf.org. PGM is a reliable and scalable multicast
protocol that enables receivers to detect loss, request
retransmission of lost data, or notify an application of
unrecoverable loss.
https://github.com/steve-o/openpgm/
comment "openpgm needs a toolchain w/ wchar, threads"
depends on BR2_TOOLCHAIN_HAS_SYNC_2
depends on BR2_TOOLCHAIN_HAS_SYNC_4
depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR)

View File

@@ -0,0 +1,2 @@
# Locally calculated
sha256 ecd48fd0bcfd8351ce6dcf31b063dd8fe83d3dab41bca62a6ebd6880a88c4a69 openpgm-release-5-2-122.tar.gz

View File

@@ -0,0 +1,28 @@
################################################################################
#
# openpgm
#
################################################################################
OPENPGM_VERSION = release-5-2-122
OPENPGM_SITE = $(call github,steve-o,openpgm,$(OPENPGM_VERSION))
OPENPGM_LICENSE = LGPLv2.1+
OPENPGM_LICENSE_FILES = openpgm/pgm/LICENSE
OPENPGM_INSTALL_STAGING = YES
OPENPGM_SUBDIR = openpgm/pgm
OPENPGM_AUTORECONF = YES
# We need to create the m4 directory to make sure that autoreconf will
# start calling libtoolize. Otherwise it will start with aclocal and it
# will fail because the m4 directory doesn't exist.
define OPENPGM_CREATE_M4_DIR
mkdir -p $(@D)/$(OPENPGM_SUBDIR)/m4
endef
OPENPGM_POST_PATCH_HOOKS += OPENPGM_CREATE_M4_DIR
OPENPGM_CONF_ENV = \
ac_cv_file__proc_cpuinfo=yes \
ac_cv_file__dev_rtc=no \
ac_cv_file__dev_hpet=no
$(eval $(autotools-package))