All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] aarch64, common: improve clang and llvm support
@ 2024-11-29  1:49 Volodymyr Babchuk
  2024-11-29  1:49 ` [PATCH 1/5] arm: bugframe: emit msg offset only if msg is present Volodymyr Babchuk
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Volodymyr Babchuk @ 2024-11-29  1:49 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org
  Cc: Volodymyr Babchuk, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Michal Orzel, Volodymyr Babchuk, Andrew Cooper,
	Jan Beulich

This patch series addresses two main issues:

1. Some errors when using clang for aarch64 build

2. Unability to use clang for cross-compilation

While first problem has straightforward fix: add -march argument and
allow to use FP registers for vfg.c, second one is much trickier. I am
aware of the earlier attempts (like [1]), so I decided to use
different approach. Bscailly, I chose to use LLVM tooling as an
option. As LLVM tooling supports cross-compilation inherently, we
don't need to use CROSS_COMPILE varialbe at all.

  make XEN_TARGET_ARCH=arm64 clang=y llvm=y

Shoud work on all host platforms, although I tested this only on x86.

[1] https://patchwork.kernel.org/project/xen-devel/cover/20190327184531.30986-1-julien.grall@arm.com/

Volodymyr Babchuk (5):
  arm: bugframe: emit msg offset only if msg is present
  build: add possibility to use LLVM tools
  build: arm64: provide -target and -march if using clang
  xen: build: add support for CFLAGS_REMOVE variable
  xen: arm64: remove -mgeneral-regs-only for vfp.c

 config/GNUCommon.mk            | 16 ++++++++++++++++
 config/Linux.mk                |  4 ++++
 config/StdGNU.mk               | 18 +-----------------
 config/arm64.mk                |  4 ++++
 config/llvm.mk                 | 17 +++++++++++++++++
 xen/Rules.mk                   |  2 +-
 xen/arch/arm/arm64/Makefile    |  2 ++
 xen/arch/arm/include/asm/bug.h |  4 ++++
 8 files changed, 49 insertions(+), 18 deletions(-)
 create mode 100644 config/GNUCommon.mk
 create mode 100644 config/llvm.mk

-- 
2.47.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2024-12-03 10:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-29  1:49 [PATCH 0/5] aarch64, common: improve clang and llvm support Volodymyr Babchuk
2024-11-29  1:49 ` [PATCH 1/5] arm: bugframe: emit msg offset only if msg is present Volodymyr Babchuk
2024-11-29  7:44   ` Jan Beulich
2024-11-29  1:49 ` [PATCH 2/5] build: add possibility to use LLVM tools Volodymyr Babchuk
2024-11-29  7:57   ` Jan Beulich
2024-11-29 14:50     ` Anthony PERARD
2024-11-29  1:49 ` [PATCH 3/5] build: arm64: provide -target and -march if using clang Volodymyr Babchuk
2024-11-29  8:04   ` Jan Beulich
2024-11-29 22:12     ` Volodymyr Babchuk
2024-11-30 17:15       ` Julien Grall
2024-12-02  7:52         ` Jan Beulich
2024-12-02 20:38           ` Julien Grall
2024-12-03 10:35             ` Luca Fancellu
2024-11-30 17:29   ` Julien Grall
2024-11-29  1:49 ` [PATCH 4/5] xen: build: add support for CFLAGS_REMOVE variable Volodymyr Babchuk
2024-11-29  8:10   ` Jan Beulich
2024-11-29  1:49 ` [PATCH 5/5] xen: arm64: remove -mgeneral-regs-only for vfp.c Volodymyr Babchuk
2024-11-29  8:12   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.