免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1033 | 回复: 0
打印 上一主题 下一主题

用buildroot打造自己的Linux Toolchain [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-08 00:32 |只看该作者 |倒序浏览
For quite a long time, building a cross toolchain from the scratch seems like a nightmare to most embedded software engineers. This used to require hanlding a lot of interdependent source packages as well as their patches carefully.

With the assist of buildroot, which is made available along with well-known uclibc, things used to be a mess can be well handled by just a few simple commands.

Below is my attempt to build an arm toolchain:

1) Download the latest buildroot snapshot from uclibc.org. Like all other packages offered by uclibc, it has a fantastic DAILY snapshot.

2) Unpack the buildroot snapshot package like this:
# tar -jxvf buildroot-200xxxxxx.tar.bz2

3) Configure the buildroot. This looks quite alike with configuring linux kernel features. For me, I just need an arm toolchain integrated with the lightweight uclibc instead of the heavy glibc. So, I just made some simple changes within the toolchain menu. Probably, buildroot can be used to build other embedded components like linux kernel, busybox, even tinyx.

# make menuconfig  

4) Execute the build command. This supposes to take quite a long while to do a batch of traffic jobs like downloading different source packages, applying patches, compling the source code and etc. Please find youself a favorite computer game to kill the time..

# make


5) Finally, if everything is all right, you will have your toolchain in the build_arm sub-folder. To make the toolchain work, probably you have to add the path that contains the executable files like arm-linux-gcc, arm-linux-g++ into your $PATH environment.

Enjoy it.

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8059/showart_459263.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP