summaryrefslogtreecommitdiffstats
path: root/sys/boot/i386/gptboot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/i386/gptboot/Makefile')
-rw-r--r--sys/boot/i386/gptboot/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/boot/i386/gptboot/Makefile b/sys/boot/i386/gptboot/Makefile
index ec7a536..900a3d4 100644
--- a/sys/boot/i386/gptboot/Makefile
+++ b/sys/boot/i386/gptboot/Makefile
@@ -47,7 +47,10 @@ CFLAGS= -elf -ffreestanding -Os -fno-builtin \
LDFLAGS=-nostdlib -static -N --gc-sections
-all: boot1 boot2
+all: boot1 boot2 boot
+
+boot: boot1 boot2
+ cat boot1 boot2 > boot
boot1: boot1.out
objcopy -S -O binary boot1.out ${.TARGET}
@@ -99,6 +102,8 @@ sio.o: sio.s
install:
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ boot ${DESTDIR}${BINDIR}/boot
+ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
boot1 ${DESTDIR}${BINDIR}/boot1
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
boot2 ${DESTDIR}${BINDIR}/boot2
OpenPOWER on IntegriCloud