Compile Busybox for Android
1. Get the busybox sources:
$ wget -c http://www.busybox.net/downloads/busybox-1.18.1.tar.bz2
$ tar jxvf busybox-1.18.1.tar.bz2
2. Download the ARM Toolkit , e.g. Sourcery G++ Lite 2008q1-126 for ARM GNU /Linux
$ wget -c http://www.codesourcery.com/sgpp/lite/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
note: using the newest toolchain compile busybox-1.18.1 failed, use this toolchain 4.2.3 compiled ok.
3. configure the busybox
$ cd busybox-1.18.1
$ make menuconfig
configure busybox as desired, or just
$ make defconfig
4. compile the busybox
$ make CROSS_COMPILE=/yourpath/arm-2008q1/bin/arm-none-linux-gnueabi- LDFLAGS="--static" CFLAGS="--static"
$ file busybox
busybox: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, stripped
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer