]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[arm] Support building as a Linux userspace binary for AArch64
authorMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2023 20:31:30 +0000 (20:31 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sun, 22 Jan 2023 20:36:57 +0000 (20:36 +0000)
commit8f59911b201a89b99a2b0c8930b505cc3820b423
treee8c2a8b22ea54654ffe6913478e71cae1b1d276a
parent2061d658b3d199ec84976e6a573f68424369be69
[arm] Support building as a Linux userspace binary for AArch64

Add support for building as a Linux userspace binary for AArch64.
This allows the self-test suite to be more easily run for the 64-bit
ARM code.  For example:

  # On a native AArch64 system:
  #
  make bin-arm64-efi/tests.linux && ./bin-arm64-efi/tests.linux

  # On a non-AArch64 system (e.g. x86_64) via cross-compilation,
  # assuming that kernel and glibc headers are present within
  # /usr/aarch64-linux-gnu/sys-root/:
  #
  make bin-arm64-linux/tests.linux CROSS=aarch64-linux-gnu- && \
  qemu-aarch64 -L /usr/aarch64-linux-gnu/sys-root/ \
               ./bin-arm64-linux/tests.linux

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/arm/Makefile.linux [new file with mode: 0644]
src/arch/arm64/Makefile.linux [new file with mode: 0644]