Be explicit about building for little endian. This allows efiboot to be
built with the armv7be toolchain.
This commit is contained in:
parent
e6dd42d44f
commit
b4ab0863f3
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue