Message ID | 20220309191944.382066-2-jkacur@redhat.com |
---|---|
State | New |
Headers | show |
Series | [1/2] rteval: Fix Popen for python3.6 where text=True is not available | expand |
diff --git a/rteval/modules/loads/kcompile.py b/rteval/modules/loads/kcompile.py index 8f97d38eca56..367f8dc1ca86 100644 --- a/rteval/modules/loads/kcompile.py +++ b/rteval/modules/loads/kcompile.py @@ -66,6 +66,7 @@ class KBuildJob: self.runcmd = f"make O={self.objdir} -C {self.kdir} -j{self.jobs}" self.cleancmd = f"make O={self.objdir} -C {self.kdir} clean allmodconfig" + self.cleancmd += f"&& pushd {self.objdir} && {self.kdir}/scripts/config -d CONFIG_MODULE_SIG_SHA1 -e CONFIG_MODULE_SIG_SHA512 && popd && make O={self.objdir} -C {self.kdir} olddefconfig" if self.binder: self.runcmd = self.binder + " " + self.runcmd self.cleancmd = self.binder + " " + self.cleancmd
rteval compiles the kernel using allmodconfig as a load. This can be a problem if sha1 signing of modules is disabled. Fix this by signing with sha512 Suggested-by: Juri Lelli <juri.lelli@redhat.com> Signed-off-by: John Kacur <jkacur@redhat.com> --- rteval/modules/loads/kcompile.py | 1 + 1 file changed, 1 insertion(+)