From a84f335c3a8388c537e9b61500192bf79c4b4234 Mon Sep 17 00:00:00 2001 From: "John P. Davis" Date: Wed, 15 Oct 2003 05:33:03 +0000 Subject: [PATCH] added target build scripts git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@11 d1e1f19c-881f-0410-ab34-b69fee027534 --- ChangeLog | 6 +++++- targets/stage3/stage3.sh | 21 +++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 targets/stage3/stage3.sh diff --git a/ChangeLog b/ChangeLog index 451b041d..1d0a793d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for gentoo/src/catalyst # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.2 2003/10/15 04:30:02 drobbins Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.3 2003/10/15 05:33:03 zhen Exp $ + + 15 Oct 2003; zhen targets/stage3/stage3.sh: + All preliminary target build scripts are now added and coded to near as spec + that we can have at this point. 14 Oct 2003; Daniel Robbins : new and improved ChangeLog; snapshots now work ("./catalyst-util.py snap 20031014",) and snapshotting cleans diff --git a/targets/stage3/stage3.sh b/targets/stage3/stage3.sh new file mode 100755 index 00000000..864d0630 --- /dev/null +++ b/targets/stage3/stage3.sh @@ -0,0 +1,21 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo/src/catalyst/targets/stage3/Attic/stage3.sh,v 1.1 2003/10/15 05:33:03 zhen Exp $ + +$CHROOT . /bin/bash << EOF + env-update + source /etc/profile + if [ ${CCACHE} -eq 1 ] + then + emerge --oneshot --nodeps --usepkg --buildpkg ccache || exit 1 + fi + if [ ${REL_TYPE} = "hardened" ] + then + emerge --oneshot --nodeps hardened-gcc || exit 1 + fi + export CONFIG_PROTECT="-*" + emerge system --usepkg --buildpkg || exit 1 +EOF + +[ $? -ne 0 ] && die "Stage 3 build failure" + -- 2.26.2