Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1361310
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: LINUX

2008-01-08 00:32:08

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.
阅读(1870) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~