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