[Buildroot] [PATCH 1/1] fs/common.mk: enable multithreaded xz compression

James Hilliard james.hilliard1 at gmail.com
Mon Jan 21 21:34:51 UTC 2019


On Mon, Jan 21, 2019 at 10:39 AM Peter Korsgaard <peter at korsgaard.com> wrote:
>
> >>>>> "James" == James Hilliard <james.hilliard1 at gmail.com> writes:
>
>  > On Mon, Jan 21, 2019 at 7:02 AM Matthew Weber <matthew.weber at collins.com> wrote:
>  >>
>  >> James,
>  >>
>  >>
>  >> On Sun, Jan 20, 2019 at 8:08 PM <james.hilliard1 at gmail.com> wrote:
>  >> >
>  >> > From: James Hilliard <james.hilliard1 at gmail.com>
>  >> >
>  >> > xz help indicates only 1 thread is used unless we set threads:
>  >> > -T, --threads=NUM   use at most NUM threads; the default is 1; set to 0
>  >> >                     to use as many threads as there are processor cores
>  >> >
>  >>
>  >> It's good to see xz now has support, but I assume there is a minimum
>  >> version?  We ran into this outside of Builroot on a project where we
>  >> conditionally used the parallel "pxz" tool when available, as "xz"
>  >> didn't have the -T support consistently in distros yet.
>
> > I thought it was using the version compiled by buildroot.
> > Isn't that what host-xz is being used for?
>
> Yes, correct. Do you know if the -T 0 option generates identical output
> as -T 1? Otherwise we may want to disable it for reproducible builds.
I think it doesn't generate identical output, I wonder if it would be
a good idea to make all these compression flags configurable.
One issue I'm running across is that my test builds take at least 5
minutes or so to compress, having a way to set different xz flags
between test and production builds would be handy.
>
> --
> Bye, Peter Korsgaard


More information about the buildroot mailing list