From 02eca55b4e14f3e94c5bbbedbdcd465d7e6eaa7d Mon Sep 17 00:00:00 2001 From: Pratham Patel Date: Sun, 1 Oct 2023 08:51:10 +0530 Subject: [PATCH] improve the custom option enablement --- extra-configs/r8169.sh | 2 +- master.inc | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/extra-configs/r8169.sh b/extra-configs/r8169.sh index 9385e75..581f02d 100644 --- a/extra-configs/r8169.sh +++ b/extra-configs/r8169.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -./scripts/config --file .config --set-str R8169 'm' +./scripts/config --file .config --enable R8169 # Q: What requires this option to be enabled? # A: Enabling this option adds support for the Realtek RTL8125 2.5GbE Controller # that is present on the Radxa Rock 5 Model B SBC, connected via the PCIe bus. diff --git a/master.inc b/master.inc index a1d4cc5..bddf33b 100644 --- a/master.inc +++ b/master.inc @@ -96,6 +96,9 @@ cp -vr kernel-tfg/{configure-linux.sh,extra-configs} . rm -rf kernel-tfg/ ./configure-linux.sh +# "remake" the .config since './scripts/config' does not handle dependencies at all +oldconfig + %build source ./configure-linux.sh %{make} %{?_smp_mflags} PYTHON=%{__python3} %{make_targets}