[OS-BUILD PATCH 0/3] Add clang config framework

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

 



From: Don Zickus on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2654

Compiling for clang is getting trickier to do because the configs are
different than gcc in some cases.  Mimic the kgcov framework to setup
clang to be easier to update their configs.

This framework is designed to blindly merge.py with any configs fed to
it.  This is unlike the build_configs framework where it uses
priority.rhel|fedora rules to merge things.

This leads to strange cases where clang debug configs need different
settings than clang non-debug configs.  For non-lto clang, due to clang
bugs it is easy to disable the debug features and get away with this.
But once resolved we will have to reinvestigate.  For lto clang, I just
hack out the debug and kgcov config files due to clashing Kconfig depend
rules.

I don't expect this to be a long term solution.  Perhaps when our config
rework is fully realized this just melts away.  TBD.

Signed-off-by: Don Zickus <dzickus@xxxxxxxxxx>

---
 redhat/configs/common/clang/debug/CONFIG_KASAN_STACK              |   1 +
 redhat/configs/common/clang/debug/CONFIG_KMSAN                    |   1 +
 redhat/configs/common/clang/generic/CONFIG_KASAN_STACK            |   1 +
 redhat/configs/common/clang/generic/CONFIG_KMSAN                  |   1 +
 redhat/configs/common/clang_lto/debug/README                      |   0 
 redhat/configs/common/clang_lto/generic/arm/CONFIG_LTO_CLANG_THIN |   1 +
 redhat/configs/common/clang_lto/generic/arm/CONFIG_LTO_NONE       |   1 +
 redhat/configs/common/clang_lto/generic/x86/CONFIG_LTO_CLANG_THIN |   1 +
 redhat/configs/common/clang_lto/generic/x86/CONFIG_LTO_NONE       |   1 +
 redhat/configs/common/clang_lto/generic/README                    |   0 
 redhat/configs/priority.fedora                                    |   4 -
 redhat/configs/priority.rhel                                      |   4 -
 redhat/configs/priority.snip                                      |   9 +
 redhat/kernel.spec.template                                       |  77 ++++++---
 14 files changed, 70 insertions(+), 32 deletions(-)
_______________________________________________
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