这是《嵌入式linux-硬件、软件与接口》一书对应的所有linux方面实例的源代码

源代码在线查看: buildtoolchain-step03-makebuilddirectories.txt

软件大小: 89 K
上传用户: ylchsj521
关键词: linux 嵌入式 硬件 接口
下载地址: 免注册下载 普通下载 VIP

相关代码

				#!/bin/bash
				# buildtoolchain-step03-makebuilddirectories 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 3 - Make Build Directories
				#
				date "+%x %X -   Started: $0"
				date "+%x %X -   Started: $0" >> $SRCFILELOC/output-build-status
				
				echo Making build directories in $BUILDLOC
				
				if [ ! -e $BUILDLOC ]
				then
					mkdir $BUILDLOC
				fi
				
				mkdir $BUILDLOC/$TARGET-binutils
				mkdir $BUILDLOC/$TARGET-gcc
				mkdir $BUILDLOC/$TARGET-glibc
				mkdir $BUILDLOC/$TARGET-gdb
				
				
				date "+%x %X - Completed: $0"
				date "+%x %X - Completed: $0" >> $SRCFILELOC/output-build-status
				
				
				# beep 
				echo -e "\07"
				
							

相关资源