All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] UPX - compression of fs at target
@ 2019-12-03  9:32 a
  2019-12-03 21:25 ` Arnout Vandecappelle
  0 siblings, 1 reply; 2+ messages in thread
From: a @ 2019-12-03  9:32 UTC (permalink / raw)
  To: buildroot

HI, 
How can I make use of UPX so that the final image, that buildroot builds,
has libraries that are compresses even further by upx before creating the
image so that the image size get reduced further.



--
Sent from: http://buildroot-busybox.2317881.n4.nabble.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] UPX - compression of fs at target
  2019-12-03  9:32 [Buildroot] UPX - compression of fs at target a
@ 2019-12-03 21:25 ` Arnout Vandecappelle
  0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2019-12-03 21:25 UTC (permalink / raw)
  To: buildroot



On 03/12/2019 10:32, a wrote:
> HI, 
> How can I make use of UPX so that the final image, that buildroot builds,
> has libraries that are compresses even further by upx before creating the
> image so that the image size get reduced further.

 I guess you could write a post-build script that runs upx on all executable
files in ${TARGET_DIR}/bin and  ${TARGET_DIR}/usr/bin.

 To get good results, I expect you need to combine it with BR2_STATIC_LIBS.
Otherwise a large fraction of the total size will be in shared libraries instead
of executables, and I don't think those can be compressed. And then, you'd
probably also want to globally enable LTO - but Buildroot doesn't have good
support for that at this time.

 I expect that the net benefit will be limited though. You're going to be better
off with a rootfs that is compressed at the filesystem level, e.g. squashfs or
ubifs.

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-03 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-03  9:32 [Buildroot] UPX - compression of fs at target a
2019-12-03 21:25 ` Arnout Vandecappelle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.