blob: 0919efd524f545e3212cf372e3eb46cbaea8988b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $OpenBSD: Makefile,v 1.1 2020/07/16 19:48:58 kettenis Exp $
NOMAN=
#MAN= boot.8
.if ${MACHINE} == "powerpc64"
all: bsd rdboot
bsd:
cd ${.CURDIR}/../../compile/BOOT && \
${MAKE} config && ${MAKE} clean && ${MAKE}
cp -p ${.CURDIR}/../../compile/BOOT/obj/bsd bsd
rdboot:
cp -p ${.CURDIR}/../rdboot/obj/rdboot rdboot
strip rdboot
mr.fs: rdboot
rm -rf $@.d
install -d -o root -g wheel $@.d/dev
install -d -o root -g wheel $@.d/mnt
install -d -o root -g wheel $@.d/sbin
install -o ${BINOWN} -g ${BINGRP} -m 555 rdboot $@.d/sbin/init
cd $@.d/dev && sh ${DESTDIR}/dev/MAKEDEV boot
makefs -o disklabel=rdboot,minfree=0,density=1024 $@ $@.d
boot: bsd mr.fs
cp bsd boot
rdsetroot boot mr.fs
realinstall: boot
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 boot ${DESTDIR}/usr/mdec
clean:
rm -f boot bsd mr.fs rdboot
rm -rf mr.fs.d
.endif
.include <bsd.prog.mk>
|