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,33 @@
From aa5bc6d2e59c5257d777a45ee4a0e0a784c44244 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Fri, 5 Nov 2021 20:58:41 +0100
Subject: [PATCH] configure.ac: properly evaluate ac_test_CFLAGS
Since autoconf 2.69 and
https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=76754e04fce5f6a7701bec57b057020585df2ae3
ac_test_CFLAGS is set to ${CFLAGS+y} instead of ${CFLAGS+set}.
Just test that ac_test_CFLAGS is not empty, to support both cases.
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 64181d29..b4b3fcfb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -114,7 +114,7 @@ AC_SEARCH_LIBS([clock_gettime], [rt posix4],
AC_CANONICAL_HOST
# Store this value because ac_test_CFLAGS is overwritten by AC_PROG_CC
-if test "$ac_test_CFLAGS" != set ; then
+if ! test "$ac_test_CFLAGS" ; then
bird_cflags_default=yes
fi
--
2.33.0

View File

@@ -0,0 +1,31 @@
From e5b582868c5fa7e185a12023784adc8df7b8c7a2 Mon Sep 17 00:00:00 2001
From: Ondrej Zajicek <santiago@crfreenet.org>
Date: Thu, 9 Jan 2025 00:30:37 +0100
Subject: [PATCH] BFD: Fix missing keyword declarations
Some keywords were missing for BFD-only build.
Upstream: https://gitlab.nic.cz/labs/bird/-/commit/c386369645e584facaad88ec292f2fe0bc70d974
[tperale: backport v2.15.1]
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
---
proto/bfd/config.Y | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/proto/bfd/config.Y b/proto/bfd/config.Y
index 1a7474b0..70b09ad8 100644
--- a/proto/bfd/config.Y
+++ b/proto/bfd/config.Y
@@ -21,8 +21,8 @@ extern struct bfd_config *bfd_cf;
CF_DECLS
-CF_KEYWORDS(BFD, MIN, IDLE, RX, TX, INTERVAL, MULTIPLIER, PASSIVE,
- INTERFACE, MULTIHOP, NEIGHBOR, DEV, LOCAL, AUTHENTICATION,
+CF_KEYWORDS(BFD, MIN, IDLE, RX, TX, INTERVAL, MULTIPLIER, PASSIVE, ADDRESS,
+ INTERFACE, MULTIHOP, NEIGHBOR, DEV, ALL, LOCAL, AUTHENTICATION,
NONE, SIMPLE, METICULOUS, KEYED, MD5, SHA1, IPV4, IPV6, DIRECT,
STRICT, BIND)
--
2.49.0

85
package/bird/Config.in Normal file
View File

@@ -0,0 +1,85 @@
config BR2_PACKAGE_BIRD
bool "bird"
depends on BR2_USE_MMU # fork()
help
BIRD Internet Routing Daemon
The BIRD project aims to develop a dynamic IP routing daemon
with full support of all modern routing protocols, easy to
use configuration interface and powerful route filtering
language
http://bird.network.cz/
if BR2_PACKAGE_BIRD
config BR2_PACKAGE_BIRD_CLIENT
bool "birdc"
select BR2_PACKAGE_NCURSES
select BR2_PACKAGE_READLINE
help
Enable the BIRD client
comment "protocol support"
config BR2_PACKAGE_BIRD_BABEL
bool "babel"
help
Enable Babel protocol.
config BR2_PACKAGE_BIRD_BFD
bool "bfd"
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
help
Enable BFD protocol.
comment "BFD protocol needs a toolchain w/ NPTL"
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
config BR2_PACKAGE_BIRD_BGP
bool "bgp"
default y
help
Enable BGP protocol.
config BR2_PACKAGE_BIRD_MRT
bool "mrt"
help
Enable MRT protocol.
config BR2_PACKAGE_BIRD_OSPF
bool "ospf"
help
Enable OSPFv2 and OSPFv3 protocol.
config BR2_PACKAGE_BIRD_PERF
bool "perf"
help
Enable Perf protocol.
config BR2_PACKAGE_BIRD_PIPE
bool "pipe"
help
Enable Pipe protocol.
config BR2_PACKAGE_BIRD_RADV
bool "radv"
help
Enable RAdv protocol.
config BR2_PACKAGE_BIRD_RIP
bool "rip"
help
Enable RIP protocol.
config BR2_PACKAGE_BIRD_RPKI
bool "rpki"
help
Enable RPKI protocol.
config BR2_PACKAGE_BIRD_STATIC
bool "static"
help
Enable Static protocol.
endif

2
package/bird/bird.hash Normal file
View File

@@ -0,0 +1,2 @@
sha256 48e85c622de164756c132ea77ad1a8a95cc9fd0137ffd0d882746589ce75c75d bird-2.15.1.tar.gz
sha256 94c53c84320078920ac1f0d49c81a4e9004512f534521a58bdf145acbcbc2cd2 README

49
package/bird/bird.mk Normal file
View File

@@ -0,0 +1,49 @@
################################################################################
#
# bird
#
################################################################################
BIRD_VERSION = 2.15.1
BIRD_SITE = https://bird.network.cz/download
BIRD_LICENSE = GPL-2.0+
BIRD_LICENSE_FILES = README
BIRD_CPE_ID_VENDOR = nic
BIRD_SELINUX_MODULES = bird
BIRD_DEPENDENCIES = host-flex host-bison
BIRD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
# 0001-configure.ac-fix-build-with-autoconf-2.70.patch
BIRD_AUTORECONF = YES
ifeq ($(BR2_PACKAGE_BIRD_CLIENT),y)
BIRD_CONF_OPTS += --enable-client
BIRD_DEPENDENCIES += ncurses readline
else
BIRD_CONF_OPTS += --disable-client
endif
ifeq ($(BR2_PACKAGE_LIBSSH),y)
BIRD_CONF_OPTS += --enable-libssh
BIRD_DEPENDENCIES += libssh
else
BIRD_CONF_OPTS += --disable-libssh
endif
BIRD_PROTOCOLS = \
$(if $(BR2_PACKAGE_BIRD_BFD),bfd) \
$(if $(BR2_PACKAGE_BIRD_BABEL),babel) \
$(if $(BR2_PACKAGE_BIRD_BGP),bgp) \
$(if $(BR2_PACKAGE_BIRD_MRT),mrt) \
$(if $(BR2_PACKAGE_BIRD_OSPF),ospf) \
$(if $(BR2_PACKAGE_BIRD_PERF),perf) \
$(if $(BR2_PACKAGE_BIRD_PIPE),pipe) \
$(if $(BR2_PACKAGE_BIRD_RADV),radv) \
$(if $(BR2_PACKAGE_BIRD_RIP),rip) \
$(if $(BR2_PACKAGE_BIRD_RPKI),rpki) \
$(if $(BR2_PACKAGE_BIRD_STATIC),static)
BIRD_CONF_OPTS += --with-protocols=$(subst $(space),$(comma),$(strip $(BIRD_PROTOCOLS)))
$(eval $(autotools-package))