summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/boot2/Makefile
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-08 15:49:35 +0000
committerphk <phk@FreeBSD.org>2002-10-08 15:49:35 +0000
commit07c608aac18d3af7e2b2fe0e66619969f3d8aceb (patch)
tree53651133780b8f6f44af37689df6f9f0c62103ee /sys/boot/i386/boot2/Makefile
parenta2f1fdc5bfb61a0369083a4baf6e282da519d9a5 (diff)
downloadFreeBSD-src-07c608aac18d3af7e2b2fe0e66619969f3d8aceb.zip
FreeBSD-src-07c608aac18d3af7e2b2fe0e66619969f3d8aceb.tar.gz
Now that ufsread.c doesn't do 64bit divide remainder operations,
don't bother with libkern. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/boot/i386/boot2/Makefile')
-rw-r--r--sys/boot/i386/boot2/Makefile17
1 files changed, 2 insertions, 15 deletions
diff --git a/sys/boot/i386/boot2/Makefile b/sys/boot/i386/boot2/Makefile
index 9445fbb..55e1dbe 100644
--- a/sys/boot/i386/boot2/Makefile
+++ b/sys/boot/i386/boot2/Makefile
@@ -7,7 +7,7 @@ BINDIR?= /boot
BINMODE= 444
CLEANFILES+= boot1 boot1.out boot1.o \
boot2.ldr boot2.bin boot2.ld boot2.out boot2.o boot2.h \
- boot2.s sio.o divdi3.o moddi3.o qdivrem.o
+ boot2.s sio.o
NM?= nm
@@ -44,7 +44,7 @@ CFLAGS= -elf -ffreestanding -Os -fno-builtin \
.if ${BOOT2_UFS} == "UFS1_ONLY"
CFLAGS+= -D${BOOT2_UFS}
.else
-
+# nothing here
.endif
LDFLAGS=-nostdlib -static -N
@@ -93,11 +93,7 @@ boot2.ldr:
boot2.bin: boot2.out
objcopy -S -O binary boot2.out ${.TARGET}
-.if ${BOOT2_UFS} == "UFS1_ONLY"
boot2.out: boot2.o sio.o
-.else
-boot2.out: boot2.o sio.o divdi3.o moddi3.o qdivrem.o
-.endif
${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} \
${BTX}/lib/crt0.o ${.ALLSRC}
@@ -109,15 +105,6 @@ sio.o: sio.s
--defsym SIOSPD=${BOOT_COMCONSOLE_SPEED} \
${.IMPSRC} -o ${.TARGET}
-moddi3.o: ${.CURDIR}/../../../libkern/moddi3.c
- ${CC} ${CFLAGS} -I${.CURDIR}/../../../ -c ${.IMPSRC}
-
-divdi3.o: ${.CURDIR}/../../../libkern/divdi3.c
- ${CC} ${CFLAGS} -I${.CURDIR}/../../../ -c ${.IMPSRC}
-
-qdivrem.o: ${.CURDIR}/../../../libkern/qdivrem.c
- ${CC} ${CFLAGS} -I${.CURDIR}/../../../ -c ${.IMPSRC}
-
install:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
boot1 ${DESTDIR}${BINDIR}/boot1
OpenPOWER on IntegriCloud