Busybox, compile one applet only

It might be handy to compile busybox with only one applet, or a very minimal set of applets to minimise the binary size. This could be achieved by running “make menuconfig” and selecting / deselecting what is or is not wished, but if all you want is one or two applets, as so much is preselected by default, this is very tedious to do.

It would be great if there was a way to start clean, on a config file where nothing is preselected.

Well the way to that is to run:

make allnoconfig

Then run:

make menuconfig

and choose what you want. After the usual:

make -j 4

if you run the busybox binary, you will see listed only the applets you selected. If you selected only one applet though, it will be launch directly.

Neat!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s