From d61b644ef52ef3f27e90f63c574779ffc8d32d80 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Wed, 7 Jan 2026 10:57:40 +0100 Subject: [PATCH] framework & kernel options - simplify armbian_kernel_config_apply_opts_from_arrays, no more ambiguity opts_m vs opts_y (part 2) --- lib/functions/compilation/armbian-kernel.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/functions/compilation/armbian-kernel.sh b/lib/functions/compilation/armbian-kernel.sh index b465b8a7cd..da167a9032 100644 --- a/lib/functions/compilation/armbian-kernel.sh +++ b/lib/functions/compilation/armbian-kernel.sh @@ -510,15 +510,7 @@ function armbian_kernel_config_apply_opts_from_arrays() { done for opt_m in "${opts_m[@]}"; do - actual_opt_value='m' - # NOTE: this isn't perfect, there may be something already - # in defconfig, but we can't see it from here. - if egrep -q "(CONFIG_)?${opt_m}=m" "${kernel_config_source_filename}"; then - : # do nothing - elif egrep -q "(CONFIG_)?${opt_m}=y" "${kernel_config_source_filename}"; then - actual_opt_value='y' - fi - kernel_config_modifying_hashes+=("${opt_m}=${actual_opt_value}") + kernel_config_modifying_hashes+=("${opt_m}=m") done for opt_val in "${!opts_val[@]}"; do