From 271aee47ecc618b73de2a5b36df0d9e9d33f9ccc Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Thu, 30 Jan 2003 14:50:25 +0000 Subject: [PATCH] MFi386: Install the "boot" image which is boot1 + boot2. --- sys/boot/pc98/boot2/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/boot/pc98/boot2/Makefile b/sys/boot/pc98/boot2/Makefile index eec3cd7f796..ba5d7230717 100644 --- a/sys/boot/pc98/boot2/Makefile +++ b/sys/boot/pc98/boot2/Makefile @@ -47,7 +47,7 @@ CFLAGS+= -DCOMSPEED=${BOOT_COMCONSOLE_SPEED} # SCSI and have BIOS drive number (da_unit_number + BOOT_HD_BIAS). E.g., # BOOT_HD_BIAS=1 makes da(0,a) correspond to 1:da(0,a) instead of 0:da(0,a). -CLEANFILES+= boot.nohdr boot.strip boot1 boot2 sizetest +CLEANFILES+= boot.nohdr boot.strip boot.ldr boot1 boot2 sizetest LDFLAGS+= -N -Ttext 0 -nostdlib -e start NOSHARED= YES NOMAN= @@ -68,6 +68,9 @@ boot.nohdr: boot objcopy -S -O binary boot boot.nohdr ls -l boot.nohdr +boot.ldr: boot.nohdr + dd if=boot.nohdr of=boot.ldr bs=8192 count=1 conv=sync + boot1: boot.nohdr dd if=boot.nohdr of=boot1 bs=512 count=1 @@ -80,9 +83,11 @@ boot2: boot.nohdr exit 2 ; \ fi -all: boot1 boot2 +all: boot.ldr boot1 boot2 install: + ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + boot.ldr ${DESTDIR}${BINDIR}/boot ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ boot1 boot2 ${DESTDIR}${BINDIR}