[PATCH v2 1/1] sandbox: allow cross-compiling sandbox
Simon Glass
sjg at chromium.org
Wed Feb 10 22:34:09 CET 2021
On Wed, 10 Feb 2021 at 10:59, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> 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 at gmx.de>
> ---
> v2:
> use $CROSS_COMPILE instead of an extra environment variable
> ---
> Makefile | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list