summaryrefslogtreecommitdiff
path: root/sys/arch/hp300/stand/uboot
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-09-14 12:54:30 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-09-14 12:54:30 +0000
commitbd7544914aa4c8ec96723bbdd0a5885a7f88993f (patch)
tree0303481779e4d71d485dbc49c87b6431c57e672c /sys/arch/hp300/stand/uboot
parenta7162cd6abe395805da2514f42bca4d6e1ebe610 (diff)
Make and install a raw version of uboot, too.
Diffstat (limited to 'sys/arch/hp300/stand/uboot')
-rw-r--r--sys/arch/hp300/stand/uboot/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/arch/hp300/stand/uboot/Makefile b/sys/arch/hp300/stand/uboot/Makefile
index 1f7afacb273..6ed1c44f26f 100644
--- a/sys/arch/hp300/stand/uboot/Makefile
+++ b/sys/arch/hp300/stand/uboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 1997/07/14 08:14:54 downsj Exp $
+# $OpenBSD: Makefile,v 1.2 1997/09/14 12:54:29 downsj Exp $
PROG= uboot
@@ -18,21 +18,26 @@ LIBS= ${LIBCOMMON} ${LIBSA} ${LIBZ} ${LIBKERN}
${OBJS}: ${.CURDIR}/../Makefile.inc
-CLEANFILES+= uboot.lif
+CLEANFILES+= uboot.lif uboot.raw
uboot.lif: uboot
${MKBOOT_PROG} uboot $@
+uboot.raw: uboot
+ ${STRIPBOOT_PROG} uboot $@
+
uboot: ${OBJS} ${LIBS}
${LD} -N -T ${RELOC} -e begin ${OBJS} ${LIBS} -o $@
@size $@
@echo $@ total size should not exceed 1044480 bytes
-install: uboot.lif ${MKBOOT_PROG}
+install: uboot.lif uboot.raw ${MKBOOT_PROG}
${INSTALL} -d -m 755 -o ${BINOWN} -g ${BINGRP} \
${DESTDIR}/usr/mdec/rbootd
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 uboot.lif \
${DESTDIR}/usr/mdec
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 uboot.raw \
+ ${DESTDIR}/usr/mdec
rm -f ${DESTDIR}/usr/mdec/hdboot
ln ${DESTDIR}/usr/mdec/uboot.lif ${DESTDIR}/usr/mdec/hdboot
rm -f ${DESTDIR}/usr/mdec/boothd