From 20b3f7f4ece0576cff76b20a016c4db13c58215b Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 21 Oct 2025 10:45:18 -0400 Subject: [PATCH] Strip CONFIG_ALL_KMODS --- openwrtbuilder | 4 ++++ profiles | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index bc2eed6..af270e3 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -593,6 +593,10 @@ from_source() { # Set compilation output dir config_opts+=("CONFIG_BINARY_FOLDER=\"$BIN_DIR\"") + # Only build explicit kmods + execute sed -i '/^CONFIG_ALL_KMODS=/d' "$seed_file" + config_opts+=("CONFIG_ALL_KMODS=n") + # Add custom packages for pkg in $PACKAGES; do if [[ $pkg == -* ]]; then diff --git a/profiles b/profiles index 0185755..01a6b44 100644 --- a/profiles +++ b/profiles @@ -9,7 +9,7 @@ default_packages=(nano htop diffutils tar iperf3 zsh rsync curl tcpdump ) # Default (but optional) kernel configs -default_configs=("CONFIG_BUILDBOT=n CONFIG_ALL_KMODS=n") +default_configs=("CONFIG_BUILDBOT=n") # Current devices declare -Ag r4s=(