Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/conf Per request of mrg%netbsd.org@localhost, use MAC...
details: https://anonhg.NetBSD.org/src/rev/7b6c3b83914a
branches: trunk
changeset: 516536:7b6c3b83914a
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Oct 24 19:12:18 2001 +0000
description:
Per request of mrg%netbsd.org@localhost, use MACHINE_ARCH of "sparc" for 32-bit
sparc64 kernels, thus defaulting to using the 32-bit "sparc" target
toolchain.
diffstat:
sys/arch/sparc64/conf/Makefile.sparc64 | 23 ++++++++---------------
1 files changed, 8 insertions(+), 15 deletions(-)
diffs (47 lines):
diff -r 3022fb3e0412 -r 7b6c3b83914a sys/arch/sparc64/conf/Makefile.sparc64
--- a/sys/arch/sparc64/conf/Makefile.sparc64 Wed Oct 24 18:49:38 2001 +0000
+++ b/sys/arch/sparc64/conf/Makefile.sparc64 Wed Oct 24 19:12:18 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.sparc64,v 1.40 2001/10/24 18:49:39 thorpej Exp $
+# $NetBSD: Makefile.sparc64,v 1.41 2001/10/24 19:12:18 thorpej Exp $
# Makefile for NetBSD
#
@@ -12,10 +12,14 @@
# /sys/arch/sparc64/conf/Makefile.sparc64
# after which config should be rerun for all machines of that type.
-# Always use sparc64 as the MACHINE_ARCH, so we select the correct
-# toolchain (i.e. need v9 instruction support in the assembler, etc.)
-# 32-bit vs. 64-bit will be selected based on compiler/assember options.
+# Default to 32-bit. Set the MACHINE_ARCH accordingly, using either
+# the 32-bit or 64-bit toolchain.
+LP64?= no
+.if ${LP64} == "yes"
MACHINE_ARCH=sparc64
+.else
+MACHINE_ARCH=sparc
+.endif
.include <bsd.own.mk>
@@ -51,19 +55,8 @@
# XXX always get it right. --thorpej
CWARNFLAGS+= -Wno-uninitialized
CWARNFLAGS+= -Wno-main
-
-# Select the compiler, assembler, and linker flags based on the
-# LP64 variable.
-LP64?= no
.if ${LP64} == "yes"
-CC:= ${CC} -m64
-AS:= ${AS} -64
-LD:= ${LD} -m elf64_sparc
CPPFLAGS+= -D_LP64
-.else
-CC:= ${CC} -m32
-AS:= ${AS} -32
-LD:= ${LD} -m elf32_sparc
.endif
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -Wa,-Av9a -mno-fpu
Home |
Main Index |
Thread Index |
Old Index