[OS-BUILD PATCH] redhat: allow dbgonly cross builds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jan Stancek <jstancek@xxxxxxxxxx>

redhat: allow dbgonly cross builds

with_dbgonly currently disables cross builds, which leads to errors
for cross compiled debug builds since target CFLAGS are passed to make
building host progs:
  + /usr/bin/make <snip>  -mcpu=power9 -mtune=power9 ARCH=powerpc olddefconfig
  cc1: error: bad value ‘power9’ for ‘-mtune=’ switch
  cc1: note: valid arguments to ‘-mtune=’ switch are: <snip>
  make[1]: *** [scripts/Makefile.host:110: scripts/basic/fixdep] Error 1
  make: *** [Makefile:640: scripts_basic] Error 2

There's no reason why -debug variants shouldn't be cross-compiled,
so don't (re)define with_cross for dbgonly builds.

Signed-off-by: Jan Stancek <jstancek@xxxxxxxxxx>

diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template
index blahblah..blahblah 100644
--- a/redhat/kernel.spec.template
+++ b/redhat/kernel.spec.template
@@ -428,8 +428,6 @@ Summary: The Linux kernel
 %define with_bpftool 0
 %define with_kernel_abi_stablelists 0
 %define with_selftests 0
-%define with_cross 0
-%define with_cross_headers 0
 %define with_ipaclones 0
 %endif
 

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2552
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux