[packages/kernel] add support for building kernel with icecream

atler atler at pld-linux.org
Sat Dec 11 20:50:38 CET 2021


commit cfc515a133fd075b59f38df76babf72002d6aa43
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Dec 11 20:47:28 2021 +0100

    add support for building kernel with icecream
    
    compiler needs access to custom kernel gcc plugins so distribute them as
    well by building them first (make scripts) and adding them to
    ICECC_EXTRAFILES

 kernel.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/kernel.spec b/kernel.spec
index 584b4983..9da14790 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -935,8 +935,14 @@ cd -
 
 %{__awk} %{?debug:-v dieOnError=1} -v infile=%{objdir}/%{defconfig} -f %{SOURCE8} %{objdir}/.config
 
+%{__make} \
+	TARGETOBJ=%{targetobj} \
+	%{?with_verbose:V=1} \
+	scripts
+
 # build kernel
 export DTC_FLAGS=-@
+ICECC_EXTRAFILES="${ICECC_EXTRAFILES:+$ICECC_EXTRAFILES:}$(test -d %{objdir}/scripts/gcc-plugins && find %{objdir}/scripts/gcc-plugins -name '*.so' | paste -s -d :)"
 %{__make} \
 	TARGETOBJ=%{targetobj} \
 	%{?with_verbose:V=1} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/cfc515a133fd075b59f38df76babf72002d6aa43



More information about the pld-cvs-commit mailing list