diff options
author | ru <ru@FreeBSD.org> | 2002-03-28 08:23:33 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-03-28 08:23:33 +0000 |
commit | 702cd9122652ce1a20fc0828569cb4e292f2cd82 (patch) | |
tree | 37dfe5a542157dd602514b7ed19e6b40a81b7b23 /usr.sbin/sysinstall/Makefile | |
parent | 5a1b52129d198a637050da36428c829df8b774d0 (diff) | |
download | FreeBSD-src-702cd9122652ce1a20fc0828569cb4e292f2cd82.zip FreeBSD-src-702cd9122652ce1a20fc0828569cb4e292f2cd82.tar.gz |
Teach sysinstall(8) how to read boot managers out of /boot
instead of hardcoding them into the binary. This replaces
the work-around in usr.sbin/sysinstall/Makefile,v 1.121.
Suggested by: jhb
MFC in: 1 week
Diffstat (limited to 'usr.sbin/sysinstall/Makefile')
-rw-r--r-- | usr.sbin/sysinstall/Makefile | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile index 658c3e7..298dddc 100644 --- a/usr.sbin/sysinstall/Makefile +++ b/usr.sbin/sysinstall/Makefile @@ -54,46 +54,6 @@ makedevs.c: Makefile rtermcap file2c 'const char termcap_xterm[] = {' ',0};' \ >> makedevs.c -.if ${MACHINE_ARCH} == i386 -# XXX boot images aren't yet ready when "make depend" is run -.if !make(depend) -SRCS+= makeboot.c -.endif -CLEANFILES+= makeboot.c -.if exists(${.OBJDIR}/../../sys/boot/${MACHINE}/boot0/boot0) -BOOT0= ${.OBJDIR}/../../sys/boot/${MACHINE}/boot0/boot0 -.else -BOOT0= /boot/boot0 -.endif -makeboot.c: ${BOOT0} -.if ${MACHINE} == "i386" -.if exists(${.OBJDIR}/../../sys/boot/i386/mbr/mbr) -MBR= ${.OBJDIR}/../../sys/boot/i386/mbr/mbr -.else -MBR= /boot/mbr -.endif -makeboot.c: ${MBR} -.elif ${MACHINE} == "pc98" -.if exists(${.OBJDIR}/../../sys/boot/pc98/boot0.5/boot0.5) -BOOT05= ${.OBJDIR}/../../sys/boot/pc98/boot0.5/boot0.5 -.else -BOOT05= /boot/boot0.5 -.endif -makeboot.c: ${BOOT05} -.endif -makeboot.c: Makefile - echo '#include <sys/types.h>' > makeboot.c - file2c 'u_char boot0[] = {' '};' < ${BOOT0} >> makeboot.c - echo "size_t boot0_size = sizeof(boot0);" >> makeboot.c -.if ${MACHINE} == i386 - file2c 'u_char mbr[] = {' '};' < ${MBR} >> makeboot.c - echo "size_t mbr_size = sizeof(mbr);" >> makeboot.c -.elif ${MACHINE} == "pc98" - file2c 'u_char boot05[] = {' '};' < ${BOOT05} >> makeboot.c - echo "size_t boot05_size = sizeof(boot05);" >> makeboot.c -.endif -.endif - build-tools: rtermcap rtermcap: rtermcap.c |