I build a custom local kernel using the rawhide kernel src.rpm here on F31. I change the spec file to build only for my arch, x86_64, and not to build cross headers. But I notice that the config files for all the nobuild archs are still processed. This seems like an error to me. Is it?
In the kernel.spec file.
%define nobuildarches i386 i686 ppc64 s390x %{arm} %{power64} aarch64 ppc64le
Output from rpmbuild -bb kernel.spec.
Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-aarch64.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl-lpae.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-i686.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-ppc64le.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-s390x.config ... done
On 11/24/19 1:10 PM, stan wrote:
I build a custom local kernel using the rawhide kernel src.rpm here on F31. I change the spec file to build only for my arch, x86_64, and not to build cross headers. But I notice that the config files for all the nobuild archs are still processed. This seems like an error to me. Is it?
What you are suggesting is an optimization. There's no technical issue with running the checks on nobuild arches. If you have a patch to not run the checks we can see about incorporating it.
In the kernel.spec file.
%define nobuildarches i386 i686 ppc64 s390x %{arm} %{power64} aarch64 ppc64le
Output from rpmbuild -bb kernel.spec.
Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-aarch64.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl-lpae.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-armv7hl.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-i686.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-ppc64le.config ... done Processing /home/stan/rpmbuild/BUILD/kernel-5.3.fc31/linux-5.4.0-0.rc8.git1.2.20191124.fc31.x86_64/configs/kernel-5.4.0-s390x.config ... done _______________________________________________ kernel mailing list -- kernel@lists.fedoraproject.org To unsubscribe send an email to kernel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
On Mon, 25 Nov 2019 08:08:44 -0500 Laura Abbott labbott@redhat.com wrote:
On 11/24/19 1:10 PM, stan wrote:
I build a custom local kernel using the rawhide kernel src.rpm here on F31. I change the spec file to build only for my arch, x86_64, and not to build cross headers. But I notice that the config files for all the nobuild archs are still processed. This seems like an error to me. Is it?
What you are suggesting is an optimization. There's no technical issue with running the checks on nobuild arches. If you have a patch to not run the checks we can see about incorporating it.
Yeah, it's been happening forever, but I thought that while I was asking I might as well ask about it. If it was trivial to fix, it would save a little time.
Given my (lack of) understanding of spec files, I wouldn't trust any patch I could come up with, but I'll take a quick look next time I build a kernel. :-)
Thanks.
kernel@lists.fedoraproject.org