1 1.4 martin # $NetBSD: Makefile,v 1.5 2014/05/30 13:24:22 martin Exp $ 2 1.1 bouyer CDBASE= vaxcd # gives ${CDBASE}.iso 3 1.1 bouyer CDRELEASE= true # include $RELEASEDIR/$MACHINE 4 1.4 martin CDKERNELS= ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-GENERIC.gz netbsd.gz 5 1.3 martin CDRELEASE_NOISOS=true 6 1.1 bouyer 7 1.3 martin # for PRINTOBJDIR 8 1.3 martin .include <bsd.own.mk> 9 1.3 martin SYSINSTDIR!= cd ${.CURDIR}/../../../utils/sysinst/arch/${MACHINE} && ${PRINTOBJDIR} 10 1.3 martin 11 1.3 martin # prepare mutliuser install environment 12 1.3 martin image_md_pre: 13 1.1 bouyer ${RM} -f cdrom/boot 14 1.1 bouyer ${CP} ${DESTDIR}/usr/mdec/boot cdrom/boot 15 1.1 bouyer ${RM} -f bootxx.${MACHINE} 16 1.1 bouyer ${CP} ${DESTDIR}/usr/mdec/xxboot bootxx.${MACHINE} 17 1.3 martin ${RM} -rf cdrom/libexec/dhcpcd-hooks/* 18 1.3 martin ${MKDIR} -p cdrom/libexec/dhcpcd-hooks 19 1.3 martin ${CP} ${.CURDIR}/../../../common/10-resolv.conf cdrom/libexec/dhcpcd-hooks 20 1.3 martin ${CP} ${.CURDIR}/../../../common/99-print-sysinst cdrom/libexec/dhcpcd-hooks 21 1.3 martin ${MKDIR} cdrom/etc 22 1.3 martin ${HOST_LN} -fs /tmp/gettytab cdrom/etc/gettytab 23 1.3 martin ${INSTALL} ${COPY} ${.CURDIR}/etc.ttys cdrom/etc/ttys 24 1.3 martin ${INSTALL} ${COPY} ${.CURDIR}/etc.rc cdrom/etc/rc 25 1.3 martin ${INSTALL} ${COPY} -m 0555 ${.CURDIR}/install.sh cdrom/install.sh 26 1.3 martin ${MKDIR} cdrom/mnt2 cdrom/targetroot 27 1.3 martin ${INSTALL} ${COPY} -m 0555 ${SYSINSTDIR}/sysinst cdrom 28 1.3 martin for f in ${SYSINSTDIR}/sysinstmsgs.??; do \ 29 1.3 martin ${INSTALL} ${COPY} $$f cdrom; \ 30 1.3 martin done 31 1.4 martin ${TOOL_GZIP} -d cdrom/netbsd.gz 32 1.5 martin (cd cdrom/dev && ${HOST_SH} ./MAKEDEV all) 33 1.3 martin ${MKDIR} cdrom/var 34 1.3 martin ${MKDIR} cdrom/kern 35 1.1 bouyer 36 1.3 martin # make the CD bootable 37 1.1 bouyer image_md_post: 38 1.2 jmcneill ${TOOL_INSTALLBOOT} -m${MACHINE} ${CDIMAGE} bootxx.${MACHINE} 39 1.1 bouyer 40 1.3 martin CDRUNTIME+= ./bin 41 1.3 martin CDRUNTIME+= ./dev/MAKEDEV 42 1.3 martin CDRUNTIME+= ./etc 43 1.3 martin CDRUNTIME+= ./lib 44 1.3 martin CDRUNTIME+= ./libdata 45 1.3 martin CDRUNTIME+= ./libexec 46 1.3 martin CDRUNTIME+= ./mnt 47 1.3 martin CDRUNTIME+= ./sbin 48 1.3 martin # CDRUNTIME+= ./stand 49 1.3 martin CDRUNTIME+= ./tmp 50 1.3 martin CDRUNTIME+= ./usr/bin/ftp 51 1.3 martin CDRUNTIME+= ./usr/bin/getopt 52 1.3 martin CDRUNTIME+= ./usr/bin/gunzip 53 1.3 martin CDRUNTIME+= ./usr/bin/gzcat 54 1.3 martin CDRUNTIME+= ./usr/bin/gzip 55 1.3 martin CDRUNTIME+= ./usr/bin/grep 56 1.3 martin CDRUNTIME+= ./usr/bin/less 57 1.3 martin CDRUNTIME+= ./usr/bin/more 58 1.3 martin CDRUNTIME+= ./usr/bin/netstat 59 1.3 martin CDRUNTIME+= ./usr/bin/progress 60 1.3 martin CDRUNTIME+= ./usr/bin/sed 61 1.3 martin CDRUNTIME+= ./usr/bin/sort 62 1.3 martin CDRUNTIME+= ./usr/bin/tip 63 1.3 martin CDRUNTIME+= ./usr/bin/tput 64 1.3 martin CDRUNTIME+= ./usr/bin/vi 65 1.3 martin CDRUNTIME+= ./usr/bin/vmstat 66 1.3 martin CDRUNTIME+= ./usr/lib/libbz2.so* 67 1.3 martin CDRUNTIME+= ./usr/lib/libc.so* 68 1.3 martin CDRUNTIME+= ./usr/lib/libcurses.so* 69 1.3 martin CDRUNTIME+= ./usr/lib/libedit.so* 70 1.3 martin CDRUNTIME+= ./usr/lib/libgcc_s.so* 71 1.3 martin CDRUNTIME+= ./usr/lib/libintl.so* 72 1.3 martin CDRUNTIME+= ./usr/lib/libkvm.so* 73 1.3 martin CDRUNTIME+= ./usr/lib/liblzma.so* 74 1.3 martin CDRUNTIME+= ./usr/lib/libterminfo.so* 75 1.3 martin CDRUNTIME+= ./usr/lib/libutil.so* 76 1.3 martin CDRUNTIME+= ./usr/lib/libz.so* 77 1.3 martin .if (${MKCRYPTO} != "no") 78 1.3 martin CDRUNTIME+= ./usr/lib/libcrypto.so* 79 1.3 martin CDRUNTIME+= ./usr/lib/libssl.so* 80 1.3 martin .endif 81 1.3 martin CDRUNTIME+= ./usr/libexec/ld.elf_so 82 1.3 martin CDRUNTIME+= ./usr/libexec/getty 83 1.3 martin CDRUNTIME+= ./usr/mdec 84 1.3 martin CDRUNTIME+= ./usr/sbin/chat 85 1.3 martin CDRUNTIME+= ./usr/sbin/chroot 86 1.3 martin CDRUNTIME+= ./usr/sbin/installboot 87 1.3 martin CDRUNTIME+= ./usr/sbin/pppd 88 1.3 martin CDRUNTIME+= ./usr/sbin/wiconfig 89 1.3 martin CDRUNTIME+= ./usr/share/misc/terminfo.cdb 90 1.3 martin CDRUNTIME+= ./usr/share/locale 91 1.3 martin 92 1.1 bouyer .include "${.CURDIR}/../../../common/Makefile.bootcd" 93