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