head	1.15;
access;
symbols
	RELENG_8_4:1.15.0.2
	RELENG_9_1_0_RELEASE:1.12.2.2.2.2
	RELENG_9_1:1.12.2.2.0.2
	RELENG_9_1_BP:1.12.2.2
	RELENG_8_3_0_RELEASE:1.11.22.1.8.1
	RELENG_8_3:1.11.22.1.0.8
	RELENG_8_3_BP:1.11.22.1
	RELENG_9_0_0_RELEASE:1.12.2.1.2.1
	RELENG_9_0:1.12.2.1.0.2
	RELENG_9_0_BP:1.12.2.1
	RELENG_9:1.12.0.2
	RELENG_9_BP:1.12
	RELENG_7_4_0_RELEASE:1.11.26.1
	RELENG_8_2_0_RELEASE:1.11.22.1.6.1
	RELENG_7_4:1.11.0.26
	RELENG_7_4_BP:1.11
	RELENG_8_2:1.11.22.1.0.6
	RELENG_8_2_BP:1.11.22.1
	RELENG_8_1_0_RELEASE:1.11.22.1.4.1
	RELENG_8_1:1.11.22.1.0.4
	RELENG_8_1_BP:1.11.22.1
	RELENG_7_3_0_RELEASE:1.11.24.1
	RELENG_7_3:1.11.0.24
	RELENG_7_3_BP:1.11
	RELENG_8_0_0_RELEASE:1.11.22.1.2.1
	RELENG_8_0:1.11.22.1.0.2
	RELENG_8_0_BP:1.11.22.1
	RELENG_8:1.11.0.22
	RELENG_8_BP:1.11
	RELENG_7_2_0_RELEASE:1.11.20.1
	RELENG_7_2:1.11.0.20
	RELENG_7_2_BP:1.11
	RELENG_7_1_0_RELEASE:1.11.18.1
	RELENG_6_4_0_RELEASE:1.11.16.1
	RELENG_7_1:1.11.0.18
	RELENG_7_1_BP:1.11
	RELENG_6_4:1.11.0.16
	RELENG_6_4_BP:1.11
	RELENG_7_0_0_RELEASE:1.11
	RELENG_6_3_0_RELEASE:1.11
	RELENG_7_0:1.11.0.14
	RELENG_7_0_BP:1.11
	RELENG_6_3:1.11.0.12
	RELENG_6_3_BP:1.11
	RELENG_7:1.11.0.10
	RELENG_7_BP:1.11
	RELENG_6_2_0_RELEASE:1.11
	RELENG_6_2:1.11.0.8
	RELENG_6_2_BP:1.11
	RELENG_5_5_0_RELEASE:1.10
	RELENG_5_5:1.10.0.8
	RELENG_5_5_BP:1.10
	RELENG_6_1_0_RELEASE:1.11
	RELENG_6_1:1.11.0.6
	RELENG_6_1_BP:1.11
	RELENG_6_0_0_RELEASE:1.11
	RELENG_6_0:1.11.0.4
	RELENG_6_0_BP:1.11
	RELENG_6:1.11.0.2
	RELENG_6_BP:1.11
	RELENG_5_4_0_RELEASE:1.10
	RELENG_5_4:1.10.0.6
	RELENG_5_4_BP:1.10
	RELENG_5_3_0_RELEASE:1.10
	RELENG_5_3:1.10.0.4
	RELENG_5_3_BP:1.10
	RELENG_5:1.10.0.2
	RELENG_5_BP:1.10
	RELENG_5_2_1_RELEASE:1.8
	RELENG_5_2_0_RELEASE:1.8
	RELENG_5_2:1.8.0.6
	RELENG_5_2_BP:1.8
	RELENG_5_1_0_RELEASE:1.8
	RELENG_5_1:1.8.0.4
	RELENG_5_1_BP:1.8
	RELENG_5_0_0_RELEASE:1.8
	RELENG_5_0:1.8.0.2
	RELENG_5_0_BP:1.8;
locks; strict;
comment	@# @;


1.15
date	2012.11.17.01.51.20;	author svnexp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2012.05.09.19.08.54;	author marius;	state Exp;
branches;
next	1.13;

1.13
date	2012.05.01.17.16.01;	author marius;	state Exp;
branches;
next	1.12;

1.12
date	2010.06.03.17.42.32;	author ed;	state Exp;
branches
	1.12.2.1;
next	1.11;

1.11
date	2004.12.21.08.47.18;	author ru;	state Exp;
branches
	1.11.2.1
	1.11.10.1
	1.11.16.1
	1.11.18.1
	1.11.20.1
	1.11.22.1
	1.11.24.1
	1.11.26.1;
next	1.10;

1.10
date	2004.02.11.21.17.04;	author ru;	state Exp;
branches;
next	1.9;

1.9
date	2004.02.09.14.17.02;	author ru;	state Exp;
branches;
next	1.8;

1.8
date	2002.06.05.12.30.45;	author phk;	state Exp;
branches;
next	1.7;

1.7
date	2002.06.05.12.00.53;	author phk;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.10.09.26.35;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	2002.04.24.02.50.36;	author jake;	state Exp;
branches;
next	1.4;

1.4
date	2002.04.21.02.37.55;	author obrien;	state Exp;
branches;
next	1.3;

1.3
date	2002.04.01.22.57.51;	author tmm;	state Exp;
branches;
next	1.2;

1.2
date	2002.03.05.16.39.36;	author robert;	state Exp;
branches;
next	1.1;

1.1
date	2002.02.15.12.49.20;	author robert;	state Exp;
branches;
next	;

1.15.2.1
date	2012.11.17.01.51.20;	author svnexp;	state dead;
branches;
next	1.15.2.2;

1.15.2.2
date	2013.03.28.13.04.03;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.12.2.1.2.1;
next	1.12.2.2;

1.12.2.2
date	2012.05.26.08.54.26;	author marius;	state Exp;
branches
	1.12.2.2.2.1;
next	1.12.2.3;

1.12.2.3
date	2012.11.17.11.36.48;	author svnexp;	state Exp;
branches;
next	1.12.2.4;

1.12.2.4
date	2014.03.26.08.02.11;	author svnexp;	state Exp;
branches;
next	;

1.12.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.12.2.1.2.2;

1.12.2.1.2.2
date	2012.11.17.08.36.46;	author svnexp;	state Exp;
branches;
next	;

1.12.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.12.2.2.2.2;

1.12.2.2.2.2
date	2012.11.17.08.47.37;	author svnexp;	state Exp;
branches;
next	;

1.11.2.1
date	2012.11.17.07.42.42;	author svnexp;	state Exp;
branches;
next	;

1.11.10.1
date	2012.11.17.08.04.56;	author svnexp;	state Exp;
branches;
next	;

1.11.16.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.11.18.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.11.20.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.11.22.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.11.22.1.2.1
	1.11.22.1.4.1
	1.11.22.1.6.1
	1.11.22.1.8.1;
next	1.11.22.2;

1.11.22.2
date	2012.05.26.08.54.44;	author marius;	state Exp;
branches;
next	1.11.22.3;

1.11.22.3
date	2012.11.17.10.36.28;	author svnexp;	state Exp;
branches;
next	;

1.11.22.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.11.22.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.11.22.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.11.22.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.11.22.1.8.2;

1.11.22.1.8.2
date	2012.11.17.08.25.08;	author svnexp;	state Exp;
branches;
next	;

1.11.24.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.11.26.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.11.26.2;

1.11.26.2
date	2012.11.17.08.17.05;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.15
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/boot/sparc64/boot1/Makefile 235207 2012-05-09 19:08:54Z marius $

PROG=	boot1.elf
INTERNALPROG=
NO_MAN=
FILES?=	boot1
SRCS=	_start.s boot1.c
CLEANFILES=${FILES} boot1.aout

BOOTBLOCKBASE= 0x4000

CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
LDFLAGS=-Ttext ${BOOTBLOCKBASE} -Wl,-N

# Construct boot1. sunlabel expects it to contain zeroed-out space for the
# label, and to be of the correct size.
${FILES}: boot1.aout
	@@set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
	    echo "$$x bytes available"; test $$x -ge 0
	dd if=/dev/zero of=${.TARGET} bs=512 count=16
	dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc

boot1.aout: boot1.elf
	elf2aout -o ${.TARGET} ${.ALLSRC}

boot1.o: ${.CURDIR}/../../common/ufsread.c

.include <bsd.prog.mk>
@


1.15.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:03 +0000
@
text
@d1 28
@


1.15.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 28
# $FreeBSD: releng/8.4/sys/boot/sparc64/boot1/Makefile 236077 2012-05-26 08:54:44Z marius $

PROG=	boot1.elf
INTERNALPROG=
NO_MAN=
FILES?=	boot1
SRCS=	_start.s boot1.c
CLEANFILES=${FILES} boot1.aout

BOOTBLOCKBASE= 0x4000

CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
LDFLAGS=-N -Ttext ${BOOTBLOCKBASE}

# Construct boot1. sunlabel expects it to contain zeroed-out space for the
# label, and to be of the correct size.
${FILES}: boot1.aout
	@@set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
	    echo "$$x bytes available"; test $$x -ge 0
	dd if=/dev/zero of=${.TARGET} bs=512 count=16
	dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc

boot1.aout: boot1.elf
	elf2aout -o ${.TARGET} ${.ALLSRC}

boot1.o: ${.CURDIR}/../../common/ufsread.c

.include <bsd.prog.mk>
@


1.14
log
@SVN rev 235207 on 2012-05-09 19:08:54Z by marius

Use a non-tricky approach for building and installing zfsboot sharing
the Makefile with boot1.

Submitted by:	ru
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.13
log
@SVN rev 234898 on 2012-05-01 17:16:01Z by marius

Add initial support for booting from ZFS on sparc64. At least on Sun Fire
V100, the firmware is known to be broken and not allowing to simultaneously
open disk devices, causing attempts to boot from a mirror or RAIDZ to cause
a crash. This will be worked around later. The firmwares of newer sun4u models
don't seem to exhibit this problem though.

Steps for ZFS booting:

1. create VTOC8 label
# gpart create -s vtoc8 da0

2. add partitions, f.e.:
# gpart add -t freebsd-zfs -s 60g da0
# gpart add -t freebsd-swap da0
resulting in something like:
# gpart show
=>        0  143331930  da0  VTOC8  (68G)
          0  125821080    1  freebsd-zfs  (60G)
  125821080   17510850    2  freebsd-swap  (8.4G)

3. create zpool
# zpool create bunker da0a
or for mirror/RAIDZ (after preparing additional disks as in steps 1. + 2.):
# zpool create bunker mirror da0a da1a
# zpool create bunker raidz da0a da1a da2a ...

4. set bootfs
# zpool set bootfs=bunker bunker

5. install zfsboot
# zpool export bunker
# gpart bootcode -p /boot/zfsboot da0

6. write zfsloader to the ZFS Boot Block (so far, there's no dedicated tool
for this, so dd(1) has to be used for this purpose)
When using mirror/RAIDZ, step 4. and the dd(1) invocation should be repeated
for the additional disks in order to be able to boot from another disk in
case of failure.
# sysctl kern.geom.debugflags=0x10
# dd if=/boot/zfsloader of=/dev/da0a bs=512 oseek=1024 conv=notrunc
# zpool import bunker

7. install system on ZFS filesystem
Don't forget to set 'zfs_load="YES"' and vfs.root.mountfrom="zfs:bunker" in
loader.conf as well as 'zfs_enable="YES"'in rc.conf.

8. copy zpool.cache to the ZFS filesystem
cp -p /boot/zfs/zpool.cache /bunker/boot/zfs/zpool.cache

9. set mountpoint
# zfs set mountpoint=/ bunker

10. Now, given that aliases for all disks in the zpool exists (check with
the `devalias` command on the boot monitor prompt) and disk0 corresponds
to da0 (likewise for additional disks), the system can be booted from the
ZFS with:
{1} ok boot disk0

PR:             165025
Submitted by:   Gavin Mu
@
text
@d8 1
a8 1
CLEANFILES+=boot1 boot1.aout
d17 1
a17 1
boot1: boot1.aout
@


1.12
log
@SVN rev 208789 on 2010-06-03 17:42:32Z by ed

Use -Wl,-N instead of the undocumented -N option for GCC.

GCC forwards the -N flag directly to ld. This flag is not documented and
not supported by (for example) Clang. Just use -Wl,-N.

Submitted by:	Pawel Worach
@
text
@d6 1
a6 1
FILES=	boot1
d8 1
d12 1
a12 1
CFLAGS=	-mcmodel=medlow -Os -I${.CURDIR}/../../common
d18 2
a22 2
CLEANFILES= boot1.aout

@


1.12.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.2
log
@SVN rev 236076 on 2012-05-26 08:54:26Z by marius

MFC: r234898, r235207

Add initial support for booting from ZFS on sparc64. At least on Sun Fire
V100, the firmware is known to be broken and not allowing to simultaneously
open disk devices, causing attempts to boot from a mirror or RAIDZ to cause
a crash. This will be worked around later. The firmwares of newer sun4u models
don't seem to exhibit this problem though.

PR:             165025
Submitted by:   Gavin Mu
@
text
@d6 1
a6 1
FILES?=	boot1
a7 1
CLEANFILES=${FILES} boot1.aout
d11 1
a11 1
CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
d16 1
a16 3
${FILES}: boot1.aout
	@@set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
	    echo "$$x bytes available"; test $$x -ge 0
d20 2
@


1.12.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/boot/sparc64/boot1/Makefile 236076 2012-05-26 08:54:26Z marius $
@


1.12.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/263764
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/boot/sparc64/boot1/Makefile 263764 2014-03-26 07:35:24Z dim $
d12 1
a12 3
CFLAGS.clang+=-mcmodel=small
CFLAGS.gcc+=-mcmodel=medlow
CFLAGS+=-Os -I${.CURDIR}/../../common
@


1.12.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.12.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/boot/sparc64/boot1/Makefile 236076 2012-05-26 08:54:26Z marius $
@


1.12.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.12.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/boot/sparc64/boot1/Makefile 208789 2010-06-03 17:42:32Z ed $
@


1.11
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@d12 1
a12 1
LDFLAGS=-N -Ttext ${BOOTBLOCKBASE}
@


1.11.10.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/boot/sparc64/boot1/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.11.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/boot/sparc64/boot1/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.11.26.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.11.26.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/boot/sparc64/boot1/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.11.24.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.11.22.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.11.22.2
log
@SVN rev 236077 on 2012-05-26 08:54:44Z by marius

MFC: r234898, r235207

Add initial support for booting from ZFS on sparc64. At least on Sun Fire
V100, the firmware is known to be broken and not allowing to simultaneously
open disk devices, causing attempts to boot from a mirror or RAIDZ to cause
a crash. This will be worked around later. The firmwares of newer sun4u models
don't seem to exhibit this problem though.

PR:             165025
Submitted by:   Gavin Mu
@
text
@d6 1
a6 1
FILES?=	boot1
a7 1
CLEANFILES=${FILES} boot1.aout
d11 1
a11 1
CFLAGS+=-mcmodel=medlow -Os -I${.CURDIR}/../../common
d16 1
a16 3
${FILES}: boot1.aout
	@@set -- `ls -l boot1.aout`; x=$$((7680-$$5)); \
	    echo "$$x bytes available"; test $$x -ge 0
d20 2
@


1.11.22.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/boot/sparc64/boot1/Makefile 236077 2012-05-26 08:54:44Z marius $
@


1.11.22.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.11.22.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/boot/sparc64/boot1/Makefile 139103 2004-12-21 08:47:35Z ru $
@


1.11.22.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.11.22.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.11.22.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.11.20.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.11.18.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.11.16.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.10
log
@_start.S -> _start.s as the latter is pure asm file.

Repocopied by:	joe
@
text
@d5 1
a5 1
NOMAN=
@


1.9
log
@MFi386.

- Factor out common settings and put them in an upper level Makefile.inc.
- Properly use PROG for real programs, not their products.
- Further reduce diffs to i386 versions.

Tested on:	sparc64 (panther)
@
text
@d7 1
a7 1
SRCS=	_start.S boot1.c
@


1.8
log
@Add explicit dependency on ufsread.c
@
text
@d3 2
a4 2
PROG=		boot1
SRCS=		_start.S boot1.c
d6 2
a7 3
STRIP=
BINDIR?=	/boot
BINMODE=	444
d9 1
a9 1
BOOTBLOCKBASE=	0x4000
d11 2
a12 1
CFLAGS=	-ffreestanding -mcmodel=medlow -Os -I../.. -I../../common -I${.CURDIR}/../../common
d14 1
a14 9
boot1.elf: _start.o boot1.o
	${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} ${.ALLSRC}

boot1.aout: boot1.elf
	elf2aout -o ${.TARGET} ${.ALLSRC}

boot1.o:	${.CURDIR}/../../common/ufsread.c

# Construct boot1. disklabel expects it to contain zeroed-out space for the
d20 6
a25 1
CLEANFILES+=	boot1.elf boot1.aout
@


1.7
log
@Make sparc64 share ufsread.c with i386.

Sponsored by: DARPA & NAI Labs.
@
text
@d20 2
@


1.6
log
@-ffreestanding is the word.
(also resort some CFLAGS such that the more "important" value are first so
they are easier to see)
@
text
@d12 1
a12 1
CFLAGS=	-ffreestanding -mcmodel=medlow -Os -I../.. -I../../common
@


1.5
log
@Add -Wno-unused.
@
text
@d12 1
a12 2
CFLAGS=	-W -Wall -Wno-unused -I../../ -I../../common/ -Os -ffreestanding \
	-mcmodel=medlow
@


1.4
log
@o Use our own elf2aout now.
o Generalize a little.
@
text
@d12 1
a12 1
CFLAGS=	-W -Wall -I../../ -I../../common/ -Os -ffreestanding -mno-app-regs \
@


1.3
log
@1.) Produce a boot1 disklabel template of the format disklabel(8) expects.
2.) Clean up and change over to using bsd.prog.mk

Submitted by:	jake (2)
@
text
@d16 1
a16 1
	${LD} -N -Ttext ${BOOTBLOCKBASE} -o ${.TARGET} _start.o boot1.o
d19 1
a19 1
	/usr/local/bin/elftoaout -o ${.TARGET} boot1.elf
@


1.2
log
@Change every occurrence of "bootblock" into "boot1" after
the repo-move from "src/sys/boot/sparc64/bootblock".
@
text
@d3 7
d12 18
a29 15
CFLAGS=	-W -Wall -I../../ -I../../common/ -Os \
	-DBOOTBLOCKBASE=${BOOTBLOCKBASE} \
	-ffreestanding -mno-app-regs -mcmodel=medlow
OBJ=	boot1.o

all:	boot1

boot1.o:	boot1.c
	${CC} ${CFLAGS} -c -o ${.TARGET} ${.ALLSRC}

boot1:	${OBJ}
	${LD} -N -Ttext ${BOOTBLOCKBASE} -e main -o boot1 ${OBJ}
	/usr/local/bin/elftoaout boot1
clean:
	rm -f *.o boot1
@


1.1
log
@Add the FreeBSD/sparc64 bootblock and its make file.
@
text
@d8 1
a8 1
OBJ=	bootblock.o
d10 1
a10 1
all:	bootblock
d12 1
a12 1
bootblock.o:	bootblock.c
d15 3
a17 3
bootblock:	${OBJ}
	${LD} -N -Ttext ${BOOTBLOCKBASE} -e main -o bootblock ${OBJ}
	/usr/local/bin/elftoaout bootblock
d19 1
a19 1
	rm -f *.o bootblock
@

