Module Name:    src
Committed By:   jmcneill
Date:           Tue Sep  8 16:34:43 UTC 2020

Modified Files:
        src/sys/stand/efiboot/bootaa64: Makefile

Log Message:
Be explicit about building for little endian. This allows efiboot to be
built with the aarch64eb toolchain.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/sys/stand/efiboot/bootaa64/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/bootaa64/Makefile
diff -u src/sys/stand/efiboot/bootaa64/Makefile:1.8 src/sys/stand/efiboot/bootaa64/Makefile:1.9
--- src/sys/stand/efiboot/bootaa64/Makefile:1.8	Sun Jun 21 17:24:26 2020
+++ src/sys/stand/efiboot/bootaa64/Makefile	Tue Sep  8 16:34:43 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2020/06/21 17:24:26 jmcneill Exp $
+# $NetBSD: Makefile,v 1.9 2020/09/08 16:34:43 jmcneill Exp $
 
 PROG=		bootaa64.efi
 OBJFMT=		binary
@@ -7,12 +7,14 @@ NEWVERSWHAT=	"efiboot (arm64)"
 EXTRA_SOURCES=	efibootaa64.c
 EXTRA_SOURCES+=	cache.S
 
-COPTS+=		-mgeneral-regs-only -fno-jump-tables
+COPTS+=		-mgeneral-regs-only -mlittle-endian -fno-jump-tables
+AFLAGS+=	-mlittle-endian
 CFLAGS+=	-DEFIBOOT_ALIGN=0x200000
 CFLAGS+=	-DEFIBOOT_RUNTIME_ADDRESS=0xffff800000000000L
 CFLAGS+=	-DEFIBOOT_RUNTIME_SIZE=0x40000000UL
 CFLAGS+=	-DEFIBOOT_ACPI
 CFLAGS+=	-DEFIBOOT_MODULE_MACHINE=\"evbarm\"
+LDFLAGS+=	-EL
 
 .include "${.CURDIR}/../Makefile.efiboot"
 

Reply via email to