From fdc8ed9a064b15d7bebcdab0ebb8fdc3fd919a35 Mon Sep 17 00:00:00 2001 From: fredette Date: Wed, 27 Jun 2001 17:03:10 +0000 Subject: [PATCH] Updated for ELF support. --- sys/arch/sun2/conf/Makefile.sun2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/arch/sun2/conf/Makefile.sun2 b/sys/arch/sun2/conf/Makefile.sun2 index c93c641a7864..2d2140ca4d73 100644 --- a/sys/arch/sun2/conf/Makefile.sun2 +++ b/sys/arch/sun2/conf/Makefile.sun2 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.sun2,v 1.3 2001/05/29 02:20:26 mrg Exp $ +# $NetBSD: Makefile.sun2,v 1.4 2001/06/27 17:03:10 fredette Exp $ # Makefile for NetBSD # @@ -46,13 +46,13 @@ S!= cd ../../../..; pwd .endif SUN2= $S/arch/sun2 -TEXTADDR=0000C000 +TEXTADDR=00006000 # Override CPP defaults entirely, so cross-compilation works. # Keep -nostdinc before all -I flags, similar for -undef ... HAVE_EGCS!= ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo INCLUDES= -nostdinc -I. -I$S/arch -I$S -XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000 +XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000 -D__ELF__ DEFINES= -D_KERNEL -D_KERNEL_OPT -Dsun2 CPPFLAGS= ${INCLUDES} ${XDEFS} ${DEFINES} ${IDENT} ${PARAM} # Make it easy to override this on the command line... @@ -74,6 +74,8 @@ STRIPFLAGS= -g ### find out what to use for libkern KERN_AS= obj +# XXX lib/libkern/arch/m68k/Makefile.inc needs to know that +# XXX our MACHINE_ARCH is m68000, and not m68k. --fredette KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} .include "$S/lib/libkern/Makefile.inc" .ifndef PROF