From 9c331f1f899c2b61338f73a3d3d0d2420000fde0 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Mon, 31 Jul 2000 20:57:45 +0000 Subject: [PATCH] use 'makeoptions LDSCRIPTBASE="sh.x"' (or shl.x) to select ldscript file --- sys/arch/evbsh3/conf/COMPUTEX7750 | 5 ++++- sys/arch/evbsh3/conf/COMPUTEXEVB | 5 ++++- sys/arch/evbsh3/conf/CQREEKSH3 | 5 ++++- sys/arch/evbsh3/conf/DREAMCAST | 4 +++- sys/arch/evbsh3/conf/KZSH401 | 5 ++++- sys/arch/evbsh3/conf/Makefile.evbsh3 | 10 +++++----- 6 files changed, 24 insertions(+), 10 deletions(-) diff --git a/sys/arch/evbsh3/conf/COMPUTEX7750 b/sys/arch/evbsh3/conf/COMPUTEX7750 index c92373502515..ccf79884e40d 100644 --- a/sys/arch/evbsh3/conf/COMPUTEX7750 +++ b/sys/arch/evbsh3/conf/COMPUTEX7750 @@ -1,4 +1,4 @@ -# $NetBSD: COMPUTEX7750,v 1.2 2000/03/22 00:58:19 cgd Exp $ +# $NetBSD: COMPUTEX7750,v 1.3 2000/07/31 20:57:45 msaitoh Exp $ # # GENERIC -- everything that's currently supported # @@ -49,6 +49,9 @@ options BSC_RTCOR_VAL =0xa582 options FRQCR_VAL =0x0e23 options BSC_SDMR3_VAL =0xff940110 +makeoptions LDSCRIPTBASE="sh.x" # for big endian +#makeoptions LDSCRIPTBASE="shl.x" # for little endian + # Standard system options #options UCONSOLE # users can use TIOCCONS (for xconsole) #options INSECURE # disable kernel security levels diff --git a/sys/arch/evbsh3/conf/COMPUTEXEVB b/sys/arch/evbsh3/conf/COMPUTEXEVB index 04a239fe3ca2..4fe3aa95c412 100644 --- a/sys/arch/evbsh3/conf/COMPUTEXEVB +++ b/sys/arch/evbsh3/conf/COMPUTEXEVB @@ -1,4 +1,4 @@ -# $NetBSD: COMPUTEXEVB,v 1.4 2000/02/24 19:42:35 msaitoh Exp $ +# $NetBSD: COMPUTEXEVB,v 1.5 2000/07/31 20:57:46 msaitoh Exp $ # # GENERIC -- everything that's currently supported # @@ -34,6 +34,9 @@ options BSC_RTCOR_VAL =0xa582 options FRQCR_VAL =0x0122 options PFC_SCPCR_VAL =0x00aa +makeoptions LDSCRIPTBASE="sh.x" # for big endian +#makeoptions LDSCRIPTBASE="shl.x" # for little endian + # CPU-related options. #options MATH_EMULATE # floating point emulation diff --git a/sys/arch/evbsh3/conf/CQREEKSH3 b/sys/arch/evbsh3/conf/CQREEKSH3 index fd87481895b6..e16636d5278e 100644 --- a/sys/arch/evbsh3/conf/CQREEKSH3 +++ b/sys/arch/evbsh3/conf/CQREEKSH3 @@ -1,4 +1,4 @@ -# $NetBSD: CQREEKSH3,v 1.7 2000/02/24 19:42:35 msaitoh Exp $ +# $NetBSD: CQREEKSH3,v 1.8 2000/07/31 20:57:46 msaitoh Exp $ # # GENERIC -- everything that's currently supported # @@ -34,6 +34,9 @@ options BSC_RTCNT_VAL =0xa500 # XXX options BSC_RTCOR_VAL =0xa53a options FRQCR_VAL =0x0102 +makeoptions LDSCRIPTBASE="sh.x" # for big endian +#makeoptions LDSCRIPTBASE="shl.x" # for little endian + # CPU-related options. #options MATH_EMULATE # floating point emulation diff --git a/sys/arch/evbsh3/conf/DREAMCAST b/sys/arch/evbsh3/conf/DREAMCAST index 735e68f4e621..da15a46f0277 100644 --- a/sys/arch/evbsh3/conf/DREAMCAST +++ b/sys/arch/evbsh3/conf/DREAMCAST @@ -1,4 +1,4 @@ -# $NetBSD: DREAMCAST,v 1.1 2000/07/13 18:11:53 msaitoh Exp $ +# $NetBSD: DREAMCAST,v 1.2 2000/07/31 20:57:46 msaitoh Exp $ # # GENERIC -- everything that's currently supported # @@ -31,6 +31,8 @@ options BRAINS options USE_RTCCLK options SYNC_CLOCK_TO_RTC +makeoptions LDSCRIPTBASE="shl.x" # for little endian + options LED_ADDR=0xa8000000 # Standard system options diff --git a/sys/arch/evbsh3/conf/KZSH401 b/sys/arch/evbsh3/conf/KZSH401 index a1091da910ec..25555819aee9 100644 --- a/sys/arch/evbsh3/conf/KZSH401 +++ b/sys/arch/evbsh3/conf/KZSH401 @@ -1,4 +1,4 @@ -# $NetBSD: KZSH401,v 1.2 2000/03/22 00:58:19 cgd Exp $ +# $NetBSD: KZSH401,v 1.3 2000/07/31 20:57:47 msaitoh Exp $ # # GENERIC -- everything that's currently supported # @@ -45,6 +45,9 @@ options BSC_RFCR_VAL =0xa400 options FRQCR_VAL =0x0e13 options BSC_SDMR2_VAL =0xff90008c +makeoptions LDSCRIPTBASE="sh.x" # for big endian +#makeoptions LDSCRIPTBASE="shl.x" # for little endian + options LED_ADDR=0xa8000000 # Standard system options diff --git a/sys/arch/evbsh3/conf/Makefile.evbsh3 b/sys/arch/evbsh3/conf/Makefile.evbsh3 index 2bddbee14a94..04cb9cbcd3cd 100644 --- a/sys/arch/evbsh3/conf/Makefile.evbsh3 +++ b/sys/arch/evbsh3/conf/Makefile.evbsh3 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.evbsh3,v 1.7 2000/05/09 00:56:23 hubertf Exp $ +# $NetBSD: Makefile.evbsh3,v 1.8 2000/07/31 20:57:47 msaitoh Exp $ # Makefile for NetBSD # @@ -52,15 +52,15 @@ CWARNFLAGS= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes CWARNFLAGS+= -Wpointer-arith -Wno-parentheses # XXX Delete -Wuninitialized for now, since the compiler doesn't # XXX always get it right. --thorpej -CWARNFLAGS+= -Wno-uninitialized +CWARNFLAGS+= -Wno-uninitialized .if (${HAVE_EGCS} != "") CWARNFLAGS+= -Wno-main .endif CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE -LINKFLAGS= -e start -Map netbsd.map -T ../../conf/sh.x -LINKFLAGS2= -e start -Map netbsd2.map -T ../../conf/sh.x.RAM -LINKFLAGS3= -e start -Map netbsd3.map -T ../../conf/sh.x.ICE +LINKFLAGS= -e start -Map netbsd.map -T ../../conf/${LDSCRIPTBASE} +LINKFLAGS2= -e start -Map netbsd2.map -T ../../conf/${LDSCRIPTBASE}.RAM +LINKFLAGS3= -e start -Map netbsd3.map -T ../../conf/${LDSCRIPTBASE}.ICE STRIPFLAGS= --strip-debug MACHINE=evbsh3 MACHINE_ARCH=sh3