《嵌入式Linux-硬件

源代码在线查看: buildtoolchain-step11-rebuildgcc

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

相关代码

				#!/bin/bash				# buildtoolchain-step11-rebuildgcc v1.2 08/13/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 11 - rebuilding a Cross-Compiler Version of gcc				#				date "+%x %X -   Started: $0"				date "+%x %X -   Started: $0" >> $SRCFILELOC/output-build-status												echo Re-building $TARGET-$GCCVERSION				cd $BUILDLOC				rm -rf $GCCVERSION								tar zxf $SRCFILELOC/$GCCVERSION.tar.gz								if [ $GCCPATCH ]				then					cd $GCCVERSION					bzip2 -cd $SRCFILELOC/$GCCPATCH | patch -p0					cd ../$TARGET-gcc				fi								cd $BUILDLOC/$TARGET-gcc								if [ $ARCH = "arm" ]				then					../$GCCVERSION/configure --target=$TARGET \				                                 --prefix=$PREFIX \				                                 --with-headers=$PREFIX/src/$TARGET/include \				                                 --enable-languages=c				fi								if [ $ARCH = "ppc" ]				then								        ../$GCCVERSION/configure --target=$TARGET \				                         --prefix=$PREFIX \				                         --with-headers=$PREFIX/src/$TARGET/include \				                         --enable-languages=c \				                         --without-fp				fi								make				make install								ls -l $PREFIX/bin/$TARGET-*								date "+%x %X - Completed: $0"				date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status												#beep				echo -e "\07"							

相关资源