Module Name: src
Committed By: jmcneill
Date: Tue Sep 8 15:36:37 UTC 2020
Modified Files:
src/sys/stand/efiboot/bootarm: Makefile
Log Message:
Be explicit about building for little endian. This allows efiboot to be
built with the armv7be toolchain.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/stand/efiboot/bootarm/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/stand/efiboot/bootarm/Makefile
diff -u src/sys/stand/efiboot/bootarm/Makefile:1.5 src/sys/stand/efiboot/bootarm/Makefile:1.6
--- src/sys/stand/efiboot/bootarm/Makefile:1.5 Sun Jun 21 17:24:26 2020
+++ src/sys/stand/efiboot/bootarm/Makefile Tue Sep 8 15:36:37 2020
@@ -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"