]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: allow cross-compiling sandbox
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 10 Feb 2021 17:54:25 +0000 (18:54 +0100)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:26 +0000 (19:23 +1300)
commitf7691a6d736bec7915c227ac14076f9993a27367
treea6217929ca189fe678428d5c98f9aefcf3fa152b
parent0fb560d9a71e9bd3c36944dda9b6122df63f49a3
sandbox: allow cross-compiling sandbox

UEFI test files like helloworld.efi require an architecture specific
PE-COFF header.

Currently this does not work for cross compiling. If $CROSS_COMPILE is set,
use the first part of the architecture triplet from the variable to
choose the PE-COFF header.

Now we can cross-compile the sandbox, e.g.

    make sandbox_defconfig NO_SDL=1
    CROSS_COMPILE=/opt/bin/aarch64-linux-gnu- NO_SDL=1 MK_ARCH=aarch64 make

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile