head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.3
	netbsd-11-0-RC3:1.3
	netbsd-11-0-RC2:1.3
	netbsd-11-0-RC1:1.3
	perseant-exfatfs-base-20250801:1.3
	netbsd-11:1.3.0.78
	netbsd-11-base:1.3
	netbsd-10-1-RELEASE:1.3
	perseant-exfatfs-base-20240630:1.3
	perseant-exfatfs:1.3.0.76
	perseant-exfatfs-base:1.3
	netbsd-8-3-RELEASE:1.3
	netbsd-9-4-RELEASE:1.3
	netbsd-10-0-RELEASE:1.3
	netbsd-10-0-RC6:1.3
	netbsd-10-0-RC5:1.3
	netbsd-10-0-RC4:1.3
	netbsd-10-0-RC3:1.3
	netbsd-10-0-RC2:1.3
	thorpej-ifq:1.3.0.74
	thorpej-ifq-base:1.3
	thorpej-altq-separation:1.3.0.72
	thorpej-altq-separation-base:1.3
	netbsd-10-0-RC1:1.3
	netbsd-10:1.3.0.70
	netbsd-10-base:1.3
	bouyer-sunxi-drm:1.3.0.68
	bouyer-sunxi-drm-base:1.3
	netbsd-9-3-RELEASE:1.3
	thorpej-i2c-spi-conf2:1.3.0.66
	thorpej-i2c-spi-conf2-base:1.3
	thorpej-futex2:1.3.0.64
	thorpej-futex2-base:1.3
	thorpej-cfargs2:1.3.0.62
	thorpej-cfargs2-base:1.3
	cjep_sun2x-base1:1.3
	cjep_sun2x:1.3.0.60
	cjep_sun2x-base:1.3
	cjep_staticlib_x-base1:1.3
	netbsd-9-2-RELEASE:1.3
	cjep_staticlib_x:1.3.0.58
	cjep_staticlib_x-base:1.3
	thorpej-i2c-spi-conf:1.3.0.56
	thorpej-i2c-spi-conf-base:1.3
	thorpej-cfargs:1.3.0.54
	thorpej-cfargs-base:1.3
	thorpej-futex:1.3.0.52
	thorpej-futex-base:1.3
	netbsd-9-1-RELEASE:1.3
	bouyer-xenpvh-base2:1.3
	phil-wifi-20200421:1.3
	bouyer-xenpvh-base1:1.3
	phil-wifi-20200411:1.3
	bouyer-xenpvh:1.3.0.50
	bouyer-xenpvh-base:1.3
	is-mlppp:1.3.0.48
	is-mlppp-base:1.3
	phil-wifi-20200406:1.3
	netbsd-8-2-RELEASE:1.3
	ad-namecache-base3:1.3
	netbsd-9-0-RELEASE:1.3
	netbsd-9-0-RC2:1.3
	ad-namecache-base2:1.3
	ad-namecache-base1:1.3
	ad-namecache:1.3.0.46
	ad-namecache-base:1.3
	netbsd-9-0-RC1:1.3
	phil-wifi-20191119:1.3
	netbsd-9:1.3.0.44
	netbsd-9-base:1.3
	phil-wifi-20190609:1.3
	netbsd-8-1-RELEASE:1.3
	netbsd-8-1-RC1:1.3
	isaki-audio2:1.3.0.42
	isaki-audio2-base:1.3
	pgoyette-compat-merge-20190127:1.3
	pgoyette-compat-20190127:1.3
	pgoyette-compat-20190118:1.3
	pgoyette-compat-1226:1.3
	pgoyette-compat-1126:1.3
	pgoyette-compat-1020:1.3
	pgoyette-compat-0930:1.3
	pgoyette-compat-0906:1.3
	netbsd-7-2-RELEASE:1.3
	pgoyette-compat-0728:1.3
	netbsd-8-0-RELEASE:1.3
	phil-wifi:1.3.0.40
	phil-wifi-base:1.3
	pgoyette-compat-0625:1.3
	netbsd-8-0-RC2:1.3
	pgoyette-compat-0521:1.3
	pgoyette-compat-0502:1.3
	pgoyette-compat-0422:1.3
	netbsd-8-0-RC1:1.3
	pgoyette-compat-0415:1.3
	pgoyette-compat-0407:1.3
	pgoyette-compat-0330:1.3
	pgoyette-compat-0322:1.3
	pgoyette-compat-0315:1.3
	netbsd-7-1-2-RELEASE:1.3
	pgoyette-compat:1.3.0.38
	pgoyette-compat-base:1.3
	netbsd-7-1-1-RELEASE:1.3
	tls-maxphys-base-20171202:1.3
	matt-nb8-mediatek:1.3.0.36
	matt-nb8-mediatek-base:1.3
	nick-nhusb-base-20170825:1.3
	perseant-stdc-iso10646:1.3.0.34
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.32
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.30
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	jdolecek-ncq:1.3.0.28
	jdolecek-ncq-base:1.3
	pgoyette-localcount-20170320:1.3
	netbsd-7-1:1.3.0.26
	netbsd-7-1-RELEASE:1.3
	netbsd-7-1-RC2:1.3
	nick-nhusb-base-20170204:1.3
	netbsd-7-nhusb-base-20170116:1.3
	bouyer-socketcan:1.3.0.24
	bouyer-socketcan-base:1.3
	pgoyette-localcount-20170107:1.3
	netbsd-7-1-RC1:1.3
	nick-nhusb-base-20161204:1.3
	pgoyette-localcount-20161104:1.3
	netbsd-7-0-2-RELEASE:1.3
	nick-nhusb-base-20161004:1.3
	localcount-20160914:1.3
	netbsd-7-nhusb:1.3.0.22
	netbsd-7-nhusb-base:1.3
	pgoyette-localcount-20160806:1.3
	pgoyette-localcount-20160726:1.3
	pgoyette-localcount:1.3.0.20
	pgoyette-localcount-base:1.3
	nick-nhusb-base-20160907:1.3
	nick-nhusb-base-20160529:1.3
	netbsd-7-0-1-RELEASE:1.3
	nick-nhusb-base-20160422:1.3
	nick-nhusb-base-20160319:1.3
	nick-nhusb-base-20151226:1.3
	netbsd-7-0:1.3.0.18
	netbsd-7-0-RELEASE:1.3
	nick-nhusb-base-20150921:1.3
	netbsd-7-0-RC3:1.3
	netbsd-7-0-RC2:1.3
	netbsd-7-0-RC1:1.3
	nick-nhusb-base-20150606:1.3
	nick-nhusb-base-20150406:1.3
	nick-nhusb:1.3.0.16
	nick-nhusb-base:1.3
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	netbsd-6-0-6-RELEASE:1.2
	netbsd-6-1-5-RELEASE:1.2
	netbsd-7:1.3.0.14
	netbsd-7-base:1.3
	yamt-pagecache-base9:1.3
	yamt-pagecache-tag8:1.2.86.1
	netbsd-6-1-4-RELEASE:1.2
	netbsd-6-0-5-RELEASE:1.2
	tls-earlyentropy:1.3.0.12
	tls-earlyentropy-base:1.3
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3
	riastradh-drm2-base3:1.3
	netbsd-6-1-3-RELEASE:1.2
	netbsd-6-0-4-RELEASE:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-6-1-2-RELEASE:1.2
	netbsd-6-0-3-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	rmind-smpnet-nbase:1.3
	netbsd-6-1-1-RELEASE:1.2
	riastradh-drm2-base2:1.3
	riastradh-drm2-base1:1.3
	riastradh-drm2:1.3.0.10
	riastradh-drm2-base:1.3
	rmind-smpnet:1.3.0.4
	rmind-smpnet-base:1.3
	netbsd-6-1:1.2.0.100
	netbsd-6-0-2-RELEASE:1.2
	netbsd-6-1-RELEASE:1.2
	khorben-n900:1.3.0.8
	netbsd-6-1-RC4:1.2
	netbsd-6-1-RC3:1.2
	agc-symver:1.3.0.6
	agc-symver-base:1.3
	netbsd-6-1-RC2:1.2
	netbsd-6-1-RC1:1.2
	yamt-pagecache-base8:1.3
	netbsd-5-2:1.2.0.98
	netbsd-6-0-1-RELEASE:1.2
	yamt-pagecache-base7:1.3
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	matt-nb6-plus-nbase:1.2
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.2.0.96
	netbsd-6-0-RELEASE:1.2
	netbsd-6-0-RC2:1.2
	tls-maxphys:1.3.0.2
	tls-maxphys-base:1.3
	matt-nb6-plus:1.2.0.94
	matt-nb6-plus-base:1.2
	netbsd-6-0-RC1:1.2
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.2
	jmcneill-usbmp-base5:1.2
	jmcneill-usbmp-base4:1.2
	jmcneill-usbmp-base3:1.2
	jmcneill-usbmp-pre-base2:1.2
	jmcneill-usbmp-base2:1.2
	netbsd-6:1.2.0.92
	netbsd-6-base:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	jmcneill-usbmp:1.2.0.90
	jmcneill-usbmp-base:1.2
	jmcneill-audiomp3:1.2.0.88
	jmcneill-audiomp3-base:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.86
	yamt-pagecache-base:1.2
	rmind-uvmplock-nbase:1.2
	cherry-xenmp:1.2.0.84
	cherry-xenmp-base:1.2
	jym-xensuspend-nbase:1.2
	uebayasi-xip-base7:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.82
	bouyer-quota2-base:1.2
	jruoho-x86intr:1.2.0.80
	jruoho-x86intr-base:1.2
	matt-mips64-premerge-20101231:1.2
	matt-nb5-mips64-premerge-20101231:1.2
	matt-nb5-pq3:1.2.0.78
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.76
	uebayasi-xip-base6:1.2
	uebayasi-xip-base5:1.2
	netbsd-5-1-RELEASE:1.2
	uebayasi-xip-base4:1.2
	uebayasi-xip-base3:1.2
	yamt-nfs-mp-base11:1.2
	netbsd-5-1-RC4:1.2
	matt-nb5-mips64-k15:1.2
	uebayasi-xip-base2:1.2
	yamt-nfs-mp-base10:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	uebayasi-xip-base1:1.2
	netbsd-5-1-RC1:1.2
	rmind-uvmplock:1.2.0.74
	rmind-uvmplock-base:1.2
	yamt-nfs-mp-base9:1.2
	uebayasi-xip:1.2.0.72
	uebayasi-xip-base:1.2
	netbsd-5-0-2-RELEASE:1.2
	matt-nb5-mips64-premerge-20091211:1.2
	matt-premerge-20091211:1.2
	yamt-nfs-mp-base8:1.2
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.2
	matt-nb4-mips64-k7-u2a-k9b:1.2
	matt-nb5-mips64-u1-k1-k5:1.2
	yamt-nfs-mp-base7:1.2
	matt-nb5-mips64:1.2.0.70
	netbsd-5-0-1-RELEASE:1.2
	jymxensuspend-base:1.2
	yamt-nfs-mp-base6:1.2
	yamt-nfs-mp-base5:1.2
	yamt-nfs-mp-base4:1.2
	yamt-nfs-mp-base3:1.2
	nick-hppapmap-base4:1.2
	nick-hppapmap-base3:1.2
	netbsd-5-0:1.2.0.68
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	nick-hppapmap-base2:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.66
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	ad-audiomp2:1.2.0.64
	ad-audiomp2-base:1.2
	netbsd-5:1.2.0.62
	netbsd-5-base:1.2
	nick-hppapmap:1.2.0.60
	nick-hppapmap-base:1.2
	matt-mips64-base2:1.2
	haad-dm-base1:1.2
	wrstuden-revivesa-base-4:1.2
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa-base-2:1.2
	nick-csl-alignment-base5:1.2
	haad-dm:1.2.0.58
	haad-dm-base:1.2
	wrstuden-revivesa-base-1:1.2
	simonb-wapbl-nbase:1.2
	yamt-pf42-base4:1.2
	simonb-wapbl:1.2.0.56
	simonb-wapbl-base:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	yamt-nfs-mp-base2:1.2
	wrstuden-revivesa:1.2.0.54
	wrstuden-revivesa-base:1.2
	yamt-nfs-mp:1.2.0.52
	yamt-nfs-mp-base:1.2
	yamt-pf42:1.2.0.50
	yamt-pf42-base:1.2
	ad-socklock-base1:1.2
	yamt-lazymbuf-base15:1.2
	yamt-lazymbuf-base14:1.2
	keiichi-mipv6-nbase:1.2
	mjf-devfs2:1.2.0.48
	mjf-devfs2-base:1.2
	nick-net80211-sync:1.2.0.46
	nick-net80211-sync-base:1.2
	keiichi-mipv6:1.2.0.44
	keiichi-mipv6-base:1.2
	bouyer-xeni386-merge1:1.2
	matt-armv6-prevmlocking:1.2
	vmlocking2-base3:1.2
	bouyer-xeni386-nbase:1.2
	yamt-kmem-base3:1.2
	cube-autoconf:1.2.0.42
	cube-autoconf-base:1.2
	yamt-kmem-base2:1.2
	bouyer-xeni386:1.2.0.40
	bouyer-xeni386-base:1.2
	yamt-kmem:1.2.0.38
	yamt-kmem-base:1.2
	vmlocking2-base2:1.2
	reinoud-bufcleanup-nbase:1.2
	vmlocking2:1.2.0.36
	vmlocking2-base1:1.2
	matt-armv6-nbase:1.2
	jmcneill-base:1.2
	mjf-devfs:1.2.0.34
	mjf-devfs-base:1.2
	bouyer-xenamd64-base2:1.2
	vmlocking-nbase:1.2
	yamt-x86pmap-base4:1.2
	bouyer-xenamd64:1.2.0.32
	bouyer-xenamd64-base:1.2
	yamt-x86pmap-base3:1.2
	yamt-x86pmap-base2:1.2
	yamt-x86pmap:1.2.0.30
	yamt-x86pmap-base:1.2
	matt-armv6:1.2.0.28
	matt-armv6-base:1.2
	jmcneill-pm:1.2.0.26
	jmcneill-pm-base:1.2
	hpcarm-cleanup:1.2.0.24
	hpcarm-cleanup-base:1.2
	nick-csl-alignment:1.2.0.22
	nick-csl-alignment-base:1.2
	matt-mips64:1.2.0.20
	matt-mips64-base:1.2
	yamt-idlelwp-base8:1.2
	ppcoea-renovation:1.2.0.18
	ppcoea-renovation-base:1.2
	thorpej-atomic:1.2.0.16
	thorpej-atomic-base:1.2
	reinoud-bufcleanup:1.2.0.14
	reinoud-bufcleanup-base:1.2
	mjf-ufs-trans:1.2.0.12
	mjf-ufs-trans-base:1.2
	vmlocking:1.2.0.10
	vmlocking-base:1.2
	ad-audiomp:1.2.0.8
	yamt-lazymbuf:1.2.0.6
	ad-audiomp-base:1.2
	yamt-idlelwp:1.2.0.4
	post-newlock2-merge:1.2
	newlock2-nbase:1.2
	newlock2-base:1.2
	newlock2:1.2.0.2;
locks; strict;
comment	@# @;


1.3
date	2012.03.10.23.59.36;	author dsl;	state Exp;
branches;
next	1.2;

1.2
date	2007.01.06.20.47.15;	author dsl;	state Exp;
branches
	1.2.2.1
	1.2.6.1
	1.2.86.1
	1.2.90.1;
next	1.1;

1.1
date	2007.01.01.22.11.09;	author dsl;	state Exp;
branches;
next	;

1.2.2.1
date	2007.01.06.20.47.15;	author ad;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2007.01.12.01.00.51;	author ad;	state Exp;
branches;
next	;

1.2.6.1
date	2007.01.06.20.47.15;	author yamt;	state dead;
branches;
next	1.2.6.2;

1.2.6.2
date	2007.02.26.09.07.04;	author yamt;	state Exp;
branches;
next	;

1.2.86.1
date	2012.04.17.00.06.30;	author yamt;	state Exp;
branches;
next	;

1.2.90.1
date	2012.03.11.01.52.22;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Add support for directly booting from FAT12 filesystems.
This shouldn't really be needed except that Linux wont
mount a small FAT16 filesystem - it always treats it as FAT12
even when you tell it otherwise.
There was enough free space before the main FS on the USB stick
I've been using for an extra small FAT fs to boot from.
@
text
@# $NetBSD: Makefile,v 1.2 2007/01/06 20:47:15 dsl Exp $

SUBDIR=		fat16
SUBDIR+=	fat12

.include <bsd.subdir.mk>
.include <bsd.obj.mk>
@


1.2
log
@Change build to allow a fat32 bootstrap to be built from the same sources
(the relevant changes haven't been done though).
Call built binary bootxx_fat16 for consistency.
Use 'push %cs' to push a zero value in places where we had relied on %bx
being zero from much higher up the code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2006/11/14 14:03:12 drochner Exp $
d3 2
a4 1
SUBDIR=	fat16
@


1.2.86.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2007/01/06 20:47:15 dsl Exp $
d3 1
a3 2
SUBDIR=		fat16
SUBDIR+=	fat12
@


1.2.90.1
log
@sync to latest -current
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 2
SUBDIR=		fat16
SUBDIR+=	fat12
@


1.2.2.1
log
@file Makefile was added on branch newlock2 on 2007-01-12 01:00:51 +0000
@
text
@d1 6
@


1.2.2.2
log
@Sync with head.
@
text
@a0 6
# $NetBSD: Makefile,v 1.2.2.1 2007/01/12 01:00:51 ad Exp $

SUBDIR=	fat16

.include <bsd.subdir.mk>
.include <bsd.obj.mk>
@


1.2.6.1
log
@file Makefile was added on branch yamt-lazymbuf on 2007-02-26 09:07:04 +0000
@
text
@d1 6
@


1.2.6.2
log
@sync with head.
@
text
@a0 6
# $NetBSD: Makefile,v 1.2.6.1 2007/02/26 09:07:04 yamt Exp $

SUBDIR=	fat16

.include <bsd.subdir.mk>
.include <bsd.obj.mk>
@


1.1
log
@Add a sub-512 byte piece of code that can be written (by a modified installboot)
into the first sector of a FAT16 filesystem and will load 'boot' (and hence)
the netbsd kernel from it.
Unlike bootxx_msdosfs this doesn't need the filesystem to have 8k of 'reserved'
sectors, and may well work on non-512 byte media (as yet untested).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.mbr,v 1.12 2006/06/29 06:31:12 lukem Exp $
d3 1
a3 1
S=		${.CURDIR}/../../../../
d5 2
a6 44
PROG=		fatboot
NOMAN=		# defined

LIBCRT0=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

.include <bsd.own.mk>

STRIPFLAG=	# override

SRCS=		fatboot.S

BINDIR=		/usr/mdec
BINMODE=	444

.PATH:		${.CURDIR}/..

LDFLAGS+=	-nostdlib -Wl,-e,start
CPPFLAGS+=	-I. -I${.CURDIR}/../lib -I${S}

.if ${MACHINE} == "amd64"
LDFLAGS+=	-Wl,-m,elf_i386
AFLAGS+=	-m32
.endif

BUILDSYMLINKS+=	$S/arch/i386/include	machine \
		$S/arch/x86/include	x86

DPSRCS+=	machine x86

CLEANFILES+=	${PROG}.tmp

${PROG}: ${OBJS}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x7c00 ${OBJS}
	@@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<pbr_space\>' \
		    | sed 's/^0*//'  ); \
		echo "#### There are $$1 free bytes in ${PROG}"
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp

.include <bsd.prog.mk>
@
