diff --git a/SPECS/kernel.spec b/SPECS/kernel.spec index ef9b6fa..1b2162b 100644 --- a/SPECS/kernel.spec +++ b/SPECS/kernel.spec @@ -1148,6 +1148,13 @@ VERSION=%{version} NAME=%{name} ./generate_all_configs.sh %define build_hostldflags %{__global_ldflags} %endif +%if !%{with_debuginfo} +for i in *.config +do + sed -i 's/^CONFIG_DEBUG_INFO=y/# CONFIG_DEBUG_INFO is not set/' $i +done +%endif + # enable GCOV kernel config options if gcov is on %if %{with_gcov} for i in *.config