《嵌入式Linux-硬件

源代码在线查看: buildtoolchain-step01-check

软件大小: 85 K
上传用户: xiao11tian
关键词: Linux 嵌入式 硬件
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/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"							

相关资源