Build and install /usr/mdec/bootxx_cd9660, a primary boot loader
for ISO9660 filesystems.
This commit is contained in:
parent
310a1a8dcf
commit
00d2915456
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: md.i386,v 1.112 2005/07/24 13:08:29 wiz Exp $
|
||||
# $NetBSD: md.i386,v 1.113 2005/10/06 08:22:58 dyoung Exp $
|
||||
./dev/lms0 base-obsolete obsolete
|
||||
./dev/mms0 base-obsolete obsolete
|
||||
./dev/pms0 base-obsolete obsolete
|
||||
|
@ -53,6 +53,7 @@
|
|||
./usr/mdec/bootsd base-obsolete obsolete
|
||||
./usr/mdec/bootwd base-obsolete obsolete
|
||||
./usr/mdec/bootxx_dosfs base-obsolete obsolete
|
||||
./usr/mdec/bootxx_cd9660 base-sysutil-bin
|
||||
./usr/mdec/bootxx_ffsv1 base-sysutil-bin
|
||||
./usr/mdec/bootxx_ffsv2 base-sysutil-bin
|
||||
./usr/mdec/bootxx_lfsv1 base-sysutil-bin
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# $NetBSD: Makefile,v 1.7 2004/08/23 06:52:04 dsl Exp $
|
||||
# $NetBSD: Makefile,v 1.8 2005/10/06 08:22:58 dyoung Exp $
|
||||
|
||||
SUBDIR= bootxx_ffsv1 .WAIT bootxx_ffsv2 bootxx_lfsv1 bootxx_lfsv2
|
||||
SUBDIR= bootxx_cd9660 .WAIT bootxx_ffsv1 bootxx_ffsv2 bootxx_lfsv1 bootxx_lfsv2
|
||||
SUBDIR+=bootxx_msdos bootxx_ustarfs
|
||||
|
||||
LIBOBJ:= ${.OBJDIR}
|
||||
|
|
|
@ -0,0 +1,64 @@
|
|||
# $NetBSD: Makefile,v 1.1 2005/10/06 08:22:58 dyoung Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../../../../
|
||||
|
||||
NOMAN= # defined
|
||||
STRIPFLAG= # nothing
|
||||
|
||||
LIBCRT0= # nothing
|
||||
LIBCRTBEGIN= # nothing
|
||||
LIBCRTEND= # nothing
|
||||
LIBC= # nothing
|
||||
|
||||
PRIMARY_LOAD_ADDRESS=0x600
|
||||
SECONDARY_LOAD_ADDRESS=0x10000
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= bootxx_cd9660
|
||||
SRCS?= cdboot.S
|
||||
|
||||
BINDIR= /usr/mdec
|
||||
BINMODE=444
|
||||
|
||||
.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../cdboot
|
||||
|
||||
LDFLAGS+= -e start
|
||||
CPPFLAGS+= -I. -I${.CURDIR}/../../lib -I${S}
|
||||
CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
|
||||
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
|
||||
CPPFLAGS+= -DDISABLE_KEYPRESS
|
||||
|
||||
.if ${MACHINE} == "amd64"
|
||||
LDFLAGS+= -m elf_i386
|
||||
AFLAGS+= -m32
|
||||
.endif
|
||||
|
||||
.if !make(obj) && !make(clean) && !make(cleandir)
|
||||
.BEGIN: machine x86
|
||||
.NOPATH: machine x86
|
||||
.endif
|
||||
|
||||
realdepend realall: machine x86
|
||||
CLEANFILES+= machine x86
|
||||
|
||||
machine::
|
||||
-rm -f $@
|
||||
ln -s $S/arch/i386/include $@
|
||||
|
||||
x86::
|
||||
-rm -f $@
|
||||
ln -s $S/arch/x86/include $@
|
||||
|
||||
${OBJS}: machine x86
|
||||
|
||||
CLEANFILES+= ${PROG}.tmp
|
||||
|
||||
${PROG}: ${OBJS}
|
||||
${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} ${OBJS}
|
||||
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' | sed 's/^0*//' ); \
|
||||
echo "#### There are $$1 free bytes in ${PROG}"
|
||||
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
|
||||
rm -f ${PROG}.tmp
|
||||
|
||||
.include <bsd.prog.mk>
|
Loading…
Reference in New Issue