Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot/bootarm Be explicit about building for lit...



details:   https://anonhg.NetBSD.org/src/rev/8678aeb59328
branches:  trunk
changeset: 943700:8678aeb59328
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Tue Sep 08 15:36:37 2020 +0000

description:
Be explicit about building for little endian. This allows efiboot to be
built with the armv7be toolchain.

diffstat:

 sys/stand/efiboot/bootarm/Makefile |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r e33f6ae436db -r 8678aeb59328 sys/stand/efiboot/bootarm/Makefile
--- a/sys/stand/efiboot/bootarm/Makefile        Tue Sep 08 14:57:32 2020 +0000
+++ b/sys/stand/efiboot/bootarm/Makefile        Tue Sep 08 15:36:37 2020 +0000
@@ -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 @@
 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"
 



Home | Main Index | Thread Index | Old Index