Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 2004 13:03:12 -0600
From:      John Nielsen <lists@jnielsen.net>
To:        freebsd-current@freebsd.org
Cc:        Charles Swiger <cswiger@mac.com>
Subject:   Re: Signal 4 installing kernel/world built for different cputype
Message-ID:  <200409161303.12572.lists@jnielsen.net>
In-Reply-To: <53FDD37E-080F-11D9-A3FD-003065ABFD92@mac.com>
References:  <1095355065.4149cab9b58ff@webmail.jnielsen.net> <53FDD37E-080F-11D9-A3FD-003065ABFD92@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Boundary-00=_wNeSB1rn6NJLpLd
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Trying the attachments again as text/plain..

JN

--Boundary-00=_wNeSB1rn6NJLpLd
Content-Type: text/plain;
  charset="iso-8859-1";
  name="buildworld.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="buildworld.sh"

case ${1} in

386)
        cpu="i386"
        objdir="/usr/obj/386"
        kernconf="DINOSAUR DUM386"
        ;;

486)
        cpu="i486"
        objdir="/usr/obj/486"
        kernconf="TP365XD" #"RUNT FIDO PB486"
        ;;

586)
        cpu="i586"
        objdir="/usr/obj/586"
        kernconf="NEO THINKPAD" # SMURF STUCCO
        ;;
k62)
        cpu="k6-2"
        objdir="/usr/obj/k62"
        kernconf="NEUTRON" # BUFF
        ;;
tbird)
        cpu="athlon-tbird"
        objdir="/usr/obj/tbird"
        kernconf="STEALTH"
        ;;
p2)
        cpu="p2"
        objdir="/usr/obj/p2"
        kernconf="FLOP"
        ;;
*)
        echo "No arch supplied."
        exit 1
        ;;

esac

if [ -d ${objdir} ] ; then
	echo "Removing previous build directory..."
	rm -r ${objdir}
fi

echo "Creating build directory..."
mkdir ${objdir}

cd /usr/src

MAKEOBJDIRPREFIX=${objdir} ; export MAKEOBJDIRPREFIX

make KERNCONF="${kernconf}" CPUTYPE="${cpu}" cleandir
make KERNCONF="${kernconf}" CPUTYPE="${cpu}" cleandir
make KERNCONF="${kernconf}" CPUTYPE="${cpu}" clean
make KERNCONF="${kernconf}" CPUTYPE="${cpu}" -j4 buildworld
make KERNCONF="${kernconf}" CPUTYPE="${cpu}" -j4 buildkernel

--Boundary-00=_wNeSB1rn6NJLpLd
Content-Type: text/plain;
  charset="iso-8859-1";
  name="install-stealth.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="install-stealth.sh"

#!/bin/sh
MAKEOBJDIRPREFIX=/usr/obj/tbird ; export MAKEOBJDIRPREFIX
cd /usr/src
mergemaster -p
make KERNCONF=STEALTH CPUTYPE=athlon-tbird installkernel && \
make KERNCONF=STEALTH CPUTYPE=athlon-tbird installworld && \
mergemaster

--Boundary-00=_wNeSB1rn6NJLpLd
Content-Type: text/plain;
  charset="iso-8859-1";
  name="install-neo.sh"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="install-neo.sh"

#!/bin/sh
MAKEOBJDIRPREFIX=/usr/obj/586 ; export MAKEOBJDIRPREFIX
cd /usr/src
mergemaster -p
make KERNCONF=NEO CPUTYPE=i586 installkernel && \
make KERNCONF=NEO CPUTYPE=i586 installworld && \
mergemaster

--Boundary-00=_wNeSB1rn6NJLpLd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409161303.12572.lists>