initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
@@ -0,0 +1,67 @@
From 6766ab322a9eb8c73f8276be9cdea356eb124de0 Mon Sep 17 00:00:00 2001
From: Baruch Siach <baruch@tkos.co.il>
Date: Thu, 11 Nov 2021 07:58:10 +0200
Subject: [PATCH] Fix build with musl libc
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
musl libc defines its own struct ethhdr that conflicts with the kernel
define one. The kernel headers provide a way to suppress its struct
ethhdr. For that to work the libc headers must precede the kernel. Move
the kernel linux/if_tun.h include below libc net/ethernet.h. That fixes
the following build failure:
In file included from .../arm-buildroot-linux-musleabihf/sysroot/usr/include/net/ethernet.h:10,
from ../include/headers.h:117,
from Thread.c:72:
.../arm-buildroot-linux-musleabihf/sysroot/usr/include/netinet/if_ether.h:116:8: error: redefinition of struct ethhdr
116 | struct ethhdr {
| ^~~~~~
In file included from .../arm-buildroot-linux-musleabihf/sysroot/usr/include/linux/if_tun.h:20,
from ../include/headers.h:110,
from Thread.c:72:
.../arm-buildroot-linux-musleabihf/sysroot/usr/include/linux/if_ether.h:148:8: note: originally defined here
148 | struct ethhdr {
| ^~~~~~
Fixes bug #157.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
Upstream status: sent to Robert McMahon <rjmcmahon@rjmcmahon.com>
include/headers.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/headers.h b/include/headers.h
index 00e0ea0dba42..887490475381 100644
--- a/include/headers.h
+++ b/include/headers.h
@@ -106,11 +106,6 @@ typedef bool _Bool;
#include <net/if.h>
#endif
-#if ((HAVE_TUNTAP_TAP) || (HAVE_TUNTAP_TUN))
-#include <linux/if_tun.h>
-#include <sys/ioctl.h>
-#endif
-
// AF_PACKET HEADERS
#if defined(HAVE_LINUX_FILTER_H) && defined(HAVE_AF_PACKET)
@@ -146,6 +141,11 @@ typedef bool _Bool;
#define IPV6HDRLEN 40
#endif // HAVE_AF_PACKET
+#if ((HAVE_TUNTAP_TAP) || (HAVE_TUNTAP_TUN))
+#include <linux/if_tun.h>
+#include <sys/ioctl.h>
+#endif
+
#ifdef WIN32
/* Windows config file */
--
2.33.0
+14
View File
@@ -0,0 +1,14 @@
config BR2_PACKAGE_IPERF
bool "iperf"
depends on BR2_INSTALL_LIBSTDCPP
# uses fork()
depends on BR2_USE_MMU
help
Internet Protocol bandwidth measuring tool for measuring
TCP/UDP performance.
https://sourceforge.net/projects/iperf2/
comment "iperf needs a toolchain w/ C++"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP
+6
View File
@@ -0,0 +1,6 @@
# From https://sourceforge.net/projects/iperf2/files/
sha1 f1b7835eb74094b1a1849faeafe35b7c362f4ab5 iperf-2.1.4.tar.gz
# Locally computed:
sha256 062b392e87b8e227aca74fef0a99b04fe0382d4518957041b508a56885b4d4f9 iperf-2.1.4.tar.gz
sha256 5f9f5c4feca3347c3b3c0ada8b16b4e6b698aac4e6f016a24adf61a5915336d1 COPYING
+17
View File
@@ -0,0 +1,17 @@
################################################################################
#
# iperf
#
################################################################################
IPERF_VERSION = 2.1.4
IPERF_SITE = http://downloads.sourceforge.net/project/iperf2
IPERF_LICENSE = MIT-like
IPERF_LICENSE_FILES = COPYING
IPERF_CPE_ID_VENDOR = iperf2_project
IPERF_CPE_ID_PRODUCT = iperf2
IPERF_CONF_OPTS = \
--disable-web100
$(eval $(autotools-package))