From 3c0db51fd08e72a25d21dc1352d7516d3d9de5fa Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Dec 25 2020 10:04:34 +0000 Subject: spec: Respect rpmbuild --without debuginfo The build (x86_64) uses 25G, while without CONFIG_DEBUG_INFO it uses 3GB. --- 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