📄 buildtoolchain-step01-check.txt
字号:
#!/bin/bash
# buildtoolchain-step01-check v1.21 08/21/02
# www.embeddedlinuxinterfacing.com
#
# The original location of this script is
# http://www.embeddedlinuxinterfacing.com/chapters/03/buildtoolchain
#
# Copyright (C) 2001 by Craig Hollabaugh
# See buildtoolchain script for General Public License statement
if [ ! $BUILDTOOLCHAINENV ]
then
. ./buildtoolchain-environment $1
fi
#
# Step 1 - Check for required src files
#
date "+%x %X - Started: $0"
date "+%x %X - Started: $0" >> $SRCFILELOC/output-build-status
if [ ! -f $SRCFILELOC/$BINUTILSVERSION.tar.gz ]
then
echo Missing $BINUTILSVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$BINUTILSVERSION.tar.gz
#wget --passive-ftp ftp://ftp.gnu.org/gnu/binutils/$BINUTILSVERSION.tar.gz
#wget --passive-ftp ftp://ftp.gnu.org/gnu/binutils/$BINUTILSVERSION.tar.bz2
fi
if [ ! -f $SRCFILELOC/$GCCVERSION.tar.gz ]
then
echo Missing $GCCVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$GCCVERSION.tar.gz
#wget --passive-ftp ftp://ftp.gnu.org/pub/gnu/gcc/$GCCVERSION.tar.gz
fi
if [ $GCCPATCH ]
then
if [ ! -f $SRCFILELOC/$GCCPATCH ]
then
echo Missing $GCCPATCH
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$GCCPATCH
fi
fi
if [ ! -f $SRCFILELOC/$GLIBVERSION.tar.gz ]
then
echo Missing $GLIBVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$GLIBVERSION.tar.gz
#wget --passive-ftp ftp://ftp.gnu.org/pub/gnu/glibc/$GLIBVERSION.tar.gz
fi
if [ ! -f $SRCFILELOC/$GLIBCTHREADSVERSION.tar.gz ]
then
echo Missing $GLIBCTHREADSVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$GLIBCTHREADSVERSION.tar.gz
#wget --passive-ftp ftp://ftp.gnu.org/pub/gnu/glibc/$GLIBCTHREADSVERSION.tar.gz
fi
if [ ! -f $SRCFILELOC/$KERNELVERSION.tar.gz ]
then
echo Missing $KERNELVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$KERNELVERSION.tar.gz
#wget --passive-ftp ftp://ftp.kernel.org/pub/linux/kernel/v2.4/$KERNELVERSION.tar.gz
fi
if [ $KERNELPATCH1 ]
then
if [ ! -f $SRCFILELOC/$KERNELPATCH1 ]
then
echo Missing $KERNELPATCH1
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$KERNELPATCH1
fi
fi
if [ $KERNELPATCH2 ]
then
if [ ! -f $SRCFILELOC/$KERNELPATCH2 ]
then
echo Missing $KERNELPATCH2
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$KERNELPATCH2
fi
fi
if [ $KERNELPATCH3 ]
then
if [ ! -f $SRCFILELOC/$KERNELPATCH3 ]
then
echo Missing $KERNELPATCH3
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$KERNELPATCH3
fi
fi
if [ ! -f $SRCFILELOC/$GDBVERSION.tar.bz2 ]
then
echo Missing $GDBVERSION.tar.gz
wget --tries=5 http://www.embeddedlinuxinterfacing.com/source/$GDBVERSION.tar.bz2
#wget --passive-ftp ftp://sources.redhat.com/pub/gdb/old-releases/$GDBVERSION.tar.bz2
#wget --passive-ftp ftp://ftp.gnu.org/pub/gnu/gdb/$GDBVERSION.tar.gz
fi
date "+%x %X - Completed: $0"
date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status
#beep
echo -e "\07"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -