head	1.5;
access;
symbols
	RELENG_5_0_0_RELEASE:1.4
	RELENG_5_0:1.4.0.2
	RELENG_5_0_BP:1.4
	KSE_MILESTONE_2:1.3
	KSE_PRE_MILESTONE_2:1.3
	PRE_SMPNG:1.3;
locks; strict;
comment	@# @;


1.5
date	2002.12.31.02.29.03;	author obrien;	state dead;
branches;
next	1.4;

1.4
date	2002.09.17.01.48.55;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	2000.09.05.22.33.07;	author msmith;	state Exp;
branches;
next	1.2;

1.2
date	2000.07.17.19.03.58;	author jlemon;	state Exp;
branches;
next	1.1;

1.1
date	2000.07.17.17.06.04;	author jlemon;	state Exp;
branches;
next	;


desc
@@


1.5
log
@RIP liloldr.
It is not complete (the LILO root= specification isn't passed to our
loader for instance), it has not been touched in over 2 years.  Linux has
moved on to GRUB, so this is OBE now.  If someone creeps up to work on it,
it could become a port.
@
text
@# $FreeBSD: src/sys/boot/i386/liloldr/Makefile,v 1.4 2002/09/17 01:48:55 peter Exp $

ORG=		0x0

LDR=		liloldr
BSECT=		lilobsect
BOOT=		liloboot
PROG=		${BOOT}
NOMAN=	1
STRIP=
BINDIR?=	/boot

.if exists(${.OBJDIR}/../loader)
LOADER=	${.OBJDIR}/../loader/loader
.else
LOADER=	${.CURDIR}/../loader/loader
.endif

.if exists(${LOADER})
LOADER_SIZE !=	wc -c ${LOADER} | awk '{print int(($$1 + 15) / 16)}'
AFLAGS=		--defsym LOADER_SIZE=${LOADER_SIZE}
.endif

${BOOT}: ${BSECT} ${LDR} ${LOADER}
	cat ${BSECT} ${LDR} ${LOADER} > ${.TARGET}.tmp
	dd if=${.TARGET}.tmp of=${.TARGET} obs=2k conv=osync
	rm ${.TARGET}.tmp

${LDR}: ${LDR}.o
	${LD} -N -e start -Ttext ${ORG} -o ${LDR}.out ${LDR}.o
	objcopy -S -O binary ${LDR}.out ${.TARGET}

${BSECT}: ${BSECT}.o
	${LD} -N -e start -Ttext ${ORG} -o ${BSECT}.out ${BSECT}.o
	objcopy -S -O binary ${BSECT}.out ${.TARGET}

${BSECT}.o: ${BSECT}.s ${LOADER}

CLEANFILES+= ${LDR} ${LDR}.out ${LDR}.o \
	${BSECT} ${BSECT}.out ${BSECT}.o ${BOOT}.tmp

.include <bsd.prog.mk>
@


1.4
log
@Initiate deorbit burn for the i386-only a.out related support.  Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.3
log
@Fix a bug which prevents parsing this Makefile without having a
previously-built loader binary elsewhere.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/liloldr/Makefile,v 1.2 2000/07/17 19:03:58 jlemon Exp $
a29 4
.if ${OBJFORMAT} == aout
	${LD} -nostdlib -N -s -T ${ORG} -o ${LDR}.out ${LDR}.o
	dd if=${LDR}.out of=${.TARGET} ibs=32 skip=1
.else
a31 1
.endif
a33 4
.if ${OBJFORMAT} == aout
	${LD} -nostdlib -N -s -T ${ORG} -o ${BSECT}.out ${BSECT}.o
	dd if=${BSECT}.out of=${.TARGET} ibs=32 skip=1
.else
a35 2
.endif

@


1.2
log
@Unbreak the build --  no manual page for this yet.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/liloldr/Makefile,v 1.1 2000/07/17 17:06:04 jlemon Exp $
d19 1
d22 1
@


1.1
log
@This is `liloboot', which creates a file which can be treated like a
Linux kernel image, and is designed to be dropped into a Linux system
and booted via LILO.  Once booted, the user is greeted by the FreeBSD
loader.  This still isn't quite complete, as the the root= specification
from LILO isn't currently passed to the loader yet.
@
text
@d1 1
a1 1
# $FreeBSD$
d9 1
a9 1
MAN8=		${BOOT}.8
@

