]>
git.ipfire.org Git - ipfire-3.x.git/blob - tools/make-interactive
2 ###############################################################################
4 # IPFire.org - A linux based firewall #
5 # Copyright (C) 2008 Michael Tremer & Christian Schmidt #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
29 # check for prerequisites
31 # check for sanity of code
33 # compile the distro right now
40 # enter a shell inside LFS chroot
41 # may be used to change kernel settings
47 # build the distro in background
65 # show some stats about the compiler(s)
77 echo -ne "Cleaning ${BOLD}$MACHINE${NORMAL} buildtree"
79 for i
in $
(mount |
grep $BASEDIR | cut
-d " " -f 1); do
85 rm -rf $BASEDIR/build_
${MACHINE}
86 rm -rf $BASEDIR/log_
${MACHINE}
87 rm -rf $BASEDIR/packages
88 rm -f $FAILED $RUNNING 2>/dev
/null
90 if [ -h $TOOLS_DIR ]; then
97 LOGFILE
=$BASEDIR/log_
${MACHINE}/_build
.00-preparation.log
118 # Check if host can build the toolchain
126 echo -ne "\ntarball creation "
127 [ -d $BASEDIR/cache
/toolchains
] || mkdir
$BASEDIR/cache
/toolchains
128 cd $BASEDIR && tar cj
--exclude='log_${MACHINE}/_build.*.log' \
129 --file=cache
/toolchains
/$TOOLCHAINNAME.
tar.bz2 \
130 build_
${MACHINE} log_
${MACHINE} >> $LOGFILE
131 beautify message DONE
132 echo `ls -sh cache/toolchains/$TOOLCHAINNAME.tar.bz2`
159 if check_cpu
$3; then
160 echo -n "CPU has flag $3"
161 beautify message DONE
163 dialogerror
"CPU hasn't got flag $3"
204 *) # If no command matches run git directly