[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.202 and 1.203

version 1.202, 2009/02/24 22:25:24 version 1.203, 2009/02/25 23:34:10
Line 1 
Line 1 
 #! /usr/bin/env sh  #! /usr/bin/env sh
 #       $NetBSD$  #       $NetBSD$
 #  #
 # Copyright (c) 2001-2008 The NetBSD Foundation, Inc.  # Copyright (c) 2001-2009 The NetBSD Foundation, Inc.
 # All rights reserved.  # All rights reserved.
 #  #
 # This code is derived from software contributed to The NetBSD Foundation  # This code is derived from software contributed to The NetBSD Foundation
Line 1233  EOF
Line 1233  EOF
         statusmsg "Updated ${makewrapper}"          statusmsg "Updated ${makewrapper}"
 }  }
   
   make_in_dir()
   {
           dir="$1"
           op="$2"
           ${runcmd} cd "${dir}" ||
               bomb "Failed to cd to \"${dir}\""
           ${runcmd} "${makewrapper}" ${parallel} ${op} ||
               bomb "Failed to make ${op} in \"${dir}\""
           ${runcmd} cd "${TOP}" ||
               bomb "Failed to cd back to \"${TOP}\""
   }
   
 buildtools()  buildtools()
 {  {
         if [ "${MKOBJDIRS}" != "no" ]; then          if [ "${MKOBJDIRS}" != "no" ]; then
                 ${runcmd} "${makewrapper}" ${parallel} obj-tools ||                  ${runcmd} "${makewrapper}" ${parallel} obj-tools ||
                     bomb "Failed to make obj-tools"                      bomb "Failed to make obj-tools"
         fi          fi
         ${runcmd} cd tools  
         if [ "${MKUPDATE}" = "no" ]; then          if [ "${MKUPDATE}" = "no" ]; then
                 ${runcmd} "${makewrapper}" ${parallel} cleandir ||                  make_in_dir tools cleandir
                     bomb "Failed to make cleandir tools"  
         fi          fi
         ${runcmd} "${makewrapper}" ${parallel} dependall ||          make_in_dir tools dependall
             bomb "Failed to make dependall tools"          make_in_dir tools install
         ${runcmd} "${makewrapper}" ${parallel} install ||  
             bomb "Failed to make install tools"  
         statusmsg "Tools built to ${TOOLDIR}"          statusmsg "Tools built to ${TOOLDIR}"
         ${runcmd} cd "${TOP}"  
 }  }
   
 getkernelconf()  getkernelconf()
Line 1262  getkernelconf()
Line 1269  getkernelconf()
                 #                  #
                 KERNSRCDIR="$(getmakevar KERNSRCDIR)"                  KERNSRCDIR="$(getmakevar KERNSRCDIR)"
                 KERNARCHDIR="$(getmakevar KERNARCHDIR)"                  KERNARCHDIR="$(getmakevar KERNARCHDIR)"
                 ${runcmd} cd "${KERNSRCDIR}/${KERNARCHDIR}/compile"                  make_in_dir "${KERNSRCDIR}/${KERNARCHDIR}/compile" obj
                 ${runcmd} "${makewrapper}" ${parallel} obj ||  
                     bomb "Failed to make obj in ${KERNSRCDIR}/${KERNARCHDIR}/compile"  
                 ${runcmd} cd "${TOP}"  
         fi          fi
         KERNCONFDIR="$(getmakevar KERNCONFDIR)"          KERNCONFDIR="$(getmakevar KERNCONFDIR)"
         KERNOBJDIR="$(getmakevar KERNOBJDIR)"          KERNOBJDIR="$(getmakevar KERNOBJDIR)"
Line 1300  buildkernel()
Line 1304  buildkernel()
         ${runcmd} mkdir -p "${kernelbuildpath}" ||          ${runcmd} mkdir -p "${kernelbuildpath}" ||
             bomb "Cannot mkdir: ${kernelbuildpath}"              bomb "Cannot mkdir: ${kernelbuildpath}"
         if [ "${MKUPDATE}" = "no" ]; then          if [ "${MKUPDATE}" = "no" ]; then
                 ${runcmd} cd "${kernelbuildpath}"                  make_in_dir "${kernelbuildpath}" cleandir
                 ${runcmd} "${makewrapper}" ${parallel} cleandir ||  
                     bomb "Failed to make cleandir in ${kernelbuildpath}"  
                 ${runcmd} cd "${TOP}"  
         fi          fi
         [ -x "${TOOLDIR}/bin/${toolprefix}config" ] \          [ -x "${TOOLDIR}/bin/${toolprefix}config" ] \
         || bomb "${TOOLDIR}/bin/${toolprefix}config does not exist. You need to \"$0 tools\" first."          || bomb "${TOOLDIR}/bin/${toolprefix}config does not exist. You need to \"$0 tools\" first."
         ${runcmd} "${TOOLDIR}/bin/${toolprefix}config" -b "${kernelbuildpath}" \          ${runcmd} "${TOOLDIR}/bin/${toolprefix}config" -b "${kernelbuildpath}" \
                 -s "${TOP}/sys" "${kernelconfpath}" ||                  -s "${TOP}/sys" "${kernelconfpath}" ||
             bomb "${toolprefix}config failed for ${kernelconf}"              bomb "${toolprefix}config failed for ${kernelconf}"
         ${runcmd} cd "${kernelbuildpath}"          make_in_dir "${kernelbuildpath}" depend
         ${runcmd} "${makewrapper}" ${parallel} depend ||          make_in_dir "${kernelbuildpath}" all
             bomb "Failed to make depend in ${kernelbuildpath}"  
         ${runcmd} "${makewrapper}" ${parallel} all ||  
             bomb "Failed to make all in ${kernelbuildpath}"  
         ${runcmd} cd "${TOP}"  
   
         if [ "${runcmd}" != "echo" ]; then          if [ "${runcmd}" != "echo" ]; then
                 statusmsg "Kernels built from ${kernelconf}:"                  statusmsg "Kernels built from ${kernelconf}:"

Legend:
Removed from v.1.202  
changed lines
  Added in v.1.203

CVSweb <webmaster@jp.NetBSD.org>