Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
From 4eb54a811bef43da2be9cc84009567e5d6ca9741 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 11 May 2024 23:15:59 -0700
|
||||
Subject: [PATCH] teamd: Pass correct parameter type to accept API
|
||||
|
||||
accept() expects sockaddr as second parameter
|
||||
|
||||
int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
|
||||
|
||||
Fixes build with gcc-16 on musl systems
|
||||
| ../../git/teamd/teamd_usock.c: In function 'callback_usock':
|
||||
| ../../git/teamd/teamd_usock.c:280:40: error: passing argument 2 of 'accept' from incompatible pointer type [-Wincompatible-pointer-types]
|
||||
| 280 | sock = accept(ctx->usock.sock, &addr, &alen);
|
||||
| | ^~~~~
|
||||
| | |
|
||||
| | struct sockaddr_un *
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
|
||||
|
||||
Upstream: https://github.com/jpirko/libteam/commit/4eb54a811bef43da2be9cc84009567e5d6ca9741
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
teamd/teamd_usock.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/teamd/teamd_usock.c b/teamd/teamd_usock.c
|
||||
index 1adfdf8..5895124 100644
|
||||
--- a/teamd/teamd_usock.c
|
||||
+++ b/teamd/teamd_usock.c
|
||||
@@ -277,7 +277,7 @@ static int callback_usock(struct teamd_context *ctx, int events, void *priv)
|
||||
int err;
|
||||
|
||||
alen = sizeof(addr);
|
||||
- sock = accept(ctx->usock.sock, &addr, &alen);
|
||||
+ sock = accept(ctx->usock.sock, (struct sockaddr *)&addr, &alen);
|
||||
if (sock == -1) {
|
||||
teamd_log_err("usock: Failed to accept connection.");
|
||||
return -errno;
|
||||
31
package/libteam/Config.in
Normal file
31
package/libteam/Config.in
Normal file
@@ -0,0 +1,31 @@
|
||||
config BR2_PACKAGE_LIBTEAM
|
||||
bool "libteam"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS # libnl-tools
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
select BR2_PACKAGE_JANSSON
|
||||
select BR2_PACKAGE_LIBDAEMON
|
||||
select BR2_PACKAGE_LIBNL
|
||||
select BR2_PACKAGE_LIBNL_TOOLS
|
||||
help
|
||||
The purpose of the Team driver is to provide a mechanism to
|
||||
team multiple NICs (ports) into one logical one (teamdev) at
|
||||
L2 layer. The process is called "channel bonding", "Ethernet
|
||||
bonding", "channel teaming", "link aggregation", etc.
|
||||
|
||||
Team tries to provide similar functionality as the bonding
|
||||
driver, however architecturally it is quite different. Team is
|
||||
modular, userspace driven, very lean and efficient, and it
|
||||
does have some distinct advantages over bonding. The way Team
|
||||
is configured differs dramatically from the way bonding is.
|
||||
|
||||
If building the kernel with Buildroot, basic team support is
|
||||
automatically enabled, but you will still need to enable the
|
||||
modes you need, e.g. activebackup or loadbalance (e.g. with a
|
||||
config fragment or a custom config).
|
||||
|
||||
https://github.com/jpirko/libteam
|
||||
|
||||
comment "libteam needs MMU and a toolchain w/ dynamic library and threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
3
package/libteam/libteam.hash
Normal file
3
package/libteam/libteam.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 7ad90555db8aecdcaf002f543d330408501600edf7065e0ca398fce9b1e64820 libteam-1.32.tar.gz
|
||||
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
|
||||
24
package/libteam/libteam.mk
Normal file
24
package/libteam/libteam.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# libteam
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBTEAM_VERSION = 1.32
|
||||
LIBTEAM_SITE = $(call github,jpirko,libteam,v$(LIBTEAM_VERSION))
|
||||
LIBTEAM_LICENSE = LGPL-2.1+
|
||||
LIBTEAM_LICENSE_FILES = COPYING
|
||||
LIBTEAM_DEPENDENCIES = host-pkgconf jansson libdaemon libnl
|
||||
LIBTEAM_AUTORECONF = YES
|
||||
LIBTEAM_INSTALL_STAGING = YES
|
||||
|
||||
# Note: this enables basic team support, use a custom kernel config, or
|
||||
# fragment, to enable team modes, e.g. activebackup or loadbalance
|
||||
define LIBTEAM_LINUX_CONFIG_FIXUPS
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NETDEVICES)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_CORE)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_TEAM)
|
||||
$(call KCONFIG_ENABLE_OPT,CONFIG_NET_TEAM_MODE_ROUNDROBIN)
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user