Skip to content

arm: tools: build for arm64 and enable cross-compiling for both arm32 and arm64

Ian Campbell xen-devel 1 version Applied

Status from this message: I applied all of this except #7 (xenctx one) which I need to have

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9tools: Use AC_SYS_LARGEFILE instead of calling getconf(1)config/Tools.mk.in tools/Rules.mk tools/config.h.in +2 more+1042 -2731 reply
2/9blktap2: use sys/eventfd.h if it is availabletools/blktap2/drivers/libaio-compat.h tools/config.h.in tools/configure +1 more+21 -51 reply
3/9tools: only build blktap1 on x86tools/Makefile+2 -01 reply
4/9tools: only check for Python devel tools if not cross-compiling.tools/configure tools/configure.ac+12 -21 reply
5/9tools: libxc: arm64 supporttools/libxc/xc_core.h tools/libxc/xenctrl.h+5 -12 replies
6/9tools: memshr: arm64 supporttools/memshr/bidir-hash.c+36 -122 replies
7/9xenctx: Support arm64.tools/xentrace/xenctx.c+6 -132 replies
8/9xen: arm64 uses the same I/O ABI as arm32xen/include/public/io/protocols.h+1 -11 reply
9/9xen: arm: remove PSR_MODE_MASK from public interface.xen/arch/arm/arm32/entry.S xen/arch/arm/arm64/entry.S xen/include/asm-arm/regs.h +1 more+8 -31 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchIan JacksonTim DeeganStefano Stabellini
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9A-b
6/9A-b A-b
7/9
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/09] arm: tools: build for arm64 and enable cross-compiling for both arm32 and arm64

The following patches shave some rough edges off the tools build system to allow cross compiling for at least arm32 and arm64 based on the Debian/Ubuntu multiarch infrastructure. They also add the necessary fixes to build for arm64 (which I have only tried cross, not native).

I have posted some instructions on how to compile with these patches on the wiki:
http://wiki.xen.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling

Thanks are due to Wookey who gave lots of good advice in the hackrooms at LinaroConnect last week.

I consider it an outstanding bug that you need to essentially pass CROSS_COMPILE and XEN_TARGET_ARCH to both configure and make. This is hardly the only remaining annoyance in our build system though...

Ian.