blob: 74bf787aaaa6bc9e3a2d79c64bca8b4622f15cf6 (
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
|
# $OpenBSD: Makefile.inc,v 1.3 2006/07/27 02:50:22 deraadt Exp $
.ifdef DESTDIR
snap_md: bsd bootblocks distrib1
cp ${.CURDIR}/../sys/arch/mvmeppc/compile/GENERIC/bsd \
${DESTDIR}/snapshot/bsd
bsd:
cd ${.CURDIR}/../sys/arch/mvmeppc/conf && config GENERIC
cd ${.CURDIR}/../sys/arch/mvmeppc/compile/GENERIC && \
${MAKE} clean && ${MAKE} depend && exec ${MAKE}
bootblocks:
cp ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/snapshot/bootxx
cp ${DESTDIR}/usr/mdec/bootsd ${DESTDIR}/snapshot/bootsd
cp ${DESTDIR}/usr/mdec/installboot ${DESTDIR}/snapshot/installboot
# knows about bsd.rd and bsdofw.rd
distrib1:
${MAKE} distrib
mkdir ${DESTDIR}/snapshot/boot
cp ${DESTDIR}/snapshot/bsd.rd ${DESTDIR}/snapshot/boot/bsd.rd
strip ${DESTDIR}/snapshot/boot/bsd.rd
gzip -9 ${DESTDIR}/snapshot/boot/bsd.rd
mv ${DESTDIR}/snapshot/boot/bsd.rd.gz ${DESTDIR}/snapshot/boot/bsd
cp ${DESTDIR}/usr/mdec/bootxx ${DESTDIR}/snapshot/boot
mkisofs -r ${DESTDIR}/snapshot/boot > ${DESTDIR}/snapshot/boot.fs
rm -rf ${DESTDIR}/snapshot/boot
#
# compress the bsd.rd files but keep original naming,
# bootloader can deal with it.
gzip -9 ${DESTDIR}/snapshot/bsd.rd
mv ${DESTDIR}/snapshot/bsd.rd.gz ${DESTDIR}/snapshot/bsd.rd
.PHONY: bsd bootblocks distrib1
.endif # DESTDIR check
|