Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/zaurus/stand Force abi/float-abi/cpu
details: https://anonhg.NetBSD.org/src/rev/e816bb0f61f4
branches: trunk
changeset: 786567:e816bb0f61f4
user: matt <matt%NetBSD.org@localhost>
date: Wed May 01 22:16:15 2013 +0000
description:
Force abi/float-abi/cpu
Only allow to build on little-endian.
Force MACHINE to be zaurus.
diffstat:
sys/arch/zaurus/stand/Makefile | 6 +++++-
sys/arch/zaurus/stand/Makefile.inc | 3 ++-
sys/arch/zaurus/stand/zboot/Makefile | 5 ++++-
sys/arch/zaurus/stand/zbsdmod/Makefile | 3 ++-
4 files changed, 13 insertions(+), 4 deletions(-)
diffs (66 lines):
diff -r 4e3d1c934103 -r e816bb0f61f4 sys/arch/zaurus/stand/Makefile
--- a/sys/arch/zaurus/stand/Makefile Wed May 01 20:53:59 2013 +0000
+++ b/sys/arch/zaurus/stand/Makefile Wed May 01 22:16:15 2013 +0000
@@ -1,5 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2009/03/02 09:33:02 nonaka Exp $
+# $NetBSD: Makefile,v 1.3 2013/05/01 22:16:15 matt Exp $
+
+.include <bsd.endian.mk>
+.if ${TARGET_ENDIANNESS} == "1234"
SUBDIR= zbsdmod zboot
+.endif
.include <bsd.subdir.mk>
diff -r 4e3d1c934103 -r e816bb0f61f4 sys/arch/zaurus/stand/Makefile.inc
--- a/sys/arch/zaurus/stand/Makefile.inc Wed May 01 20:53:59 2013 +0000
+++ b/sys/arch/zaurus/stand/Makefile.inc Wed May 01 22:16:15 2013 +0000
@@ -1,3 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.1 2007/08/09 16:08:59 nonaka Exp $
+# $NetBSD: Makefile.inc,v 1.2 2013/05/01 22:16:15 matt Exp $
BINDIR= /usr/mdec
+MACHINE= zaurus
diff -r 4e3d1c934103 -r e816bb0f61f4 sys/arch/zaurus/stand/zboot/Makefile
--- a/sys/arch/zaurus/stand/zboot/Makefile Wed May 01 20:53:59 2013 +0000
+++ b/sys/arch/zaurus/stand/zboot/Makefile Wed May 01 22:16:15 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2012/01/18 23:12:21 nonaka Exp $
+# $NetBSD: Makefile,v 1.9 2013/05/01 22:16:16 matt Exp $
PROG= zboot
@@ -20,6 +20,8 @@
CPPFLAGS+= -nostdinc -I. -I${.CURDIR} -I${.OBJDIR} -I${S}
CPPFLAGS+= -D_STANDALONE -DHEAP_VARIABLE
CPPFLAGS+= -DLIBSA_ENABLE_LS_OP
+CPPFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft -mcpu=xscale
+CPUFLAGS=
AFLAGS+= -D_LOCORE
LDFLAGS+= -nostdlib -Bstatic
@@ -50,6 +52,7 @@
LIBSA= ${SALIB}
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${VERSIONFILE}
+ ${_MKTARGET_LINK}
${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
${VERSIONFILE} ${MACHINE} ${NEWVERSWHAT}
${CC} -c vers.c
diff -r 4e3d1c934103 -r e816bb0f61f4 sys/arch/zaurus/stand/zbsdmod/Makefile
--- a/sys/arch/zaurus/stand/zbsdmod/Makefile Wed May 01 20:53:59 2013 +0000
+++ b/sys/arch/zaurus/stand/zbsdmod/Makefile Wed May 01 22:16:15 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2011/12/11 14:05:39 nonaka Exp $
+# $NetBSD: Makefile,v 1.7 2013/05/01 22:16:16 matt Exp $
WARNS?= 4
@@ -21,6 +21,7 @@
COPTS= -Os
CFLAGS+= -fno-strict-aliasing
CFLAGS+= -DMACHINE=\"${MACHINE}\" -DUTS_RELEASE=\"2.4.20\"
+CPPFLAGS+= -mabi=apcs-gnu -mfloat-abi=soft -mcpu=xscale
CPPFLAGS+= -nostdinc -D_STANDALONE
CPPFLAGS+= -I${.OBJDIR} -I${S}
Home |
Main Index |
Thread Index |
Old Index