From a3437f973a701c18732c7959993897948067df5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:01:53 +0100 Subject: [PATCH 01/10] x86_64: use multi-profile for target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- bsp/x86-64/.config | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsp/x86-64/.config b/bsp/x86-64/.config index e995baed..99f65768 100644 --- a/bsp/x86-64/.config +++ b/bsp/x86-64/.config @@ -3,8 +3,9 @@ # CONFIG_TARGET_x86=y CONFIG_TARGET_x86_64=y -CONFIG_TARGET_x86_64_DEVICE_generic=y -# CONFIG_TARGET_ROOTFS_EXT4FS is not set +CONFIG_TARGET_MULTI_PROFILE=y +CONFIG_TARGET_DEVICE_x86_64_DEVICE_generic=y +CONFIG_TARGET_DEVICE_PACKAGES_x86_64_DEVICE_generic="" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set -- 2.39.2 From 96f5550ccb7a50430e658f47bf7f41aa78252e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:02:32 +0100 Subject: [PATCH 02/10] layer3: remove fff-babeld MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Babeld has been replaced with bird by default for quite some time now. Remove babeld and all configurations scripts (fff-babeld) to reduce image size. Signed-off-by: Fabian Bläse --- src/packages/fff/fff-layer3/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/src/packages/fff/fff-layer3/Makefile b/src/packages/fff/fff-layer3/Makefile index ad74804e..252e7b5f 100644 --- a/src/packages/fff/fff-layer3/Makefile +++ b/src/packages/fff/fff-layer3/Makefile @@ -12,7 +12,6 @@ define Package/fff-layer3 URL:=https://www.freifunk-franken.de DEPENDS:=+fff-alfred-monitoring-proxy \ +fff-babel \ - +fff-babeld \ +fff-babel-bird2 \ +fff-boardname \ +fff-dhcp \ -- 2.39.2 From f06490736bbac7722c702a283e62b2149554266c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:02:46 +0100 Subject: [PATCH 03/10] layer3: switch from tcpdump to tcpdump-mini MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- src/packages/fff/fff-layer3/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-layer3/Makefile b/src/packages/fff/fff-layer3/Makefile index 252e7b5f..409c8212 100644 --- a/src/packages/fff/fff-layer3/Makefile +++ b/src/packages/fff/fff-layer3/Makefile @@ -33,7 +33,7 @@ define Package/fff-layer3 +nftables \ +snmp-utils \ +tc \ - +tcpdump \ + +tcpdump-mini \ +vxlan endef -- 2.39.2 From fb7e410d45dd489b07f2c3014ee8bee1b9344fbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:04:26 +0100 Subject: [PATCH 04/10] Create fff-extra package for devices with large flash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Devices with large flash can hold more packages and tools to improve user experience. Create an additional package which can be used to select packages only on targets with large flash (currently >= 16 MiB). Signed-off-by: Fabian Bläse --- bsp/ipq40xx-generic/.config | 1 + bsp/ipq806x-generic/.config | 1 + bsp/mpc85xx-p1010/.config | 1 + bsp/octeon/.config | 1 + bsp/ramips-mt7621/.config | 1 + bsp/x86-64/.config | 1 + src/packages/fff/fff-extra/Makefile | 19 +++++++++++++++++++ 7 files changed, 25 insertions(+) create mode 100644 src/packages/fff/fff-extra/Makefile diff --git a/bsp/ipq40xx-generic/.config b/bsp/ipq40xx-generic/.config index 33181615..32f301e2 100644 --- a/bsp/ipq40xx-generic/.config +++ b/bsp/ipq40xx-generic/.config @@ -18,6 +18,7 @@ CONFIG_CLEAN_IPKG=y # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_ath10k-firmware-qca4019=m CONFIG_PACKAGE_ath10k-firmware-qca4019-ct=m +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_kmod-ath10k=m CONFIG_PACKAGE_kmod-ath10k-ct=m CONFIG_PACKAGE_libwolfssl=m diff --git a/bsp/ipq806x-generic/.config b/bsp/ipq806x-generic/.config index f6869c1e..cb2bc702 100644 --- a/bsp/ipq806x-generic/.config +++ b/bsp/ipq806x-generic/.config @@ -23,6 +23,7 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y diff --git a/bsp/mpc85xx-p1010/.config b/bsp/mpc85xx-p1010/.config index 51675588..2a46c19e 100644 --- a/bsp/mpc85xx-p1010/.config +++ b/bsp/mpc85xx-p1010/.config @@ -23,6 +23,7 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y diff --git a/bsp/octeon/.config b/bsp/octeon/.config index 50ce5ba2..cc5b99d7 100644 --- a/bsp/octeon/.config +++ b/bsp/octeon/.config @@ -16,6 +16,7 @@ CONFIG_TARGET_PER_DEVICE_ROOTFS=y CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y diff --git a/bsp/ramips-mt7621/.config b/bsp/ramips-mt7621/.config index 3e4fd231..4ca8a14b 100644 --- a/bsp/ramips-mt7621/.config +++ b/bsp/ramips-mt7621/.config @@ -29,6 +29,7 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y diff --git a/bsp/x86-64/.config b/bsp/x86-64/.config index 99f65768..c32479a0 100644 --- a/bsp/x86-64/.config +++ b/bsp/x86-64/.config @@ -15,6 +15,7 @@ CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set CONFIG_CLEAN_IPKG=y # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_kmod-vmxnet3=y CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m diff --git a/src/packages/fff/fff-extra/Makefile b/src/packages/fff/fff-extra/Makefile new file mode 100644 index 00000000..e08130a2 --- /dev/null +++ b/src/packages/fff/fff-extra/Makefile @@ -0,0 +1,19 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-extra +PKG_RELEASE:=$(COMMITCOUNT) + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-extra + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken gateway configuration + URL:=https://www.freifunk-franken.de +endef + +define Package/fff-extra/description + This package selects useful packages for devices with enough disk space available +endef + +$(eval $(call BuildPackage,fff-extra)) -- 2.39.2 From 737b9771d5af67295352e5b3ac85771e3e0cd798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:07:09 +0100 Subject: [PATCH 05/10] layer3: move bmon to fff-extra MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bmon takes up a lot of disk space, but is not essential for operation. Move it to fff-extra. Signed-off-by: Fabian Bläse --- src/packages/fff/fff-extra/Makefile | 1 + src/packages/fff/fff-layer3/Makefile | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/fff/fff-extra/Makefile b/src/packages/fff/fff-extra/Makefile index e08130a2..455d472c 100644 --- a/src/packages/fff/fff-extra/Makefile +++ b/src/packages/fff/fff-extra/Makefile @@ -10,6 +10,7 @@ define Package/fff-extra CATEGORY:=Freifunk TITLE:=Freifunk-Franken gateway configuration URL:=https://www.freifunk-franken.de + DEPENDS:=+bmon endef define Package/fff-extra/description diff --git a/src/packages/fff/fff-layer3/Makefile b/src/packages/fff/fff-layer3/Makefile index 409c8212..8095bf07 100644 --- a/src/packages/fff/fff-layer3/Makefile +++ b/src/packages/fff/fff-layer3/Makefile @@ -22,7 +22,6 @@ define Package/fff-layer3 +fff-ra \ +fff-web-mqtt \ +fff-wireguard \ - +bmon \ +kmod-sched-cake \ +gre \ +@PACKAGE_grev4 \ -- 2.39.2 From 9347cc01197f94a3aa7b2c859ff8c65ff4579f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:07:25 +0100 Subject: [PATCH 06/10] Disable unused bird protocols MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On a typical Freifunk router, only a small subset of bird protocols is in use. Disable unused bird protocols to save disk space. Signed-off-by: Fabian Bläse --- ...02-bird-disable-unnecessary-protocols.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 feed_patches/routing/0002-bird-disable-unnecessary-protocols.patch diff --git a/feed_patches/routing/0002-bird-disable-unnecessary-protocols.patch b/feed_patches/routing/0002-bird-disable-unnecessary-protocols.patch new file mode 100644 index 00000000..a0482741 --- /dev/null +++ b/feed_patches/routing/0002-bird-disable-unnecessary-protocols.patch @@ -0,0 +1,18 @@ +From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= +Date: Sat, 6 Jan 2024 13:24:58 +0100 +Subject: [PATCH] bird: disable unnecessary protocols + +diff --git a/bird2/Makefile b/bird2/Makefile +index 9fd0031..dc827b0 100644 +--- a/bird2/Makefile ++++ b/bird2/Makefile +@@ -97,7 +97,7 @@ protocols, telling BIRD to show various information, telling it to show + a routing table filtered by a filter, or asking BIRD to reconfigure. + endef + +-CONFIGURE_ARGS += --disable-libssh ++CONFIGURE_ARGS += --disable-libssh --with-protocols="babel pipe radv static" + + define Package/bird2/conffiles + /etc/bird.conf + -- 2.39.2 From d09e0dc6dcb260d38d65065750a20fdf18638fb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:08:20 +0100 Subject: [PATCH 07/10] ath79: use bigger squashfs block size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A bigger squashfs block size improves compression ratio. The improved compression ratio is necessary for the Archer C60 devices (v1 + v2) because they include large wifi drivers. Signed-off-by: Fabian Bläse --- bsp/ath79-generic/.config | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/ath79-generic/.config b/bsp/ath79-generic/.config index e7d567ce..f59ab7f2 100644 --- a/bsp/ath79-generic/.config +++ b/bsp/ath79-generic/.config @@ -101,3 +101,4 @@ CONFIG_PACKAGE_ath10k-firmware-qca988x-ct=m CONFIG_PACKAGE_kmod-ath10k-ct-smallbuffers=m CONFIG_PACKAGE_kmod-ath10k-ct=m CONFIG_STRIP_KERNEL_EXPORTS=y +CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=1024 -- 2.39.2 From 5febf145bd0f6ca3271c29d25ba70b1a7ac4f969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:09:00 +0100 Subject: [PATCH 08/10] Remove uclient-fetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- bsp/ath79-generic/.config | 2 ++ bsp/ipq40xx-generic/.config | 2 ++ bsp/ipq806x-generic/.config | 2 ++ bsp/mpc85xx-p1010/.config | 2 ++ bsp/octeon/.config | 2 ++ bsp/ramips-mt7621/.config | 2 ++ bsp/ramips-mt76x8/.config | 2 ++ bsp/x86-64/.config | 2 ++ 8 files changed, 16 insertions(+) diff --git a/bsp/ath79-generic/.config b/bsp/ath79-generic/.config index f59ab7f2..43cb685b 100644 --- a/bsp/ath79-generic/.config +++ b/bsp/ath79-generic/.config @@ -85,9 +85,11 @@ CONFIG_KERNEL_SQUASHFS_FRAGMENT_CACHE_SIZE=1 CONFIG_PACKAGE_hostapd-mini=y CONFIG_PACKAGE_iwinfo=m CONFIG_PACKAGE_libiwinfo=m +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_PACKAGE_wpad-mini=m CONFIG_PACKAGE_ath10k-firmware-qca9887=m diff --git a/bsp/ipq40xx-generic/.config b/bsp/ipq40xx-generic/.config index 32f301e2..05de0f2d 100644 --- a/bsp/ipq40xx-generic/.config +++ b/bsp/ipq40xx-generic/.config @@ -21,9 +21,11 @@ CONFIG_PACKAGE_ath10k-firmware-qca4019-ct=m CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_kmod-ath10k=m CONFIG_PACKAGE_kmod-ath10k-ct=m +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_PACKAGE_kmod-hwmon-core=y diff --git a/bsp/ipq806x-generic/.config b/bsp/ipq806x-generic/.config index cb2bc702..9ddab5d6 100644 --- a/bsp/ipq806x-generic/.config +++ b/bsp/ipq806x-generic/.config @@ -24,9 +24,11 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_PACKAGE_ath10k-firmware-qca99x0=m CONFIG_PACKAGE_kmod-ath10k=y diff --git a/bsp/mpc85xx-p1010/.config b/bsp/mpc85xx-p1010/.config index 2a46c19e..63a28eac 100644 --- a/bsp/mpc85xx-p1010/.config +++ b/bsp/mpc85xx-p1010/.config @@ -24,9 +24,11 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 diff --git a/bsp/octeon/.config b/bsp/octeon/.config index cc5b99d7..6661a08a 100644 --- a/bsp/octeon/.config +++ b/bsp/octeon/.config @@ -17,9 +17,11 @@ CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 diff --git a/bsp/ramips-mt7621/.config b/bsp/ramips-mt7621/.config index 4ca8a14b..d4fe1eae 100644 --- a/bsp/ramips-mt7621/.config +++ b/bsp/ramips-mt7621/.config @@ -30,9 +30,11 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 diff --git a/bsp/ramips-mt76x8/.config b/bsp/ramips-mt76x8/.config index 6be14b2e..f0c306fe 100644 --- a/bsp/ramips-mt76x8/.config +++ b/bsp/ramips-mt76x8/.config @@ -29,8 +29,10 @@ CONFIG_CLEAN_IPKG=y # CONFIG_FASTD_ENABLE_METHOD_GENERIC_GMAC is not set # CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC is not set # CONFIG_PACKAGE_ALFRED_VIS is not set +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y diff --git a/bsp/x86-64/.config b/bsp/x86-64/.config index c32479a0..b5da8e86 100644 --- a/bsp/x86-64/.config +++ b/bsp/x86-64/.config @@ -17,8 +17,10 @@ CONFIG_CLEAN_IPKG=y # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y CONFIG_PACKAGE_kmod-vmxnet3=y +CONFIG_PACKAGE_libuclient=m CONFIG_PACKAGE_libwolfssl=m CONFIG_PACKAGE_opkg=m CONFIG_PACKAGE_wpad-basic=y +CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y -- 2.39.2 From 7f4b63056f167a366b99e86da1eb05db86048db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:18:42 +0100 Subject: [PATCH 09/10] Disable unnecessary busybox features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- bsp/ath79-generic/.config | 8 ++++++ bsp/ipq40xx-generic/.config | 8 ++++++ bsp/ipq806x-generic/.config | 8 ++++++ bsp/mpc85xx-p1010/.config | 8 ++++++ bsp/octeon/.config | 8 ++++++ bsp/ramips-mt7621/.config | 8 ++++++ bsp/ramips-mt76x8/.config | 8 ++++++ bsp/x86-64/.config | 8 ++++++ .../0001-Remove-unnecessary-dependency.patch | 25 +++++++++++++++++++ 9 files changed, 89 insertions(+) create mode 100644 build_patches/openwrt/0001-Remove-unnecessary-dependency.patch diff --git a/bsp/ath79-generic/.config b/bsp/ath79-generic/.config index 43cb685b..fa68f5f4 100644 --- a/bsp/ath79-generic/.config +++ b/bsp/ath79-generic/.config @@ -67,10 +67,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_ath79_generic_DEVICE_ubnt_unifiac-mesh="-kmod-ath1 CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set diff --git a/bsp/ipq40xx-generic/.config b/bsp/ipq40xx-generic/.config index 05de0f2d..8a579bf6 100644 --- a/bsp/ipq40xx-generic/.config +++ b/bsp/ipq40xx-generic/.config @@ -9,10 +9,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_ipq40xx_generic_DEVICE_avm_fritzbox-4040="-kmod-at CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_PACKAGE_ALFRED_VIS is not set diff --git a/bsp/ipq806x-generic/.config b/bsp/ipq806x-generic/.config index 9ddab5d6..8270a9b9 100644 --- a/bsp/ipq806x-generic/.config +++ b/bsp/ipq806x-generic/.config @@ -9,10 +9,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_ipq806x_generic_DEVICE_tplink_c2600="-ath10k-firmw CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set diff --git a/bsp/mpc85xx-p1010/.config b/bsp/mpc85xx-p1010/.config index 63a28eac..1aad4f25 100644 --- a/bsp/mpc85xx-p1010/.config +++ b/bsp/mpc85xx-p1010/.config @@ -9,10 +9,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_mpc85xx_p1010_DEVICE_tplink_tl-wdr4900-v1="" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set diff --git a/bsp/octeon/.config b/bsp/octeon/.config index 6661a08a..335b2885 100644 --- a/bsp/octeon/.config +++ b/bsp/octeon/.config @@ -9,10 +9,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_octeon_generic_DEVICE_ubnt_edgerouter-4="" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_PACKAGE_ALFRED_VIS is not set diff --git a/bsp/ramips-mt7621/.config b/bsp/ramips-mt7621/.config index d4fe1eae..233086db 100644 --- a/bsp/ramips-mt7621/.config +++ b/bsp/ramips-mt7621/.config @@ -15,10 +15,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt7621_DEVICE_xiaomi_mi-router-4a-gigabit=" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set diff --git a/bsp/ramips-mt76x8/.config b/bsp/ramips-mt76x8/.config index f0c306fe..395cad5d 100644 --- a/bsp/ramips-mt76x8/.config +++ b/bsp/ramips-mt76x8/.config @@ -15,10 +15,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_ramips_mt76x8_DEVICE_xiaomi_mi-router-4a-100m="" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_DROPBEAR_CURVE25519 is not set # CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 is not set diff --git a/bsp/x86-64/.config b/bsp/x86-64/.config index b5da8e86..d5db6b3f 100644 --- a/bsp/x86-64/.config +++ b/bsp/x86-64/.config @@ -9,10 +9,18 @@ CONFIG_TARGET_DEVICE_PACKAGES_x86_64_DEVICE_generic="" CONFIG_BUSYBOX_CUSTOM=y CONFIG_TARGET_PER_DEVICE_ROOTFS=y # CONFIG_BUSYBOX_CONFIG_BRCTL is not set +# CONFIG_BUSYBOX_CONFIG_CHGRP is not set +# CONFIG_BUSYBOX_CONFIG_CHOWN is not set # CONFIG_BUSYBOX_CONFIG_CROND is not set # CONFIG_BUSYBOX_CONFIG_CRONTAB is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_FAST_TOP is not set # CONFIG_BUSYBOX_CONFIG_FEATURE_NTPD_SERVER is not set +# CONFIG_BUSYBOX_CONFIG_IFCONFIG is not set +# CONFIG_BUSYBOX_CONFIG_IP is not set +# CONFIG_BUSYBOX_CONFIG_MKSWAP is not set +# CONFIG_BUSYBOX_CONFIG_ROUTE is not set +# CONFIG_BUSYBOX_CONFIG_SWAPOFF is not set +# CONFIG_BUSYBOX_CONFIG_SWAPON is not set CONFIG_CLEAN_IPKG=y # CONFIG_PACKAGE_ALFRED_VIS is not set CONFIG_PACKAGE_fff-extra=y diff --git a/build_patches/openwrt/0001-Remove-unnecessary-dependency.patch b/build_patches/openwrt/0001-Remove-unnecessary-dependency.patch new file mode 100644 index 00000000..7c660a38 --- /dev/null +++ b/build_patches/openwrt/0001-Remove-unnecessary-dependency.patch @@ -0,0 +1,25 @@ +From 19e4f5bdf7de5364c0d58e741f733dfc057d0952 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= +Date: Sat, 6 Jan 2024 14:34:15 +0100 +Subject: [PATCH] Remove unnecessary dependency + +--- + package/network/utils/wireguard-tools/Makefile | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/package/network/utils/wireguard-tools/Makefile b/package/network/utils/wireguard-tools/Makefile +index 5b1fab057d..24fff3725e 100644 +--- a/package/network/utils/wireguard-tools/Makefile ++++ b/package/network/utils/wireguard-tools/Makefile +@@ -35,8 +35,6 @@ define Package/wireguard-tools + MAINTAINER:=Jason A. Donenfeld + TITLE:=WireGuard userspace control program (wg) + DEPENDS:= \ +- +@BUSYBOX_CONFIG_IP \ +- +@BUSYBOX_CONFIG_FEATURE_IP_LINK \ + +kmod-wireguard + endef + +-- +2.43.0 + -- 2.39.2 From f56e3321698708c3728ad384028d98d43a074e39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Sat, 6 Jan 2024 16:20:09 +0100 Subject: [PATCH 10/10] Disable unnecessary libcurl features MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Bläse --- bsp/ath79-generic/.config | 4 ++++ bsp/ipq806x-generic/.config | 4 ++++ bsp/mpc85xx-p1010/.config | 4 ++++ bsp/octeon/.config | 4 ++++ bsp/ramips-mt7621/.config | 4 ++++ bsp/ramips-mt76x8/.config | 4 ++++ bsp/x86-64/.config | 4 ++++ 7 files changed, 28 insertions(+) diff --git a/bsp/ath79-generic/.config b/bsp/ath79-generic/.config index fa68f5f4..ef0b59a7 100644 --- a/bsp/ath79-generic/.config +++ b/bsp/ath79-generic/.config @@ -112,3 +112,7 @@ CONFIG_PACKAGE_kmod-ath10k-ct-smallbuffers=m CONFIG_PACKAGE_kmod-ath10k-ct=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=1024 +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/ipq806x-generic/.config b/bsp/ipq806x-generic/.config index 8270a9b9..a452ba20 100644 --- a/bsp/ipq806x-generic/.config +++ b/bsp/ipq806x-generic/.config @@ -43,3 +43,7 @@ CONFIG_PACKAGE_kmod-ath10k=y CONFIG_PACKAGE_ath10k-firmware-qca99x0-ct=m CONFIG_PACKAGE_kmod-ath10k-ct=m CONFIG_STRIP_KERNEL_EXPORTS=y +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/mpc85xx-p1010/.config b/bsp/mpc85xx-p1010/.config index 1aad4f25..748da585 100644 --- a/bsp/mpc85xx-p1010/.config +++ b/bsp/mpc85xx-p1010/.config @@ -40,3 +40,7 @@ CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/octeon/.config b/bsp/octeon/.config index 335b2885..ccdd64e9 100644 --- a/bsp/octeon/.config +++ b/bsp/octeon/.config @@ -33,3 +33,7 @@ CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/ramips-mt7621/.config b/bsp/ramips-mt7621/.config index 233086db..fd1c6792 100644 --- a/bsp/ramips-mt7621/.config +++ b/bsp/ramips-mt7621/.config @@ -46,3 +46,7 @@ CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=512 +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/ramips-mt76x8/.config b/bsp/ramips-mt76x8/.config index 395cad5d..5e114b4c 100644 --- a/bsp/ramips-mt76x8/.config +++ b/bsp/ramips-mt76x8/.config @@ -44,3 +44,7 @@ CONFIG_PACKAGE_wpad-basic=y CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set diff --git a/bsp/x86-64/.config b/bsp/x86-64/.config index d5db6b3f..829b81f0 100644 --- a/bsp/x86-64/.config +++ b/bsp/x86-64/.config @@ -32,3 +32,7 @@ CONFIG_PACKAGE_wpad-basic=y CONFIG_PACKAGE_uclient-fetch=m CONFIG_PACKAGE_wpad-basic-wolfssl=m CONFIG_STRIP_KERNEL_EXPORTS=y +# CONFIG_LIBCURL_FILE is not set +# CONFIG_LIBCURL_FTP is not set +# CONFIG_LIBCURL_PROXY is not set +# CONFIG_LIBCURL_UNIX_SOCKETS is not set -- 2.39.2