Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn26/stand Fix abi/arch/float-abi for boot code



details:   https://anonhg.NetBSD.org/src/rev/bcacf059d703
branches:  trunk
changeset: 786569:bcacf059d703
user:      matt <matt%NetBSD.org@localhost>
date:      Wed May 01 22:36:52 2013 +0000

description:
Fix abi/arch/float-abi for boot code
Force machine to be acorn26
Only build when little-endian non-eabi

diffstat:

 sys/arch/acorn26/stand/Makefile           |  8 +++++++-
 sys/arch/acorn26/stand/Makefile.buildboot |  5 ++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r c7bac6139db6 -r bcacf059d703 sys/arch/acorn26/stand/Makefile
--- a/sys/arch/acorn26/stand/Makefile   Wed May 01 22:30:39 2013 +0000
+++ b/sys/arch/acorn26/stand/Makefile   Wed May 01 22:36:52 2013 +0000
@@ -1,5 +1,11 @@
-#      $NetBSD: Makefile,v 1.1 2002/03/24 15:47:24 bjh21 Exp $
+#      $NetBSD: Makefile,v 1.2 2013/05/01 22:36:52 matt Exp $
+
+.include <bsd.endian.mk>
+
+.if empty(MACHINE_ARCH:Mearm*) && ${TARGET_ENDIANNESS} == "1234"
 
 SUBDIR= boot26
 
+.endif
+
 .include <bsd.subdir.mk>
diff -r c7bac6139db6 -r bcacf059d703 sys/arch/acorn26/stand/Makefile.buildboot
--- a/sys/arch/acorn26/stand/Makefile.buildboot Wed May 01 22:30:39 2013 +0000
+++ b/sys/arch/acorn26/stand/Makefile.buildboot Wed May 01 22:36:52 2013 +0000
@@ -1,9 +1,10 @@
-#      $NetBSD: Makefile.buildboot,v 1.13 2012/08/16 16:23:32 matt Exp $
+#      $NetBSD: Makefile.buildboot,v 1.14 2013/05/01 22:36:52 matt Exp $
 
 S?=    ${.CURDIR}/../../../..
 
 .PATH: ${.CURDIR}/../lib
 
+MACHINE= acorn26
 SRCS=  ${PROGSOURCE}
 NOMAN=# defined
 BINDIR=/usr/mdec
@@ -27,9 +28,11 @@
        ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
            ${.CURDIR}/version ${MACHINE} ${NEWVERSWHAT}
 
+CPUFLAGS=
 CPPFLAGS+=     -D_STANDALONE -DHIMEM=0x28000
 CPPFLAGS+=     -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
 CPPFLAGS+=     -I${.CURDIR}/../lib
+CPPFLAGS+=     -mabi=apcs-gnu -mfloat-abi=soft -march=armv2
 CFLAGS=                -O2
 CFLAGS+=       -ffreestanding
 CFLAGS+=       -Wall -Wstrict-prototypes -Wmissing-prototypes



Home | Main Index | Thread Index | Old Index