scratchbox foreign toolchain 制作

在ubuntu 7.04下
安装SCRATCHBOX包括
scratchbox-core_1.0.7_i386.deb 
scratchbox-devkit-cputransp_1.0.2_i386.deb
scratchbox-devkit-debian_1.0.7.1_i386.deb
scratchbox-devkit-doctools_1.0.5_i386.deb
scratchbox-devkit-perl_1.0.4_i386.deb
scratchbox-libs_1.0.7_i386.deb
scratchbox-toolchain-host-gcc_1.0.7_i386.deb

拷贝你的工具链到/scratchbox/compilers 目录下面
如arm-linux
到/scratchbox目录下运行(保证可以上网,如果使用代理要设置http_proxy变量)
darcs get --set-scripts-executable http://scratchbox.org/repos/1.0/sb-toolchain-extras (安装darcs和 dh-buildinfo fakeroot使用新立得 textinfo)
cd /scratchbox/compilers/arm-linux/
运行
scratchbox/sb-toolchain-extras/confhelper/create_toolchain_conf.py
看到一些配置的结果,看看是否正确。如果感觉问题不大就运行
一般来说GUN 的自头都是不需要的~ 还有unknow 的前缀
scratchbox/sb-toolchain-extras/confhelper/create_toolchain_conf.py>scratchbox
/sb-toolchain-extras/meta/alien-tc/arm-linux.conf

修改arm-linux.conf
其中的COMPILER_PACKAGE变量为你喜欢的名字 还有一些变量和你的工具链有关系,在下面的编译中会出问题你可以按照提示修改
cd /scratchbox/sb-toolchain-extras目录下
运行
make CONFIG=meta/alien-tc/arm-linux.conf -C meta/alien-tc all-sums(要从网络上下载一些东西)
然后运行
make CONFIG=meta/alien-tc/arm-linux.conf -C meta/alien-tc
会出现一些错误(我分析是LINUX不支持的语法,基本都在Makefile中,有类似{copyright,contal}这样的变量)
/scratchbox/sb-toolchain-extras/toolchain/base-debian/Makefile
/scratchbox/sb-toolchain-extras/libc/glibc-alienbase-debian/Makefile
./libc/glibc-alienbase-debian/work/glibc-2.3.6/debian/rules
./libc/glibc-alienbase-debian/files/rules
./_darcs/pristine/libc/glibc-alienbase-debian/files/rules
./_darcs/pristine/toolchain/base-debian/Makefile
./_darcs/pristine/libc/glibc-2.3-debian/Makefile
./_darcs/pristine/libc/glibc-alienbase-debian/Makefile
./_darcs/pristine/libc/uclibc-debian/Makefile
./_darcs/pristine/cc/gcc-3.4-debian/Makefile
./_darcs/pristine/device_tools/fakeroot/Makefile
./cc/gcc-3.4-debian/Makefile
./device_tools/fakeroot/Makefile:
?
touch /bfd.info 缺少很多的info文件 touch 一下

 这样就大功告成了~
评论 11
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值