]> git.baikalelectronics.ru Git - uboot.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)
commita990f3deb285bf52b924c19e55f6104ad7f178d8
treea6217929ca189fe678428d5c98f9aefcf3fa152b
parentfe576030e492e6870d5c0892c595cff505e04c84
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