diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-08-29 01:49:27 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-08-29 01:49:27 +0000 |
commit | b97e2e65847c2d18df54cc27fde33fa3594351bb (patch) | |
tree | d2aed1f6d6627f569393640616b3312960fb3a24 /sys | |
parent | 7aec1acf104dac62a8e0e10fb3b99d191e4fc3e8 (diff) |
add kernel to LIF volume in case we have DISKLESS built
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/stand/boot/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/arch/hppa/stand/boot/Makefile b/sys/arch/hppa/stand/boot/Makefile index 98f115cbf1e..23355e88af5 100644 --- a/sys/arch/hppa/stand/boot/Makefile +++ b/sys/arch/hppa/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 1998/06/27 02:59:21 mickey Exp $ +# $OpenBSD: Makefile,v 1.3 1998/08/29 01:49:26 mickey Exp $ PROG= boot SRCS= srt0.S boot.c cmd.c vars.c bootarg.c conf.c @@ -13,7 +13,7 @@ MAN= boot.8 MLINKS= boot.8 boot.conf.8 S =${.CURDIR}/../../../.. SADIR= ${.CURDIR}/.. -CLEANFILES+= boot.lif +CLEANFILES+= boot.lif bsd LDADD= ${LIBSA} ${LIBZ} ${LIBKERN} DPADD= ${LIBSA} ${LIBZ} ${LIBKERN} @@ -22,8 +22,15 @@ DPADD= ${LIBSA} ${LIBZ} ${LIBKERN} all: boot.lif -boot.lif: ${PROG} - ${MKBOOT} -v ${PROG} boot.lif +.if exists(${.CURDIR}/../../compile/DISKLESS/bsd) +diskless: ${.CURDIR}/../../compile/DISKLESS/bsd + cp ${.CURDIR}/../../compile/DISKLESS/bsd diskless +ADDBOOT+=diskless +.endif + +boot.lif: ${PROG} ${ADDBOOT} + ${STRIP} ${PROG} + ${MKBOOT} -v ${PROG} ${ADDBOOT} boot.lif ${PROG}: $(OBJS) $(DPADD) $(LD) $(LDFLAGS) -o $(PROG) $(OBJS) $(LDADD) |