diff --git a/sys/arch/mvme68k/stand/Makefile.booters b/sys/arch/mvme68k/stand/Makefile.booters index a82da0c6b1a1..b81047582091 100644 --- a/sys/arch/mvme68k/stand/Makefile.booters +++ b/sys/arch/mvme68k/stand/Makefile.booters @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.20 2009/12/24 16:39:39 tsutsui Exp $ +# $NetBSD: Makefile.booters,v 1.21 2011/01/02 05:30:11 tsutsui Exp $ S?= ${.CURDIR}/../../../.. MDEC_DIR?= /usr/mdec @@ -56,18 +56,8 @@ ${PROG}: machine m68k ${PROGDEPENDS} LIB_SA_DIR= ${.CURDIR}/../libsa LIBSA_DIR!= cd ${LIB_SA_DIR} && ${PRINTOBJDIR} -LIBSA=${LIBSA_DIR}/libsa.a - -.PHONY: ${LIBSA} -${LIBSA}: - @echo making sure the libsa is up to date... - @cd ${LIB_SA_DIR} && ${MAKE} - -SRTOBJ?= ${LIBSA_DIR}/SRT0.o -.PHONY: ${SRTOBJ} -${SRTOBJ}: - @echo making sure the libsa is up to date... - @cd ${LIB_SA_DIR} && ${MAKE} SRT0.o +LIBSA= ${LIBSA_DIR}/lib/sa/libsa.a +LIBKERN= ${LIBSA_DIR}/lib/kern/libkern.a LIB_BUG_DIR= ${.CURDIR}/../libbug LIBBUG_DIR!= cd ${LIB_BUG_DIR} && ${PRINTOBJDIR} diff --git a/sys/arch/mvme68k/stand/bootsd/Makefile b/sys/arch/mvme68k/stand/bootsd/Makefile index 4b0d6236143a..57222cee93dc 100644 --- a/sys/arch/mvme68k/stand/bootsd/Makefile +++ b/sys/arch/mvme68k/stand/bootsd/Makefile @@ -1,9 +1,9 @@ # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $NetBSD: Makefile,v 1.6 2000/12/04 21:25:58 scw Exp $ +# $NetBSD: Makefile,v 1.7 2011/01/02 05:30:11 tsutsui Exp $ SRCS= boot.c conf.c PROG= bootsd -LIBS= ${LIBSA} ${LIBBUG} +LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} DPADD= ${LIBS} .include "../Makefile.booters" diff --git a/sys/arch/mvme68k/stand/bootsd/version b/sys/arch/mvme68k/stand/bootsd/version index 0bf315dff692..a836cc6bb316 100644 --- a/sys/arch/mvme68k/stand/bootsd/version +++ b/sys/arch/mvme68k/stand/bootsd/version @@ -1,7 +1,8 @@ -$NetBSD: version,v 1.4 2001/11/09 19:53:14 scw Exp $ +$NetBSD: version,v 1.5 2011/01/02 05:30:11 tsutsui Exp $ 1.1: Initial bootsd import (from sun3 port, adjusted for mvme68k port by Chuck Cranor) 1.2: Support verbose/quiet boot. 1.3: loadfile() update: ELF symbols no longer need backward seeks. 1.4: loadfile() update to avoid backwards seeks for ELF Program Headers. +1.5: switched to using MI libsa and libkern diff --git a/sys/arch/mvme68k/stand/bootst/Makefile b/sys/arch/mvme68k/stand/bootst/Makefile index ebfc3092d1a6..afaa498d4721 100644 --- a/sys/arch/mvme68k/stand/bootst/Makefile +++ b/sys/arch/mvme68k/stand/bootst/Makefile @@ -1,11 +1,11 @@ # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $NetBSD: Makefile,v 1.14 2002/02/09 09:36:00 lukem Exp $ +# $NetBSD: Makefile,v 1.15 2011/01/02 05:30:11 tsutsui Exp $ CLEANFILES+=stboot bootst bootst.bug PROG=bootst.bug SRCS= boot.c conf.c dev_tape.c rawfs.c -LIBS= ${LIBSA} ${LIBBUG} +LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} SRTOBJ= DPADD= ${LIBS} ${WRTVID} diff --git a/sys/arch/mvme68k/stand/bootst/version b/sys/arch/mvme68k/stand/bootst/version index 2c75f23b7cc7..83e0354a5579 100644 --- a/sys/arch/mvme68k/stand/bootst/version +++ b/sys/arch/mvme68k/stand/bootst/version @@ -1,4 +1,4 @@ -$NetBSD: version,v 1.5 2009/04/11 10:56:13 scw Exp $ +$NetBSD: version,v 1.6 2011/01/02 05:30:11 tsutsui Exp $ 1.1: Initial bootst (from Dale Rahn) 1.2: Update based on sun3 tapeboot (by Chuck Cranor) @@ -6,3 +6,4 @@ $NetBSD: version,v 1.5 2009/04/11 10:56:13 scw Exp $ 1.4: loadfile() update: ELF symbols no longer need backward seeks. 1.5: loadfile() update to avoid backwards seeks for ELF Program Headers. 1.6: hackprom_diskrd() needs loads up to 3MB from tape for current kernels. +1.7: switched to using MI libsa and libkern diff --git a/sys/arch/mvme68k/stand/bootxx/Makefile b/sys/arch/mvme68k/stand/bootxx/Makefile index 0ae89c356bb3..c2bf1ca395d1 100644 --- a/sys/arch/mvme68k/stand/bootxx/Makefile +++ b/sys/arch/mvme68k/stand/bootxx/Makefile @@ -1,12 +1,12 @@ # from: @(#)Makefile 8.1 (Berkeley) 6/10/93 -# $NetBSD: Makefile,v 1.8 2000/12/05 21:51:38 scw Exp $ +# $NetBSD: Makefile,v 1.9 2011/01/02 05:30:12 tsutsui Exp $ COMPILE.S= $(CC) -x assembler-with-cpp -traditional-cpp \ $(ASFLAGS) $(CPPFLAGS) $(INCPATH) -c -o $*.o SRCS= bootxx.c conf.c block_x.S PROG= bootxx -LIBS= ${LIBSA} ${LIBBUG} +LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} DPADD= ${LIBS} SRTOBJ= diff --git a/sys/arch/mvme68k/stand/bootxx/version b/sys/arch/mvme68k/stand/bootxx/version index 8e53199b8105..8472657cd6f8 100644 --- a/sys/arch/mvme68k/stand/bootxx/version +++ b/sys/arch/mvme68k/stand/bootxx/version @@ -1,5 +1,6 @@ -$NetBSD: version,v 1.2 2000/09/24 12:32:37 jdolecek Exp $ +$NetBSD: version,v 1.3 2011/01/02 05:30:12 tsutsui Exp $ 1.1: Boot program for mvme68k, initial revision (import from sun3 port, adapt to mvme68k by Chuck Cranor) 1.2: Support verbose/quiet boot. +1.3: switched to using MI libsa and libkern diff --git a/sys/arch/mvme68k/stand/libsa/Makefile b/sys/arch/mvme68k/stand/libsa/Makefile index fa4fe20d420b..45f232b04172 100644 --- a/sys/arch/mvme68k/stand/libsa/Makefile +++ b/sys/arch/mvme68k/stand/libsa/Makefile @@ -1,50 +1,6 @@ -# $NetBSD: Makefile,v 1.32 2010/03/15 16:13:13 he Exp $ +# $NetBSD: Makefile,v 1.33 2011/01/02 05:30:12 tsutsui Exp $ -LIB=sa - -# Logically src/sys -DIR_SA=$S/lib/libsa -DIR_KERN=$S/lib/libkern -DIR_LIBC=$S/../common/lib/libc - -SRC_net= arp.c \ - bootp.c bootparam.c \ - dev_net.c \ - ether.c \ - ip_cksum.c \ - net.c netif.c nfs.c \ - rarp.c rpc.c - -SRC_sa= alloc.c \ - close.c closeall.c \ - dev.c dev_net.c dkcksum.c \ - ether_sprintf.c exit.c \ - files.c fstat.c \ - getfile.c gets.c globals.c \ - intoa.c \ - loadfile.c loadfile_aout.c loadfile_elf32.c lseek.c \ - memmove.c memcmp.c memcpy.c memset.c \ - nullfs.c \ - open.c \ - panic.c printf.c \ - read.c \ - snprintf.c sprintf.c strerror.c strncmp.c subr_prf.c \ - twiddle.c \ - udp.c ufs.c - -SRC_common+= ashrdi3.c inet_addr.c strncpy.c strlen.c - -SRC_libc_inet= inet_addr.c -SRC_libc_quad= ashldi3.c ashrdi3.c -SRC_libc_string= strcmp.c strlen.c strncpy.c - -SRC_mvme= exec_mvme.c - -SRC_here= bugdev.c \ - chiptotime.c clock.c \ - parse_args.c - -SRCS= ${SRC_net} ${SRC_sa} ${SRC_kern} ${SRC_common} ${SRC_mvme} ${SRC_here} +S!= cd ${.CURDIR}/../../../..; pwd # DBG= -DDEBUG -DNETIF_DEBUG -DNFS_DEBUG -DRPC_DEBUG \ # -DNET_DEBUG -DRARP_DEBUG -DETHER_DEBUG @@ -55,20 +11,29 @@ CPPFLAGS+= -DSUPPORT_BOOTP -DSUPPORT_DHCP CPPFLAGS+= -DSUPPORT_RARP -DSUPPORT_BOOTPARAM CPPFLAGS+= -DSUPPORT_NFS -DNFS_NOSYMLINK -OBJS+= SRT0.o -CLEANFILES+= SRT0.o - .include "../Makefile.booters" -.include "${S}/../common/lib/libc/Makefile.inc" - -.PATH: ${DIR_SA} ${DIR_KERN} \ - ${DIR_LIBC}/inet ${DIR_LIBC}/quad ${DIR_LIBC}/string # only needed during build libinstall:: -all realall: lib${LIB}.a +.include -.include -.undef DESTDIR -.include +### find out what to use for libsa +SA_AS= library +SAMISCMAKEFLAGS= SA_USE_LOADFILE=yes SA_EXTRADIR=${.CURDIR} +.include "${S}/lib/libsa/Makefile.inc" +LIBSA= ${SALIB} + +### find out what to use for libkern +KERN_AS= library +.include "${S}/lib/libkern/Makefile.inc" +LIBKERN= ${KERNLIB} + +LIBS= ${LIBSA} ${LIBKERN} + +all realall: ${LIBS} + +cleandir distclean: .WAIT cleanlibdir + +cleanlibdir: + -rm -rf lib diff --git a/sys/arch/mvme68k/stand/libsa/Makefile.inc b/sys/arch/mvme68k/stand/libsa/Makefile.inc new file mode 100644 index 000000000000..377feab8e092 --- /dev/null +++ b/sys/arch/mvme68k/stand/libsa/Makefile.inc @@ -0,0 +1,17 @@ +# $NetBSD: Makefile.inc,v 1.5 2011/01/02 05:30:12 tsutsui Exp $ + +S!= cd ${SA_EXTRADIR}/../../../..; pwd + +.PATH.c: ${SA_EXTRADIR} +.PATH.S: ${SA_EXTRADIR} + +SRC_sa= dev_net.c + +SRC_mvme= exec_mvme.c + +SRC_here= SRT0.S \ + bugdev.c \ + chiptotime.c clock.c \ + parse_args.c + +SRCS+= ${SRC_sa} ${SRC_mvme} ${SRC_here} diff --git a/sys/arch/mvme68k/stand/netboot/Makefile b/sys/arch/mvme68k/stand/netboot/Makefile index eeddc6db62db..0e619183ce5f 100644 --- a/sys/arch/mvme68k/stand/netboot/Makefile +++ b/sys/arch/mvme68k/stand/netboot/Makefile @@ -1,11 +1,11 @@ -# $NetBSD: Makefile,v 1.15 2002/04/10 18:43:21 scw Exp $ +# $NetBSD: Makefile,v 1.16 2011/01/02 05:30:12 tsutsui Exp $ DEFS= -DSUN_BOOTPARAMS SRCS= boot.c conf.c devopen.c SRCS+= if_ie.c if_le.c PROG= netboot -LIBS= ${LIBSA} ${LIBBUG} +LIBS= ${LIBSA} ${LIBKERN} ${LIBBUG} DPADD= ${LIBS} CLEANFILES+= netboot.bin diff --git a/sys/arch/mvme68k/stand/netboot/version b/sys/arch/mvme68k/stand/netboot/version index 455be04cfe06..dbad6325ab67 100644 --- a/sys/arch/mvme68k/stand/netboot/version +++ b/sys/arch/mvme68k/stand/netboot/version @@ -1,4 +1,4 @@ -$NetBSD: version,v 1.4 2001/11/09 19:53:14 scw Exp $ +$NetBSD: version,v 1.5 2011/01/02 05:30:12 tsutsui Exp $ 1.1: Initial bootst import. 1.2: Makefile: update from OpenBSD @@ -9,3 +9,4 @@ $NetBSD: version,v 1.4 2001/11/09 19:53:14 scw Exp $ 1.3: Support verbose/quiet boot. 1.4: loadfile() update: ELF symbols no longer need backward seeks. 1.5: loadfile() update to avoid backwards seeks for ELF Program Headers. +1.6: switched to using MI libsa and libkern diff --git a/sys/arch/mvme68k/stand/sboot/version b/sys/arch/mvme68k/stand/sboot/version index 17c345710e76..fd1576bfefa0 100644 --- a/sys/arch/mvme68k/stand/sboot/version +++ b/sys/arch/mvme68k/stand/sboot/version @@ -1,6 +1,7 @@ -$NetBSD: version,v 1.2 2000/09/24 12:32:37 jdolecek Exp $ +$NetBSD: version,v 1.3 2011/01/02 05:30:12 tsutsui Exp $ 1.1: Initial import of mvme68k port. 1.2: update for new (SRT0/bugcrt) calling convention 1.3: use real libsa instead of own libc_sa.c 1.4: Support verbose/quiet boot. +1.5: switched to using MI libsa and libkern