[BACK]Return to build.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/build.sh between version 1.263 and 1.264

version 1.263, 2013/02/03 05:37:43 version 1.264, 2013/02/13 02:17:54
Line 508  initdefaults()
Line 508  initdefaults()
         do_iso_image_source=false          do_iso_image_source=false
         do_live_image=false          do_live_image=false
         do_install_image=false          do_install_image=false
           do_disk_image=false
         do_params=false          do_params=false
         do_rump=false          do_rump=false
   
Line 922  Usage: ${progname} [-EhnorUuxy] [-a arch
Line 923  Usage: ${progname} [-EhnorUuxy] [-a arch
                         RELEASEDIR/RELEASEMACHINEDIR/installation/liveimage.                          RELEASEDIR/RELEASEMACHINEDIR/installation/liveimage.
     install-image       Create bootable installation image in      install-image       Create bootable installation image in
                         RELEASEDIR/RELEASEMACHINEDIR/installation/installimage.                          RELEASEDIR/RELEASEMACHINEDIR/installation/installimage.
       disk-image=target   Creae bootable disk image in
                           RELEASEDIR/RELEASEMACHINEDIR/binary/gzimg/target.img.gz.
     params              Display various make(1) parameters.      params              Display various make(1) parameters.
   
  Options:   Options:
Line 1208  parseoptions()
Line 1211  parseoptions()
                             bomb "Must supply a kernel name with \`${op}=...'"                              bomb "Must supply a kernel name with \`${op}=...'"
                         ;;                          ;;
   
                   disk-image=*)
                           arg=${op#*=}
                           op=disk_image
                           [ -n "${arg}" ] ||
                               bomb "Must supply a target name with \`${op}=...'"
   
                           ;;
   
                 modules)                  modules)
                         op=modules                          op=modules
                         ;;                          ;;
Line 1799  getkernelconf()
Line 1810  getkernelconf()
         kernelbuildpath="${KERNOBJDIR}/${kernelconfname}"          kernelbuildpath="${KERNOBJDIR}/${kernelconfname}"
 }  }
   
   diskimage()
   {
           ARG="$(echo $1 | tr '[:lower:]' '[:upper:]')"
           [ -f "${DESTDIR}/etc/mtree/set.base" ] ||
               bomb "The release binaries must be built first"
           kerneldir="${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel"
           kernel="${kerneldir}/netbsd-${ARG}.gz"
           [ -f "${kernel}" ] ||
               bomb "The kernel ${kernel} must be built first"
           make_in_dir "${NETBSDSRCDIR}/etc" "smp_${1}"
   }
   
 buildkernel()  buildkernel()
 {  {
         if ! ${do_tools} && ! ${buildkernelwarned:-false}; then          if ! ${do_tools} && ! ${buildkernelwarned:-false}; then
Line 2066  main()
Line 2089  main()
                         releasekernel "${arg}"                          releasekernel "${arg}"
                         ;;                          ;;
   
                   disk-image=*)
                           arg=${op#*=}
                           diskimage "${arg}"
                           ;;
   
                 modules)                  modules)
                         buildmodules                          buildmodules
                         ;;                          ;;

Legend:
Removed from v.1.263  
changed lines
  Added in v.1.264

CVSweb <webmaster@jp.NetBSD.org>