summaryrefslogtreecommitdiffstats
path: root/sys/boot/sparc64/boot1/Makefile
blob: 93d213d3c63aac7e4cc520dbea2d006cfc472084 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $FreeBSD$

PROG=	boot1.elf
INTERNALPROG=
NOMAN=
FILES=	boot1
SRCS=	_start.s boot1.c

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.
boot1: boot1.aout
	dd if=/dev/zero of=${.TARGET} bs=512 count=16
	dd if=boot1.aout of=${.TARGET} bs=512 oseek=1 conv=notrunc

CLEANFILES= boot1.aout

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

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

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud