From: John P. Davis Date: Mon, 11 Oct 2004 14:28:27 +0000 (+0000) Subject: added netboot code X-Git-Tag: CATALYST_2_0_6_916~920 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b38c01ea9877a70d5c800d60a70b7d86523caf76;p=catalyst.git added netboot code git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@453 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/targets/netboot/netboot-combine.sh b/targets/netboot/netboot-combine.sh new file mode 100644 index 00000000..ef761319 --- /dev/null +++ b/targets/netboot/netboot-combine.sh @@ -0,0 +1,70 @@ +#!/bin/bash +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/netboot-combine.sh,v 1.1 2004/10/11 14:28:27 zhen Exp $ + +/usr/sbin/env-update +source /etc/profile + +[ -f /tmp/envscript ] && source /tmp/envscript + +# First install the boot package that we need +booter="" +case ${clst_mainarch} in + alpha) booter="";; + arm) booter="";; + hppa) booter=palo;; + sparc*) booter=sparc-utils;; + x86) booter=netboot;; + *) exit 1;; +esac +if [ ! -z "${booter}" ] ; then + emerge -k -b ${booter} || exit 1 +fi + +# Then generate the netboot image ! :D +case ${clst_mainarch} in + alpha) + make \ + -C /usr/src/linux \ + INITRD=/initrd.gz \ + HPATH="/usr/src/linux/include" \ + vmlinux bootpfile \ + || exit 1 + cp /usr/src/linux/arch/alpha/boot/bootpfile /netboot.alpha || exit 1 + ;; + arm) + cp /kernel /netboot.arm || exit 1 + cat /initrd.gz >> /netboot.arm || exit 1 + #make \ + # -C /usr/src/linux \ + # INITRD=/initrd.gz \ + # bootpImage \ + # || exit 1 + ;; + hppa) + palo \ + -k /kernel \ + -r /initrd.gz \ + -s /netboot.hppa \ + -f foo \ + -b /usr/share/palo/iplboot \ + -c "0/vmlinux root=/dev/ram0 initrd=/initrd" \ + || exit 1 + ;; + sparc*) + elftoaout -o /netboot.${clst_mainarch} /usr/src/linux/vmlinux + piggy=${clst_mainarch/sparc/piggyback} + ${piggy} /netboot.${clst_mainarch} /usr/src/linux/System.map initrd.gz + ;; + x86) + mknbi-linux \ + -k /kernel \ + -r /initrd.gz \ + -o /netboot.x86 \ + -x \ + -a "root=/dev/ram0 initrd=/initrd" \ + || exit 1 + ;; + *) exit 1;; +esac diff --git a/targets/netboot/netboot-setup.sh b/targets/netboot/netboot-setup.sh new file mode 100644 index 00000000..a37b24a7 --- /dev/null +++ b/targets/netboot/netboot-setup.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/netboot/Attic/netboot-setup.sh,v 1.1 2004/10/11 14:28:27 zhen Exp $ + +/usr/sbin/env-update +source /etc/profile + +[ -f /tmp/envscript ] && source /tmp/envscript + +if [ -n "${clst_CCACHE}" ] +then + emerge -b -k --oneshot --nodeps ccache || exit 1 +fi + +if [ -n "${clst_DISTCC}" ] +then + USE="-gtk -gnome" emerge -b -k --oneshot --nodeps distcc || exit 1 +fi + +mkdir -p ${IMAGE_PATH}