1 1.1 christos # $NetBSD: amd64.conf,v 1.1 2014/03/31 16:20:49 christos Exp $ 2 1.1 christos # Amd64 customization script used by mkimage 3 1.1 christos # 4 1.1 christos 5 1.1 christos board=amd64 6 1.1 christos MACHINE=amd64 7 1.1 christos kernel=$src/sys/arch/amd64/compile/GENERIC/netbsd 8 1.1 christos bootfile=$release/usr/mdec/boot 9 1.1 christos 10 1.1 christos . ${DIR}/conf/x86.conf 11 1.1 christos 12 1.1 christos make_filesystems() { 13 1.1 christos make_filesystems_x86 14 1.1 christos } 15 1.1 christos 16 1.1 christos make_fstab() { 17 1.1 christos make_fstab_x86 18 1.1 christos } 19 1.1 christos 20 1.1 christos make_label() { 21 1.1 christos make_label_x86 22 1.1 christos } 23 1.1 christos 24 1.1 christos customize() { 25 1.1 christos customize_x86 26 1.1 christos cat >> ${mnt}/etc/rc.conf << EOF 27 1.1 christos wscons=YES 28 1.1 christos devpubd=YES 29 1.1 christos EOF 30 1.1 christos 31 1.1 christos } 32 1.1 christos 33 1.1 christos populate() { 34 1.1 christos if [ ! -f ${kernel} ]; then 35 1.1 christos echo ${PROG}: Missing ${kernel} 1>&2 36 1.1 christos exit 1 37 1.1 christos fi 38 1.1 christos 39 1.1 christos echo "${bar} installing kernel ${bar}" 40 1.1 christos cp ${kernel} ${mnt}/netbsd 41 1.1 christos if [ ! -f ${bootfile} ]; then 42 1.1 christos echo ${PROG}: Missing ${bootfile} 1>&2 43 1.1 christos exit 1 44 1.1 christos fi 45 1.1 christos cp ${bootfile} ${mnt}/boot 46 1.1 christos } 47