xref: /netbsd-src/distrib/sparc64/cdroms/installcd/Makefile (revision 9ddb6ab554e70fb9bbd90c3d96b812bc57755a14)
1#	$NetBSD: Makefile,v 1.14 2012/01/15 22:34:34 jmcneill Exp $
2CDBASE=		sparc64cd		# gives ${CDBASE}.iso
3CDRELEASE=	true			# include $RELEASEDIR/$MACHINE
4
5# for PRINTOBJDIR
6.include <bsd.own.mk>
7
8SYSINSTDIR!= cd ${.CURDIR}/../../../utils/sysinst/arch/${MACHINE} && ${PRINTOBJDIR}
9
10CDRELEASE_NOISOS=	true
11CDBOOTIMAGEDIR!= cd ${NETBSDSRCDIR}/distrib/sparc64/bootfs && ${PRINTOBJDIR}
12CDBOOTIMAGE=    ${CDBOOTIMAGEDIR}/boot.fs
13SUN_BOOT_ARGS:=  - - - - ${CDBOOTIMAGE}
14
15CDRUNTIME+=	./bin
16CDRUNTIME+=	./dev/MAKEDEV
17CDRUNTIME+=	./etc
18CDRUNTIME+=	./lib
19CDRUNTIME+=	./libdata
20CDRUNTIME+=	./libexec
21CDRUNTIME+=	./mnt
22CDRUNTIME+=	./sbin
23# CDRUNTIME+=	./stand
24CDRUNTIME+=	./tmp
25CDRUNTIME+=	./usr/bin/ftp
26CDRUNTIME+=	./usr/bin/getopt
27CDRUNTIME+=	./usr/bin/gunzip
28CDRUNTIME+=	./usr/bin/gzcat
29CDRUNTIME+=	./usr/bin/gzip
30CDRUNTIME+=	./usr/bin/grep
31CDRUNTIME+=	./usr/bin/less
32CDRUNTIME+=	./usr/bin/more
33CDRUNTIME+=	./usr/bin/netstat
34CDRUNTIME+=	./usr/bin/progress
35CDRUNTIME+=	./usr/bin/sed
36CDRUNTIME+=	./usr/bin/sort
37CDRUNTIME+=	./usr/bin/tip
38CDRUNTIME+=	./usr/bin/tput
39CDRUNTIME+=	./usr/bin/vmstat
40CDRUNTIME+=	./usr/lib/libbz2.so*
41CDRUNTIME+=	./usr/lib/libc.so*
42CDRUNTIME+=	./usr/lib/libcurses.so*
43CDRUNTIME+=	./usr/lib/libedit.so*
44CDRUNTIME+=	./usr/lib/libgcc_s.so*
45CDRUNTIME+=	./usr/lib/libintl.so*
46CDRUNTIME+=	./usr/lib/libkvm.so*
47CDRUNTIME+=	./usr/lib/liblzma.so*
48CDRUNTIME+=	./usr/lib/libterminfo.so*
49CDRUNTIME+=	./usr/lib/libutil.so*
50CDRUNTIME+=	./usr/lib/libz.so*
51CDRUNTIME+=	./usr/libexec/ld.elf_so
52CDRUNTIME+=	./usr/libexec/getty
53CDRUNTIME+=	./usr/mdec
54CDRUNTIME+=	./usr/sbin/chat
55CDRUNTIME+=	./usr/sbin/chroot
56CDRUNTIME+=	./usr/sbin/installboot
57CDRUNTIME+=	./usr/sbin/pppd
58CDRUNTIME+=	./usr/sbin/wiconfig
59CDRUNTIME+=	./usr/share/misc/terminfo.db
60CDRUNTIME+=	./usr/share/locale
61
62image_md_pre:
63	${RM} -rf cdrom/libexec/dhcpcd-hooks/*
64	${CP} ${.CURDIR}/../../../common/10-resolv.conf cdrom/libexec/dhcpcd-hooks
65	${CP} ${.CURDIR}/../../../common/99-print-sysinst cdrom/libexec/dhcpcd-hooks
66	${MKDIR} cdrom/etc
67	${HOST_LN} -fs /tmp/gettytab cdrom/etc/gettytab
68	${INSTALL} ${COPY} ${.CURDIR}/etc.ttys cdrom/etc/ttys
69	${INSTALL} ${COPY} ${.CURDIR}/etc.rc cdrom/etc/rc
70	${INSTALL} ${COPY} -m 0555 ${.CURDIR}/install.sh cdrom/install.sh
71	${MKDIR} cdrom/mnt2 cdrom/targetroot
72	${INSTALL} ${COPY} -m 0555 ${SYSINSTDIR}/sysinst cdrom
73	for f in ${SYSINSTDIR}/sysinstmsgs.??; do \
74		${INSTALL} ${COPY} $$f cdrom; \
75	done
76	${MKDIR} cdrom/var
77	${MKDIR} cdrom/kern
78	${CP} ${RELEASEDIR}/sparc64/binary/kernel/netbsd-GENERIC.gz cdrom/netbsd
79
80image_md_post:
81	SUNLABEL=${TOOL_SUNLABEL:Q} \
82		${HOST_SH} ${NETBSDSRCDIR}/distrib/common/sunbootcd.sh \
83		${CDIMAGE} ${SUN_BOOT_ARGS}
84
85
86.include "${.CURDIR}/../../../common/Makefile.bootcd"
87