AnsweredAssumed Answered

How to compile busybox

Question asked by Qiulong Li on Dec 28, 2015
Latest reply on Oct 31, 2017 by shunping lin

Hello community

My environment is i.MX6Q and android 4.4.2.

I modified some commands in busybox then I want to compile it,I follow busybox on the i.MX6 sabre sd platform in a few commands ,and these are my steps:

 

$ cd myandroid/external/busybox

$ export ARCH=arm

$ export CROSS_COMPILE=~/myandroid/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-

$ make defconfig

$ sed -i.orig 's/^#.*CONFIG_STATIC.*/CONFIG_STATIC=y/' .config

$ make

 

When I make,I got fail,like below:

 

CC      applets/applets.o

applets/applets.c:10:20: fatal error: assert.h: No such file or directory

compilation terminated.

make[1]: *** [applets/applets.o] Error 1

make: *** [applets_dir] Error 2

 

So,please tell me how to compile busybox?

Thank You

Qiulong Li

Outcomes