mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
e9b13dd6ec
sector 0 of a disk and boot0.5 is the `boot selector' which starts from address 0x400. The IPL loads boot0.5 and boot0.5 loads bootblock of a slice. The boot manager stuff was developed by me (kato) with Borland C++, and then, translated into bcc in the ports collection by Nokubi-san. After that, boot0 has been translated into gas with the .code16 directive by Takahashi-san (nyan) and boot0.5 has been rewritten in gas by me.
21 lines
281 B
Makefile
21 lines
281 B
Makefile
# $FreeBSD$
|
|
|
|
PROG= boot0
|
|
OBJS= boot0.o
|
|
NOMAN=
|
|
STRIP=
|
|
BINDIR?= /boot
|
|
BINMODE= 444
|
|
|
|
ORG= 0x0000
|
|
|
|
boot0: boot0.out
|
|
objcopy -S -O binary boot0.out ${.TARGET}
|
|
|
|
boot0.out: ${OBJS}
|
|
${LD} -N -e start -Ttext ${ORG} -o ${.TARGET} ${OBJS}
|
|
|
|
CLEANFILES+= boot0.out
|
|
|
|
.include <bsd.prog.mk>
|