diff options
author | ru <ru@FreeBSD.org> | 2004-02-09 14:17:02 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2004-02-09 14:17:02 +0000 |
commit | 7d2a30ec45c5332e217c7c4c3602909138da8206 (patch) | |
tree | f26e9fe565c31b130d64997f1f0047b5e1c8d8fd /sys/boot/sparc64/boot1 | |
parent | 5d659b9c9153cac8ef26ac894913d84a6772d779 (diff) | |
download | FreeBSD-src-7d2a30ec45c5332e217c7c4c3602909138da8206.zip FreeBSD-src-7d2a30ec45c5332e217c7c4c3602909138da8206.tar.gz |
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)
Diffstat (limited to 'sys/boot/sparc64/boot1')
-rw-r--r-- | sys/boot/sparc64/boot1/Makefile | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/sys/boot/sparc64/boot1/Makefile b/sys/boot/sparc64/boot1/Makefile index b77671b..6ad039b 100644 --- a/sys/boot/sparc64/boot1/Makefile +++ b/sys/boot/sparc64/boot1/Makefile @@ -1,30 +1,27 @@ # $FreeBSD$ -PROG= boot1 -SRCS= _start.S boot1.c +PROG= boot1.elf +INTERNALPROG= NOMAN= -STRIP= -BINDIR?= /boot -BINMODE= 444 +FILES= boot1 +SRCS= _start.S boot1.c -BOOTBLOCKBASE= 0x4000 +BOOTBLOCKBASE= 0x4000 -CFLAGS= -ffreestanding -mcmodel=medlow -Os -I../.. -I../../common -I${.CURDIR}/../../common +CFLAGS= -mcmodel=medlow -Os -I${.CURDIR}/../../common +LDFLAGS=-N -Ttext ${BOOTBLOCKBASE} -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 +# 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.elf boot1.aout +CLEANFILES= boot1.aout + +boot1.aout: boot1.elf + elf2aout -o ${.TARGET} ${.ALLSRC} + +boot1.o: ${.CURDIR}/../../common/ufsread.c .include <bsd.prog.mk> |