《嵌入式Linux-硬件

源代码在线查看: buildtoolchain-step07-glibc

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

相关代码

				#!/bin/bash				# buildtoolchain-step07-glibc v1.2 08/13/02 				# www.embeddedlinuxinterfacing.com				#				# The original location of this script is				# http://www.embeddedlinuxinterfacing.com/chapters/03/buildtoolchain				# See buildtoolchain script for General Public License statement								if [ ! $BUILDTOOLCHAINENV ]				then				. ./buildtoolchain-environment $1				fi								# Step 7 - Build a Cross-Compiled Version of glibc				#				date "+%x %X -   Started: $0"				date "+%x %X -   Started: $0" >> $SRCFILELOC/output-build-status												echo Building $GLIBVERSION for $ARCH				cd $BUILDLOC				tar zxf $SRCFILELOC/$GLIBVERSION.tar.gz				cd $GLIBVERSION				tar zxf $SRCFILELOC/$GLIBCTHREADSVERSION.tar.gz								cd ../$TARGET-glibc												if [ $ARCH = "arm" ]				then				CC=$TARGET-gcc ../$GLIBVERSION/configure $TARGET --build=i586-linux --prefix=$PREFIX/$TARGET --enable-add-ons 				fi								if [ $ARCH = "ppc" ]				then				# need to remove memset.S for 8xx processors				rm -rf $BUILDLOC/$GLIBVERSION/sysdeps/powerpc/memset.S								CC=$TARGET-gcc  ../$GLIBVERSION/configure $TARGET --build=i586-linux --prefix=$PREFIX/$TARGET --enable-add-ons								fi								make				make install								date "+%x %X - Completed: $0"				date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status								#beep				echo -e "\07"							

相关资源