From b4ab0863f3bd2e99ead26fb0a3526e2fd505c1b8 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Tue, 8 Sep 2020 15:36:37 +0000 Subject: [PATCH] Be explicit about building for little endian. This allows efiboot to be built with the armv7be toolchain. --- sys/stand/efiboot/bootarm/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/stand/efiboot/bootarm/Makefile b/sys/stand/efiboot/bootarm/Makefile index ee1e13024b71..ecd6a222f41a 100644 --- a/sys/stand/efiboot/bootarm/Makefile +++ b/sys/stand/efiboot/bootarm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2020/06/21 17:24:26 jmcneill Exp $ +# $NetBSD: Makefile,v 1.6 2020/09/08 15:36:37 jmcneill Exp $ PROG= bootarm.efi OBJFMT= binary @@ -9,10 +9,12 @@ LIBGNUEFI_ARCH= arm EXTRA_SOURCES= efibootarm.c EXTRA_SOURCES+= cache.S -COPTS+= -mfloat-abi=soft -mno-unaligned-access -ffreestanding -fno-unwind-tables +COPTS+= -mfloat-abi=soft -mno-unaligned-access -mlittle-endian +COPTS+= -ffreestanding -fno-unwind-tables +AFLAGS+= -mlittle-endian CFLAGS+= -DEFIBOOT_ALIGN=0x1000000 CFLAGS+= -DEFIBOOT_MODULE_MACHINE=\"evbarm\" -LDFLAGS+= -N +LDFLAGS+= -N -EL .include "${.CURDIR}/../Makefile.efiboot"