blob: 768c3f3e0dd6cef093fb27ab6cdd749ca0dba06f (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $OpenBSD: Makefile.inc,v 1.11 1998/09/16 20:27:26 rahnds Exp $
# etc.powerpc/Makefile.inc -- powerpc-specific etc Makefile targets
.ifdef DESTDIR
snap_md: bsd distrib
bsd:
cd ${.CURDIR}/../sys/arch/powerpc/conf && config GENERIC
cd ${.CURDIR}/../sys/arch/powerpc/compile/GENERIC && \
make clean && make depend && make
cp ${.CURDIR}/../sys/arch/powerpc/compile/GENERIC/bsd \
${DESTDIR}/snapshot/bsd
cd ${.CURDIR}/../sys/arch/powerpc/conf && config DDBOFW
cd ${.CURDIR}/../sys/arch/powerpc/compile/DDBOFW && \
make clean && make depend && make
(cd ${.CURDIR}/../sys/arch/powerpc/compile/DDBOFW/ && \
tar czf ${DESTDIR}/snapshot/bsdofw${OSrev}.tar.gz bsd )
cd ${.CURDIR}/../sys/arch/powerpc/conf && config MIX
cd ${.CURDIR}/../sys/arch/powerpc/compile/MIX && \
make clean && make depend && make
(cd ${.CURDIR}/../sys/arch/powerpc/compile/MIX/ && \
tar czf ${DESTDIR}/snapshot/bsdmix${OSrev}.tar.gz bsd )
# knows about bsd.rd, bsdofw.rd and bsdmix.rd
distrib:
cp ${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/snapshot/ofwboot
cd ${.CURDIR}/../distrib && make cleandir && \
make && make install
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/ofwboot ${DESTDIR}/snapshot/boot
mkisofs -r ${DESTDIR}/snapshot/boot > ${DESTDIR}/snapshot/boot.fs
rm -rf ${DESTDIR}/snapshot/boot
#
mkdir ${DESTDIR}/snapshot/bootofw
cp ${DESTDIR}/snapshot/bsdofw.rd ${DESTDIR}/snapshot/bootofw/bsdofw.rd
strip ${DESTDIR}/snapshot/bootofw/bsdofw.rd
gzip -9 ${DESTDIR}/snapshot/bootofw/bsdofw.rd
mv ${DESTDIR}/snapshot/bootofw/bsdofw.rd.gz ${DESTDIR}/snapshot/bootofw/bsd
cp ${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/snapshot/bootofw
cp ${DESTDIR}/usr/mdec/boot.mac ${DESTDIR}/snapshot/bootofw
mkisofs -r ${DESTDIR}/snapshot/bootofw > ${DESTDIR}/snapshot/bootofw.fs
rm -rf ${DESTDIR}/snapshot/bootofw
#
mkdir ${DESTDIR}/snapshot/bootmix
cp ${DESTDIR}/snapshot/bsdmix.rd ${DESTDIR}/snapshot/bootmix/bsdmix.rd
strip ${DESTDIR}/snapshot/bootmix/bsdmix.rd
gzip -9 ${DESTDIR}/snapshot/bootmix/bsdmix.rd
mv ${DESTDIR}/snapshot/bootmix/bsdmix.rd.gz ${DESTDIR}/snapshot/bootmix/bsd
cp ${DESTDIR}/usr/mdec/ofwboot ${DESTDIR}/snapshot/bootmix
mkisofs -r ${DESTDIR}/snapshot/bootmix > ${DESTDIR}/snapshot/bootmix.fs
rm -rf ${DESTDIR}/snapshot/bootmix
.endif # DESTDIR check
|