From fc47c0c7420f4f8608d4c486fb14439d50292f6e Mon Sep 17 00:00:00 2001 From: sommerfe Date: Fri, 12 Mar 1999 16:07:57 +0000 Subject: [PATCH] Also build serial bootblocks by default, installing into /usr/mdec/biosboot_ser.sym Change Makefile.booters to not assume `version' file is in source directory. --- distrib/sets/lists/base/md.i386 | 1 + sys/arch/i386/stand/Makefile | 4 +-- sys/arch/i386/stand/Makefile.booters | 4 +-- sys/arch/i386/stand/biosboot_ser/Makefile | 42 +++++++++++++++++++++++ 4 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 sys/arch/i386/stand/biosboot_ser/Makefile diff --git a/distrib/sets/lists/base/md.i386 b/distrib/sets/lists/base/md.i386 index 7b3633ac0f85..f72cfa785984 100644 --- a/distrib/sets/lists/base/md.i386 +++ b/distrib/sets/lists/base/md.i386 @@ -25,6 +25,7 @@ ./usr/lkm/procfs.o ./usr/lkm/umapfs.o ./usr/mdec/biosboot.sym +./usr/mdec/biosboot_ser.sym ./usr/mdec/dosboot.com ./usr/mdec/installboot ./usr/mdec/mbr diff --git a/sys/arch/i386/stand/Makefile b/sys/arch/i386/stand/Makefile index fb0f8d2378be..316fa2d5d7d9 100644 --- a/sys/arch/i386/stand/Makefile +++ b/sys/arch/i386/stand/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.8 1997/03/14 02:54:14 perry Exp $ +# $NetBSD: Makefile,v 1.9 1999/03/12 16:07:58 sommerfe Exp $ -SUBDIR= biosboot installboot +SUBDIR= biosboot biosboot_ser installboot SUBDIR+= dosboot #SUBDIR+= genprom netboot diff --git a/sys/arch/i386/stand/Makefile.booters b/sys/arch/i386/stand/Makefile.booters index f2537860ea06..5a3b41187d4e 100644 --- a/sys/arch/i386/stand/Makefile.booters +++ b/sys/arch/i386/stand/Makefile.booters @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.18 1999/02/07 18:25:54 tron Exp $ +# $NetBSD: Makefile.booters,v 1.19 1999/03/12 16:07:58 sommerfe Exp $ BINDIR= /usr/mdec STRIPFLAG= @@ -61,7 +61,7 @@ LDFLAGS=-N -M -e _start .endif vers.o: version - sh ${I386_STAND_DIR}/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} + sh ${I386_STAND_DIR}/newvers.sh ${.ALLSRC} ${NEWVERSWHAT} ${COMPILE.c} vers.c ${BASE}.sym: ${BSSTART} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} ${LIBI386} vers.o diff --git a/sys/arch/i386/stand/biosboot_ser/Makefile b/sys/arch/i386/stand/biosboot_ser/Makefile new file mode 100644 index 000000000000..7e9b933f9260 --- /dev/null +++ b/sys/arch/i386/stand/biosboot_ser/Makefile @@ -0,0 +1,42 @@ +# $NetBSD: Makefile,v 1.1 1999/03/12 16:07:58 sommerfe Exp $ + +S= ${.CURDIR}/../../../../ + +BASE= biosboot_ser +PROG= ${BASE}.sym +MKMAN= no +NEWVERSWHAT= "BIOS Boot" + +SRCS= main.c devopen.c conf.c exec.c + +CLEANFILES+= ${BSSTART} + +CPPFLAGS+= -DCOMPAT_OLDBOOT -DCOMPAT_386BSD_MBRPART + + +#Sample use of serial line debugger +#CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_COM0KBD +# or +CPPFLAGS+= -DSUPPORT_SERIAL=CONSDEV_AUTO -DDIRECT_SERIAL +# and maybe +#CPPFLAGS+= -DDIRECT_SERIAL -DCOMCONS_KEYPRESS -DCONSPEED=57600 +CPPFLAGS+= -DPASS_BIOSGEOM +#uncomment if there are problems with memory detection +#CPPFLAGS+= -DCONSERVATIVE_MEMDETECT +#increase MAXFLENTRIES if "installboot" complains about +# "not enough fragment space in bootcode" (default: 10) +#CPPFLAGS+= -DMAXFLENTRIES=15 +#set PRIM_LOADSZ to <=9 to make a 720k boot floppy (default: 15) +#CPPFLAGS+= -DPRIM_LOADSZ=9 + +#CFLAGS= -O2 -fomit-frame-pointer -fno-defer-pop +CFLAGS+= -Wall + +# XXX should go into library +SRCS+= ls.c +.PATH: ${.CURDIR}/../libsa ${.CURDIR}/../biosboot + +SAMISCCPPFLAGS+= -DHEAP_START=0x10000 -DHEAP_LIMIT=0x40000 +SAMISCMAKEFLAGS= SA_USE_CREAD=yes SA_INCLUDE_NET=no + +.include "../Makefile.booters"