I have successfuly compile iPhone ToolChain in EEE PC environment.
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-svn-42498 -r 42498
svn co http://iphone-dev.googlecode.com/svn/trunk/ iphone-dev-209 -r 209
The screen dump shows the project build of hp15c for iPhone.
Build script
#!/bin/sh
cd ~/iphone
svn co http://llvm.org/svn/llvm-project/llvm/trunk \
llvm-svn-42498 -r 42498
svn co http://iphone-dev.googlecode.com/svn/trunk/ \
iphone-dev-209 -r 209
pushd llvm-svn-42498
./configure --enable-optimized
make ENABLE_OPTIMIZED=1
sudo make install
LLVMOBJDIR=`pwd`; export LLVMOBJDIR
popd
pushd iphone-dev-209
sudo mkdir /usr/local/arm-apple-darwin
mkdir -p build/odcctools
pushd build/odcctools
../../odcctools/configure --target=arm-apple-darwin \
--disable-ld64
make
sudo make install
popd
pushd ~/iphone
tar -xzvf MacOSX10.4u.sdk.tgz
pushd /usr/local/arm-apple-darwin
sudo tar -xzvf ~/iphone/include2.tgz
sudo tar -xzvf ~/iphone/iphone-filesystem.tgz
cd iphone-filesystem
HEAVENLY=`pwd`; export HEAVENLY
popd;popd
pushd include
./configure --with-macosx-sdk=/home/user/iphone/MacOSX10.4u.sdk
sudo bash install-headers.sh
popd
mkdir -p build/csu
pushd build/csu
../../csu/configure --host=arm-apple-darwin
sudo make install
popd
mkdir -p build/llvm-gcc-4.0-iphone
pushd build/llvm-gcc-4.0-iphone
../../llvm-gcc-4.0-iphone/configure \
--enable-llvm=`llvm-config --obj-root` \
--enable-languages=c,c++,objc,obj-c++ \
--target=arm-apple-darwin \
--enable-sjlj-exceptions \
--with-heavenly=$HEAVENLY \
--with-as=/usr/local/bin/arm-apple-darwin-as \
--with-ld=/usr/local/bin/arm-apple-darwin-ld
make LLVM_VERSION_INFO=2.0-svn-iphone-dev-0.3-svn
sudo make install
popd;popd
No comments:
Post a Comment