head	1.27;
access;
symbols
	perseant-exfatfs-base-20250801:1.27
	perseant-exfatfs-base-20240630:1.27
	perseant-exfatfs:1.27.0.48
	perseant-exfatfs-base:1.27
	cjep_sun2x:1.27.0.46
	cjep_sun2x-base:1.27
	cjep_staticlib_x-base1:1.27
	cjep_staticlib_x:1.27.0.44
	cjep_staticlib_x-base:1.27
	phil-wifi-20200421:1.27
	phil-wifi-20200411:1.27
	phil-wifi-20200406:1.27
	pgoyette-compat-merge-20190127:1.27
	pgoyette-compat-20190127:1.27
	pgoyette-compat-20190118:1.27
	pgoyette-compat-1226:1.27
	pgoyette-compat-1126:1.27
	pgoyette-compat-1020:1.27
	pgoyette-compat-0930:1.27
	pgoyette-compat-0906:1.27
	pgoyette-compat-0728:1.27
	pgoyette-compat-0625:1.27
	pgoyette-compat-0521:1.27
	pgoyette-compat-0502:1.27
	pgoyette-compat-0422:1.27
	pgoyette-compat-0415:1.27
	pgoyette-compat-0407:1.27
	pgoyette-compat-0330:1.27
	pgoyette-compat-0322:1.27
	pgoyette-compat-0315:1.27
	pgoyette-compat:1.27.0.42
	pgoyette-compat-base:1.27
	perseant-stdc-iso10646:1.27.0.40
	perseant-stdc-iso10646-base:1.27
	prg-localcount2-base3:1.27
	prg-localcount2-base2:1.27
	prg-localcount2-base1:1.27
	prg-localcount2:1.27.0.38
	prg-localcount2-base:1.27
	pgoyette-localcount-20170426:1.27
	bouyer-socketcan-base1:1.27
	pgoyette-localcount-20170320:1.27
	bouyer-socketcan:1.27.0.36
	bouyer-socketcan-base:1.27
	pgoyette-localcount-20170107:1.27
	pgoyette-localcount-20161104:1.27
	localcount-20160914:1.27
	pgoyette-localcount-20160806:1.27
	pgoyette-localcount-20160726:1.27
	pgoyette-localcount:1.27.0.34
	pgoyette-localcount-base:1.27
	netbsd-5-2-3-RELEASE:1.27
	netbsd-5-1-5-RELEASE:1.27
	yamt-pagecache-base9:1.27
	yamt-pagecache-tag8:1.27
	tls-earlyentropy:1.27.0.30
	tls-earlyentropy-base:1.27
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.27
	riastradh-drm2-base3:1.27
	netbsd-5-2-2-RELEASE:1.27
	netbsd-5-1-4-RELEASE:1.27
	netbsd-5-2-1-RELEASE:1.27
	netbsd-5-1-3-RELEASE:1.27
	agc-symver:1.27.0.32
	agc-symver-base:1.27
	tls-maxphys-base:1.27
	yamt-pagecache-base8:1.27
	netbsd-5-2:1.27.0.28
	yamt-pagecache-base7:1.27
	netbsd-5-2-RELEASE:1.27
	netbsd-5-2-RC1:1.27
	yamt-pagecache-base6:1.27
	yamt-pagecache-base5:1.27
	yamt-pagecache-base4:1.27
	netbsd-5-1-2-RELEASE:1.27
	netbsd-5-1-1-RELEASE:1.27
	yamt-pagecache-base3:1.27
	yamt-pagecache-base2:1.27
	yamt-pagecache:1.27.0.26
	yamt-pagecache-base:1.27
	bouyer-quota2-nbase:1.27
	bouyer-quota2:1.27.0.24
	bouyer-quota2-base:1.27
	matt-nb5-pq3:1.27.0.22
	matt-nb5-pq3-base:1.27
	netbsd-5-1:1.27.0.20
	netbsd-5-1-RELEASE:1.27
	netbsd-5-1-RC4:1.27
	netbsd-5-1-RC3:1.27
	netbsd-5-1-RC2:1.27
	netbsd-5-1-RC1:1.27
	netbsd-5-0-2-RELEASE:1.27
	netbsd-5-0-1-RELEASE:1.27
	jym-xensuspend-nbase:1.27
	netbsd-5-0:1.27.0.18
	netbsd-5-0-RELEASE:1.27
	netbsd-5-0-RC4:1.27
	netbsd-5-0-RC3:1.27
	netbsd-5-0-RC2:1.27
	jym-xensuspend:1.27.0.16
	jym-xensuspend-base:1.27
	netbsd-5-0-RC1:1.27
	netbsd-5:1.27.0.14
	netbsd-5-base:1.27
	yamt-pf42-base4:1.27
	yamt-pf42-base3:1.27
	hpcarm-cleanup-nbase:1.27
	yamt-pf42-base2:1.27
	yamt-pf42:1.27.0.12
	yamt-pf42-base:1.27
	mjf-devfs2:1.27.0.10
	mjf-devfs2-base:1.27
	keiichi-mipv6:1.27.0.8
	keiichi-mipv6-base:1.27
	mjf-devfs:1.27.0.6
	mjf-devfs-base:1.27
	cube-autoconf:1.27.0.4
	cube-autoconf-base:1.27
	hpcarm-cleanup:1.27.0.2
	hpcarm-cleanup-base:1.27
	netbsd-3-1-1-RELEASE:1.26
	netbsd-3-0-3-RELEASE:1.26
	netbsd-3-1:1.26.0.6
	netbsd-3-1-RELEASE:1.26
	netbsd-3-0-2-RELEASE:1.26
	netbsd-3-1-RC4:1.26
	netbsd-3-1-RC3:1.26
	netbsd-3-1-RC2:1.26
	netbsd-3-1-RC1:1.26
	netbsd-3-0-1-RELEASE:1.26
	netbsd-3-0:1.26.0.4
	netbsd-3-0-RELEASE:1.26
	netbsd-3-0-RC6:1.26
	netbsd-3-0-RC5:1.26
	netbsd-3-0-RC4:1.26
	netbsd-3-0-RC3:1.26
	netbsd-3-0-RC2:1.26
	netbsd-3-0-RC1:1.26
	netbsd-2-0-3-RELEASE:1.25.2.1
	netbsd-2-1:1.25.2.1.0.4
	netbsd-2-1-RELEASE:1.25.2.1
	netbsd-2-1-RC6:1.25.2.1
	netbsd-2-1-RC5:1.25.2.1
	netbsd-2-1-RC4:1.25.2.1
	netbsd-2-1-RC3:1.25.2.1
	netbsd-2-1-RC2:1.25.2.1
	netbsd-2-1-RC1:1.25.2.1
	netbsd-2-0-2-RELEASE:1.25.2.1
	netbsd-3:1.26.0.2
	netbsd-3-base:1.26
	netbsd-2-0-1-RELEASE:1.25.2.1
	netbsd-2:1.25.2.1.0.2
	netbsd-2-base:1.25.2.1
	netbsd-2-0-RELEASE:1.25.2.1
	netbsd-2-0-RC5:1.25.2.1
	netbsd-2-0-RC4:1.25.2.1
	netbsd-2-0-RC3:1.25.2.1
	netbsd-2-0-RC2:1.25.2.1
	netbsd-2-0-RC1:1.25.2.1
	netbsd-2-0:1.25.0.2
	netbsd-2-0-base:1.25
	netbsd-1-6-PATCH002-RELEASE:1.20
	netbsd-1-6-PATCH002:1.20
	netbsd-1-6-PATCH002-RC4:1.20
	netbsd-1-6-PATCH002-RC3:1.20
	netbsd-1-6-PATCH002-RC2:1.20
	netbsd-1-6-PATCH002-RC1:1.20
	netbsd-1-6-PATCH001:1.20
	netbsd-1-6-PATCH001-RELEASE:1.20
	netbsd-1-6-PATCH001-RC3:1.20
	netbsd-1-6-PATCH001-RC2:1.20
	netbsd-1-6-PATCH001-RC1:1.20
	fvdl_fs64_base:1.22
	netbsd-1-6-RELEASE:1.20
	netbsd-1-6-RC3:1.20
	netbsd-1-6-RC2:1.20
	netbsd-1-6-RC1:1.20
	netbsd-1-6:1.20.0.2
	netbsd-1-6-base:1.20
	netbsd-1-5-PATCH003:1.1.2.3
	netbsd-1-5-PATCH002:1.1.2.1
	netbsd-1-5-PATCH001:1.1.2.1
	netbsd-1-5-RELEASE:1.1.2.1
	netbsd-1-5-BETA2:1.1.2.1
	netbsd-1-5-BETA:1.1.2.1
	netbsd-1-5-ALPHA2:1.1
	netbsd-1-5:1.1.0.2
	netbsd-1-5-base:1.1;
locks; strict;
comment	@# @;


1.27
date	2006.06.02.22.11.07;	author hubertf;	state dead;
branches;
next	1.26;

1.26
date	2004.04.18.20.04.26;	author dsl;	state Exp;
branches;
next	1.25;

1.25
date	2003.06.05.14.30.14;	author dsl;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2003.04.23.14.19.59;	author jmmv;	state Exp;
branches;
next	1.23;

1.23
date	2003.02.01.13.53.36;	author zuntum;	state Exp;
branches;
next	1.22;

1.22
date	2002.12.20.23.12.01;	author thorpej;	state Exp;
branches;
next	1.21;

1.21
date	2002.10.22.23.36.46;	author thorpej;	state Exp;
branches;
next	1.20;

1.20
date	2002.02.08.05.02.20;	author lukem;	state Exp;
branches;
next	1.19;

1.19
date	2002.02.06.16.15.57;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2002.02.03.16.22.28;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2001.12.02.01.43.38;	author jmc;	state Exp;
branches;
next	1.16;

1.16
date	2001.11.19.05.31.01;	author jmc;	state Exp;
branches;
next	1.15;

1.15
date	2001.11.08.02.10.28;	author christos;	state Exp;
branches;
next	1.14;

1.14
date	2001.10.13.06.15.17;	author jmc;	state Exp;
branches;
next	1.13;

1.13
date	2001.10.10.05.13.53;	author enami;	state Exp;
branches;
next	1.12;

1.12
date	2001.10.05.01.19.44;	author jmc;	state Exp;
branches;
next	1.11;

1.11
date	2001.10.04.04.14.07;	author jmc;	state Exp;
branches;
next	1.10;

1.10
date	2001.06.24.12.15.59;	author veego;	state Exp;
branches;
next	1.9;

1.9
date	2001.05.26.00.10.07;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	2001.02.25.03.54.25;	author jmc;	state Exp;
branches;
next	1.7;

1.7
date	2000.12.17.09.57.49;	author jmc;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.01.07.57.58;	author garbled;	state Exp;
branches;
next	1.5;

1.5
date	2000.09.27.16.04.17;	author fvdl;	state Exp;
branches;
next	1.4;

1.4
date	2000.09.10.18.55.15;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.30.23.51.49;	author jhawk;	state Exp;
branches;
next	1.2;

1.2
date	2000.07.06.18.16.35;	author jhawk;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.12.18.51.17;	author he;	state Exp;
branches
	1.1.2.1;
next	;

1.25.2.1
date	2004.04.21.04.12.25;	author jmc;	state Exp;
branches;
next	;

1.1.2.1
date	2000.10.09.13.43.33;	author fvdl;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2002.02.09.20.33.58;	author he;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2002.03.25.17.32.49;	author he;	state Exp;
branches;
next	;


desc
@@


1.27
log
@Prepare creation of boot CDs:

 * Move files in distrib/i386:

floppies/instkernel/Makefile -> instkernel/Makefile
floppies/ramdisk-big/Makefile -> ramdisks/ramdisk-big/Makefile
floppies/ramdisk-big/disktab.preinstall -> ramdisks/ramdisk-big/disktab.preinstall
floppies/ramdisk-big/list -> ramdisks/ramdisk-big/list
floppies/ramdisk-big/list.inet6 -> ramdisks/ramdisk-big/list.inet6
floppies/ramdisk-rescuetiny/Makefile -> ramdisks/ramdisk-rescuetiny/Makefile
floppies/ramdisk-rescuetiny/list -> ramdisks/ramdisk-rescuetiny/list
floppies/ramdisk-small/Makefile -> ramdisks/ramdisk-small/Makefile
floppies/ramdisk-small/list -> ramdisks/ramdisk-small/list
floppies/ramdisk-tiny/Makefile -> ramdisks/ramdisk-tiny/Makefile
floppies/ramdisk-tiny/list -> ramdisks/ramdisk-tiny/list
floppies/common/Makefile.ramdisk -> ramdisks/common/Makefile.ramdisk
floppies/common/dot.profile -> ramdisks/common/dot.profile
floppies/common/list.ramdisk -> ramdisks/common/list.ramdisk
floppies/common/termcap.mini -> ramdisks/common/termcap.mini

 * Adjust paths
@
text
@#	$NetBSD: Makefile,v 1.26 2004/04/18 20:04:26 dsl Exp $

BOOTMODEL=	tiny
IMAGE=		ramdisk-${BOOTMODEL}.fs
IMAGESIZE=	1504k
MAKEDEVTARGETS=	std md0 fd0 fd1 wd0 wd1 wd2 wd3 cd0 cd1 pty0 ttyv0
MAKEFS_FLAGS=	-f 10
USE_SYSINST=	en

.include "${.CURDIR}/../common/Makefile.ramdisk"
@


1.26
log
@Add French, German and Polish sysinstmsgs to all ramdisks that include sysinst
expect those where at least one of the language variants isn't built,
and those that are known not to have enough space (i386 ramdisk-tiny).
Files added to list.sysinst, list.sysinst.en is used when these files
cannot be added.
This might hit a size limit on another build - but I have no (sane) way of
testing it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2003/06/05 14:30:14 dsl Exp $
@


1.25
log
@Change i386 sysinst to use my new boot code.
Update lists for ramdisks to include the required files.
NB /usr/sbin/installboot is not used by sysinst and is only in ramdisk-big.
Increase the sizes of the ramdisks, there is plenty of space in all the
boot floppies except rescue-tiny (2k) and boot-tiny (32k).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2003/04/23 14:19:59 jmmv Exp $
d8 1
a8 1
USE_SYSINST=	yes
@


1.25.2.1
log
@Pullup rev 1.26 (requested by dsl in ticket #168)

Add French, German and Polish sysinstmsgs to all ramdisks that include sysinst
except those where at least one of the language variants isn't built,
and those that are known not to have enough space (i386 ramdisk-tiny).
Files added to list.sysinst, list.sysinst.en is used when these files
cannot be added.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2003/06/05 14:30:14 dsl Exp $
d8 1
a8 1
USE_SYSINST=	en
@


1.24
log
@Bump image size to 1500k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2003/02/01 13:53:36 zuntum Exp $
d5 1
a5 1
IMAGESIZE=	1500k
@


1.23
log
@- bump MEMORY_DISK_ROOT_SIZE from 2920 to 2960
  in sys/arch/i386/conf/INSTALL_TINY
- bump IMAGESIZE from 1460k to 1480k
  in distrib/i386/floppies/ramdisk-tiny/Makefile

so that "build.sh release" works again.

Suggested by simon, okay'd by luke.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2002/12/20 23:12:01 thorpej Exp $
d5 1
a5 1
IMAGESIZE=	1480k
@


1.22
log
@Bump the image size up to 1460k.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2002/10/22 23:36:46 thorpej Exp $
d5 1
a5 1
IMAGESIZE=	1460k
@


1.21
log
@Bump the image size to 1452k (+12k) .. needed for nathanw_sa branch
builds.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2002/02/08 05:02:20 lukem Exp $
d5 1
a5 1
IMAGESIZE=	1452k
@


1.20
log
@- migrate a bunch of the common list stuff to common/list.ramdisk
- use ${DISTRIBDIR} as appropriate
- use ${DISTRIBDIR}/common/list.sysinst if USE_SYSINST is defined,
  removing any replicated list info
- define USE_SYSINST in the sysinst-using ramdisks
- replace MAKEDEV_DEVS with MAKEDEVTARGETS
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2002/02/06 16:15:57 lukem Exp $
d5 1
a5 1
IMAGESIZE=	1440k
@


1.19
log
@Changes to the tiny images so that an mfs /dev isn't required (there might
not be enough RAM to support that), at the expense of more inodes and a
slightly larger md file system (which, when compressed down, still fits in
a kernel and that kernel still fits on a 1.2MB floppy):
- Define MAKEDEV_DEVS to 'std md0 fd0 fd1 wd0 wd1 wd2 wd3 cd0 cd1 pty0 ttyv0'.
- Call makefs with -f 10, to add a few spare inodes.
- Crank imagesize from 1344k to 1440k to handle extra space needed by the
  inodes containing the devices.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2002/02/03 16:22:28 lukem Exp $
d6 1
a6 1
MAKEDEV_DEVS=	std md0 fd0 fd1 wd0 wd1 wd2 wd3 cd0 cd1 pty0 ttyv0
d8 1
d10 1
a10 1
.include "../common/Makefile.ramdisk"
@


1.18
log
@Major overhaul, to enable unprivileged (cross) building, removing the
requirement to build as root on a system with vnconfig.


Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate

Remove now-obsolete:
	list2sh.awk runlist.sh bootfloppy-common/list

Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more

Rename  bootfloppy-common/Makefile.inc  to  common/Makefile.bootfloppy
and	fdset-common/Makefile.inc       to  common/Makefile.fdset
This uses makefs instead of vnconfig and disklabel, thus removing the
need for root privileges to build these floppies..

Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile.
Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and
${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things.

Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which
detects whether it's an install or rescue profile based on the existance
of /sysinst.  Remove /dev generation code as init(8) now does that for us.

Migrate common parts of */list to a shared common/list.ramdisk.
Convert ramdisk-*/list to new format used by distrib/common/parselist.awk
Don't bother running pwd_mkdb now that libhack's getpwent parses
/etc/master.passwd instead of /etc/passwd.

Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a
new full-path-style specfile.

Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated
from ramdisk-*/list by parselist.awk.

Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini.

Remove unused ramdisk-{small,tiny}/disktab.preinstall.

Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated
targets.

ramdisk-*/Makefile: convert to using common/Makefile.ramdisk

Remove unused ramdisk-*/dot.hdprofile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2001/12/02 01:43:38 jmc Exp $
d5 3
a7 1
IMAGESIZE=	1344k
@


1.17
log
@Fix VND device for unconfig
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2001/11/19 05:31:01 jmc Exp $
d3 3
a5 2
TOP=		${.CURDIR}/..
WARNS=1
d7 1
a7 81
.include "${TOP}/Makefile.inc"
IMAGE=		ramdisk-tiny.fs

AUXDEPENDS= 	dot.profile disktab.preinstall termcap.mini

CBIN=		ramdiskbin

MOUNT_POINT?=	/mnt
# DEV/RDEV file system device
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
IMAGE?=		xxx.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		list
CRUNCHCONF=	${CBIN}.conf
MTREECONF=	mtree.conf
MTREE?=		mtree

CRUNCHGEN?=	crunchgen

RAMDISKSPC=	128
RAMDISKCYLS=	21
RAMDISKSIZE!=	expr ${RAMDISKSPC} \* ${RAMDISKCYLS}
DBG?=-Os

realall: ${IMAGE}

${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREECONF} ${LISTS}
	rm -f ${IMAGE}.tmp
	dd if=/dev/zero of=${IMAGE}.tmp count=${RAMDISKSIZE}
	vnconfig -v -c ${VND} ${IMAGE}.tmp \
	    512/${RAMDISKSPC}/1/${RAMDISKCYLS}
	-disklabel ${VND} >tmplabel
	disklabel -r -R ${VND} tmplabel
	newfs -B le -m 0 -o space -i 3950 -c 80 ${VND_RDEV} 
	mount ${VND_DEV} ${MOUNT_POINT}
	${MTREE} -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -U
	TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${.CURDIR}/${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}
	mv -f ${IMAGE}.tmp ${IMAGE}

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}
	-/bin/rm -f ${IMAGE} ${IMAGE}.tmp

${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
	${CRUNCHGEN} -f -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}

${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
	${MAKE} -f ${CBIN}.mk all

# This is listed in ramdiskbin.conf but is built here.
${CBIN}: libhack.o

# Use stubs to eliminate some large stuff from libc
HACKSRC=${TOP}/../../utils/libhack
.include "${HACKSRC}/Makefile.inc"

# turn off small gethostby* temporarily
HACKOBJS:= getcap.o getgrent.o getnet.o getnetgr.o getpwent.o setlocale.o yplib.o

release:

clean cleandir distclean:
	if [ -f ${CBIN}.mk ]; then ${MAKE} -f ${CBIN}.mk clean; fi; \
	/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
	    *.o *.cro *.c tmplabel

.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
.include <bsd.sys.mk>
.include <bsd.prog.mk>
@


1.16
log
@Add bsd.prog.mk so libhack components build. (gets proper CPPFLAGS pulled in
for builds).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2001/11/08 02:10:28 christos Exp $
d56 1
a56 1
	-vnconfig -u ${VND_DEV}
@


1.15
log
@1. delete all instances of /dev/{r,}vnd0d. Use vnconfig vnd0 and disklabel
   vnd0 and let opendisk(3) DTRT.
2. resize some of the images since we've gotten an average of 5K more
   with the new toolchain.
3. comment out the rescue disks, since they don't fit anymore.

Now the whole directory compiles and works with the in-tree toolchain,
but does not work still with USETOOLS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2001/10/13 06:15:17 jmc Exp $
d86 1
@


1.14
log
@Add MTREE?= to add Makefiles and use  when running mtree
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2001/10/10 05:13:53 enami Exp $
d14 1
a14 1
# DEV/RDEV file system device, CDEV/RDEV vnconfig device
a17 2
VND_CDEV=	/dev/${VND}d
VND_CRDEV=	/dev/r${VND}d
d38 1
a38 1
	vnconfig -v -c ${VND_CDEV} ${IMAGE}.tmp \
d40 2
a41 2
	-disklabel ${VND_CDEV} >tmplabel
	disklabel -r -R ${VND_CDEV} tmplabel
d51 1
a51 1
	vnconfig -u ${VND_CDEV}
@


1.13
log
@Use symbol MTREECONF instead of MTREE to refer configuration file
to avoid conflicts.  Pointed out by chs@@netbsd.org.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2001/10/05 01:19:44 jmc Exp $
d26 1
d46 1
a46 1
	mtree -def ${.CURDIR}/${MTREECONF} -p ${MOUNT_POINT}/ -U
@


1.12
log
@Change DBG= to DBG?= so it's controllable from the top level makefile easier.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2001/10/04 04:14:07 jmc Exp $
d25 1
a25 1
MTREE=		mtree.conf
d36 1
a36 1
${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
d45 1
a45 1
	mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -U
@


1.11
log
@Add DBG=-Os to all so libhack.o gets built without using -O2 on it.

Also adjust the clean rule to first run the clean rule from ramdiskbin.mk
if it exists (cleans up the object subdirs then from the new crunchgen setup)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2001/06/24 12:15:59 veego Exp $
d32 1
a32 1
DBG=-Os
@


1.10
log
@Remove tmplabel during a make clean.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/05/26 00:10:07 christos Exp $
d32 1
d79 1
@


1.9
log
@fix the rest of the ! lossage.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2001/02/25 03:54:25 jmc Exp $
d78 2
a79 1
	/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
@


1.8
log
@Make sure crunchgen remakes the makefile everytime and it doesn't use it's
cache since other Makefiles could change source files too easily.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2000/12/17 09:57:49 jmc Exp $
d59 1
a59 1
${CBIN}.mk ${CBIN}.cache ${CBIN}.c! ${CRUNCHCONF}
@


1.7
log
@Force crunchgen to remake the makefile each time. This way dependency checking can occur
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2000/11/01 07:57:58 garbled Exp $
d60 1
a60 1
	${CRUNCHGEN} -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@


1.6
log
@Change all ocurrences of "crunchgen" to ${CRUNCHGEN}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/09/27 16:04:17 fvdl Exp $
d59 1
a59 1
${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
@


1.5
log
@Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/07/06 18:16:35 jhawk Exp $
d27 2
d60 1
a60 1
	crunchgen -D ${TOP}/../../.. -L ${DESTDIR}/usr/lib ${.ALLSRC}
@


1.4
log
@Make the `clean' target match the one in ../ramdisk/Makefile.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2000/08/30 23:51:49 jhawk Exp $
d9 1
a9 4
AUXTARGETS=	install.sh upgrade.sh start.sh
AUXDEPENDS= 	dot.profile dot.hdprofile disktab.preinstall \
		termcap.mini
AUXCLEAN=	${AUXTARGETS}
d28 1
a28 1
RAMDISKCYLS=	24
a30 9
install.sh: install.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

upgrade.sh: upgrade.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

start.sh: start.tmpl
	sed "s/@@@@VERSION@@@@/${VER}/" < ${.ALLSRC} > ${.TARGET}

d33 1
a33 1
${IMAGE}: ${AUXTARGETS} ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
d76 1
a76 2
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${IMAGE}.tmp ${CBIN} \
	    ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c tmplabel
@


1.3
log
@Use
  ${MAKE}
instead of
  make
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/07/06 18:16:35 jhawk Exp $
d88 2
a89 1
	/bin/rm -f ${AUXCLEAN} *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
@


1.2
log
@For all filesytem image building targets, build ${IMAGE}.tmp and
move it to ${IMAGE} when done, to ensure that an interrupted
build does not leave a broken non-functional target. (This can occur,
for instance, if one types 'make' as a non-root user and the vnconfig
fails, and then a subsequent 'make' will not rebuild the filesystem
image, using the all-zeroes image created by dd.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2000/06/12 18:51:17 he Exp $
d73 1
a73 1
	make -f ${CBIN}.mk all
@


1.1
log
@Fix the previous in another way:

 o Wave goodbye to INSTALL_SMALL-based boot image (it was originally
   built for 5.25" media, but isn't anymore).
 o Make a separate ramdisk image for the INSTALL_TINY image,
   using the old script-based installer (not fixed/checked at the moment).
   However, at least tweak the profile scripts to start it instead of sysinst.
   Also remove ping6 and rtsol from ramdisk compared to original; the
   INSTALL_TINY image doesn't have INET6.
 o Add dump/restore back into both ramdisk images.
 o Add scsictl and chio to the normal ramdisk image (INSTALL-based fdset)
 o With dump/restore reinstated, remove the rescue-* and ramdisk-rescue
   directories.

So, we're now back to having the recovery tools on the same image as
the boot media images.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2000/06/07 22:15:31 marc Exp $
d46 4
a49 2
	dd if=/dev/zero of=${IMAGE} count=${RAMDISKSIZE}
	vnconfig -v -c ${VND_CDEV} ${IMAGE} 512/${RAMDISKSPC}/1/${RAMDISKCYLS}
d62 1
d67 1
a67 1
	-/bin/rm -f ${IMAGE}
@


1.1.2.1
log
@Sync with -current. Approved by jhawk. Original commit message:

Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/07/06 18:16:35 jhawk Exp $
d9 4
a12 1
AUXDEPENDS= 	dot.profile disktab.preinstall termcap.mini
d31 1
a31 1
RAMDISKCYLS=	21
d34 9
d45 3
a47 5
${IMAGE}: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS}
	rm -f ${IMAGE}.tmp
	dd if=/dev/zero of=${IMAGE}.tmp count=${RAMDISKSIZE}
	vnconfig -v -c ${VND_CDEV} ${IMAGE}.tmp \
	    512/${RAMDISKSPC}/1/${RAMDISKCYLS}
a59 1
	mv -f ${IMAGE}.tmp ${IMAGE}
d64 1
a64 1
	-/bin/rm -f ${IMAGE} ${IMAGE}.tmp
d70 1
a70 1
	${MAKE} -f ${CBIN}.mk all
d85 1
a85 1
	/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache *.o *.cro *.c
@


1.1.2.2
log
@Pull up revision 1.10 (requested by windsor):
  Remove ``tmplabel'' files otherwise left behind by ``make clean''.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.1 2000/10/09 13:43:33 fvdl Exp $
d76 1
a76 2
	/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
	    *.o *.cro *.c tmplabel
@


1.1.2.3
log
@Apply patch (requested by he):
  Introduce dependency between ramdisk/miniroot construction and
  osrelease.sh, to better support UPDATE builds of releases.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.2 2002/02/09 20:33:58 he Exp $
d60 1
a60 1
${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c ${VERDEP}
@


