Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
From 5c984c942e2f9dca4a8380ed782519d9cb0f554d Mon Sep 17 00:00:00 2001
From: Baruch Siach <baruch@tkos.co.il>
Date: Sun, 12 Mar 2017 08:52:20 +0200
Subject: [PATCH] Add musl workaround to the libc-compat.h copy
The libc-compat.h kernel header uses glibc specific macros to solve conflicts
with libc provided headers. This patch makes libc-compat.h work also for musl
libc.
Future rebase note: when upstream updates libc-compat.h some additional macro
definitions will be needed. See the Buildroot iproute2 patch
package/iproute2/0001-Add-the-musl-workaround-to-the-libc-compat.h-copy.patch.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Upstream: libc-compat.h is a local copy of a kernel headers. A proper
musl fix must go to the kernel first.
[Dario: make the patch to be applied with fuzz factor 0]
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
include/linux-private/linux/libc-compat.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux-private/linux/libc-compat.h b/include/linux-private/linux/libc-compat.h
index a1599911e7a9..f6df7193b8b4 100644
--- a/include/linux-private/linux/libc-compat.h
+++ b/include/linux-private/linux/libc-compat.h
@@ -50,7 +50,7 @@
#define _LIBC_COMPAT_H
/* We have included glibc headers... */
-#if defined(__GLIBC__)
+#if 1
/* Coordinate with glibc net/if.h header. */
#if defined(_NET_IF_H) && defined(__USE_MISC)
--
2.43.0

View File

@@ -0,0 +1,107 @@
From 49f8b364c9a6f6db4ab535f999386fecfa38241b Mon Sep 17 00:00:00 2001
From: Thomas Haller <thom311@gmail.com>
Date: Thu, 11 Dec 2025 22:27:07 +0100
Subject: [PATCH] include/linux: include linux header "ila.h"
Taken from v6.18 (7d0a66e4bb9081d75c82ec4957c50034cb0ea449).
https://github.com/thom311/libnl/issues/447
Upstream: https://github.com/thom311/libnl/commit/49f8b364c9a6f6db4ab535f999386fecfa38241b
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
Makefile.am | 1 +
include/linux-private/linux/ila.h | 68 +++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
create mode 100644 include/linux-private/linux/ila.h
diff --git a/Makefile.am b/Makefile.am
index 2bd0c06e..e63e3112 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -278,6 +278,7 @@ noinst_HEADERS = \
include/linux-private/linux/if_packet.h \
include/linux-private/linux/if_tunnel.h \
include/linux-private/linux/if_vlan.h \
+ include/linux-private/linux/ila.h \
include/linux-private/linux/in.h \
include/linux-private/linux/in6.h \
include/linux-private/linux/in_route.h \
diff --git a/include/linux-private/linux/ila.h b/include/linux-private/linux/ila.h
new file mode 100644
index 00000000..6a6c97cf
--- /dev/null
+++ b/include/linux-private/linux/ila.h
@@ -0,0 +1,68 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/* ila.h - ILA Interface */
+
+#ifndef _LINUX_ILA_H
+#define _LINUX_ILA_H
+
+/* NETLINK_GENERIC related info */
+#define ILA_GENL_NAME "ila"
+#define ILA_GENL_VERSION 0x1
+
+enum {
+ ILA_ATTR_UNSPEC,
+ ILA_ATTR_LOCATOR, /* u64 */
+ ILA_ATTR_IDENTIFIER, /* u64 */
+ ILA_ATTR_LOCATOR_MATCH, /* u64 */
+ ILA_ATTR_IFINDEX, /* s32 */
+ ILA_ATTR_DIR, /* u32 */
+ ILA_ATTR_PAD,
+ ILA_ATTR_CSUM_MODE, /* u8 */
+ ILA_ATTR_IDENT_TYPE, /* u8 */
+ ILA_ATTR_HOOK_TYPE, /* u8 */
+
+ __ILA_ATTR_MAX,
+};
+
+#define ILA_ATTR_MAX (__ILA_ATTR_MAX - 1)
+
+enum {
+ ILA_CMD_UNSPEC,
+ ILA_CMD_ADD,
+ ILA_CMD_DEL,
+ ILA_CMD_GET,
+ ILA_CMD_FLUSH,
+
+ __ILA_CMD_MAX,
+};
+
+#define ILA_CMD_MAX (__ILA_CMD_MAX - 1)
+
+#define ILA_DIR_IN (1 << 0)
+#define ILA_DIR_OUT (1 << 1)
+
+enum {
+ ILA_CSUM_ADJUST_TRANSPORT,
+ ILA_CSUM_NEUTRAL_MAP,
+ ILA_CSUM_NO_ACTION,
+ ILA_CSUM_NEUTRAL_MAP_AUTO,
+};
+
+enum {
+ ILA_ATYPE_IID = 0,
+ ILA_ATYPE_LUID,
+ ILA_ATYPE_VIRT_V4,
+ ILA_ATYPE_VIRT_UNI_V6,
+ ILA_ATYPE_VIRT_MULTI_V6,
+ ILA_ATYPE_NONLOCAL_ADDR,
+ ILA_ATYPE_RSVD_1,
+ ILA_ATYPE_RSVD_2,
+
+ ILA_ATYPE_USE_FORMAT = 32, /* Get type from type field in identifier */
+};
+
+enum {
+ ILA_HOOK_ROUTE_OUTPUT,
+ ILA_HOOK_ROUTE_INPUT,
+};
+
+#endif /* _LINUX_ILA_H */
--
2.47.3

23
package/libnl/Config.in Normal file
View File

@@ -0,0 +1,23 @@
config BR2_PACKAGE_LIBNL
bool "libnl"
depends on BR2_TOOLCHAIN_HAS_THREADS
help
A library for applications dealing with netlink socket.
https://github.com/thom311/libnl
if BR2_PACKAGE_LIBNL
config BR2_PACKAGE_LIBNL_TOOLS
bool "install tools"
# uses <dlfcn.h>
depends on !BR2_STATIC_LIBS
help
Install binary tools.
comment "libnl tools needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
endif
comment "libnl needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS

4
package/libnl/libnl.hash Normal file
View File

@@ -0,0 +1,4 @@
# From https://github.com/thom311/libnl/releases/download/libnl3_12_0/libnl-3.12.0.tar.gz.sha256sum
sha256 fc51ca7196f1a3f5fdf6ffd3864b50f4f9c02333be28be4eeca057e103c0dd18 libnl-3.12.0.tar.gz
# Locally calculated
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING

36
package/libnl/libnl.mk Normal file
View File

@@ -0,0 +1,36 @@
################################################################################
#
# libnl
#
################################################################################
LIBNL_VERSION = 3.12.0
LIBNL_SITE = https://github.com/thom311/libnl/releases/download/libnl$(subst .,_,$(LIBNL_VERSION))
LIBNL_LICENSE = LGPL-2.1+
LIBNL_LICENSE_FILES = COPYING
LIBNL_CPE_ID_VALID = YES
LIBNL_INSTALL_STAGING = YES
LIBNL_DEPENDENCIES = host-bison host-flex host-pkgconf
# 0002-include-linux-include-linux-header-ila.h.patch
LIBNL_AUTORECONF = YES
HOST_LIBNL_AUTORECONF = YES
HOST_LIBNL_DEPENDENCIES = host-bison host-flex host-pkgconf
ifeq ($(BR2_PACKAGE_LIBNL_TOOLS),y)
LIBNL_CONF_OPTS += --enable-cli
else
LIBNL_CONF_OPTS += --disable-cli
endif
ifeq ($(BR2_PACKAGE_CHECK),y)
LIBNL_DEPENDENCIES += check
LIBNL_CONF_OPTS += --enable-unit-tests
else
LIBNL_CONF_OPTS += --disable-unit-tests
endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))