[PATCH 1/1] defaultenv: use a compressed version when embedded in barebox

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Dec 14 12:40:11 EST 2011


On 18:06 Wed 14 Dec     , Sascha Hauer wrote:
> On Wed, Dec 14, 2011 at 04:42:42PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> > with using gzip and the default env we can save 5.2KiB (5,352 bytes)
> > 
> > tested on sam9g20ek
> > before
> > -rwxr-xr-x  1 root root 260396 Dec 14 00:42 barebox.bin
> > after
> > -rwxr-xr-x  1 root root 265748 Dec 14 00:42 barebox.bin
> 
> Hm, your binary became 5353 bytes bigger not smaller...
> 
> We can safe a few bytes if we have zlib in our config anyway, but
> selecting it just to compress the defaultenv is a non starter because
> zlib is bigger than the uncompressed defaultenv.
> 
> How about a
> 
> config DEFAULT_ENVIRONMENT_COMPRESSED
> 	default y if ZLIB
> 
> instead?
sorry it's the invert we do use 5kIB less

Best Regards,
J.



More information about the barebox mailing list