diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-10-29 12:50:37 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-10-29 14:11:08 +0000 |
commit | 8fc11d8a4ad41f15af3d081250865f971312d871 (patch) | |
tree | a8c7cb048a52f2d53c8391da7ae63d86799f73dd /src/include/ipxe/efi/mnpnet.h | |
parent | 19f44d2998f6197b70fa2726c551bc8fe6956fa2 (diff) | |
download | ipxe-master.zip ipxe-master.tar.gz ipxe-master.tar.bz2 |
We currently require the variable CROSS (or CROSS_COMPILE) to be set
to specify the global cross-compilation prefix. This becomes
cumbersome when developing across multiple CPU architectures,
requiring frequent editing of build command lines and preventing
incompatible architectures from being built with a single command.
Allow a default cross-compilation prefix for each architecture to be
specified via the CROSS_COMPILE_<arch> variables. These may then be
provided as environment variables, e.g. using
export CROSS_COMPILE_arm32=arm-linux-gnu-
export CROSS_COMPILE_arm64=aarch64-linux-gnu-
export CROSS_COMPILE_loong64=loongarch64-linux-gnu-
export CROSS_COMPILE_riscv32=riscv64-linux-gnu-
export CROSS_COMPILE_riscv64=riscv64-linux-gnu-
This change requires some portions of the Makefile to be rearranged,
to allow for the fact that $(CROSS_COMPILE) may not have been set
until the build directory has been parsed to determine the CPU
architecture.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi/mnpnet.h')
0 files changed, 0 insertions, 0 deletions