I'm building an embedded system based on debian 7, and I'd like to make the most out of busybox that comes with debian. The problem is default busybox build in debian seems quite minimal, for example it does not even include passwd
.
On the other hand I don't want to build busybox from busybox.net sources for stability and update issues.
So how can I build and install a bigger busybox from debian source package?
/tmp/bb/busybox-1.20.0/debian/build/deb/busybox
is much larger than previous busybox I installed from debian repo. any idea why? – zaadeh Oct 06 '13 at 12:09deb
configuration just for example, maybe it differ from the one you were using (which busybox package you were using?), then I guess the files in thebuild/
directory aren't stripped, you've to take them after thebinary
from the.deb
or strip them manually. – Alex Oct 06 '13 at 12:21busybox
package from official debian i386 wheezy repo, the file name isbusybox_1.20.0-7_i386.deb
. I ranstrip /tmp/bb/busybox-1.20.0/debian/build/deb/busybox
and it shrank in size to nearly the size of/bin/busybox
, but not the same size. It became slightly smaller (~20k). also the busybox binary in created deb package is again a few bytes smaller than my stripped binary. Any idea why? It makes me nervous ;) because I did not touch default debian source package config. – zaadeh Oct 06 '13 at 12:46deb
configuration is the right one :) my installed one have exactly the same size of the new one from the.deb
662520 bytes. For the stripped one I can just guessdh_strip
is using some different option from yours, for the other difference I've no idea, the package version maybe, applied patches? gcc build version maybe? dunno – Alex Oct 06 '13 at 13:09