[PATCH 1/6] jffs2: make lzo optional at build time
Artem Bityutskiy
dedekind1 at gmail.com
Tue Jun 7 03:20:51 EDT 2011
On Tue, 2011-06-07 at 02:59 -0400, Mike Frysinger wrote:
> On Tue, Jun 7, 2011 at 02:34, Artem Bityutskiy wrote:
> > On Tue, 2011-06-07 at 02:19 -0400, Mike Frysinger wrote:
> >> The external lzo dep can be a pain to deal with when cross-compiling,
> >> so make it optional for jffs2. This is useful if people aren't even
> >> using the functionality, or for quicker development.
> >
> > How about mkfs.ubifs - it requires lzo as well. And then mkfs.jffs2
> > wants libacl which might be the same PITA.
>
> libacl already has a knob.
OK.
> i didnt bother with mkfs.ubifs because it
> additionally requires libuuid which comes from util-linux.
Yeah. The only reason for this is that it wants to generate an UUID for
the new file-system. We could just use pseudo-random numbers as a
work-around.
> also, it
> seemed like lzo is the only compression supported by UBI, so making it
> optional didnt seem like it'd result in anything useful.
Not really, UBIFS currently supports lzo, zlib, and no compression. But
lzo is the default.
> at least
> jffs2 can operate without it by using other compression schemes.
UBIFS as well.
But please, do not bother with UBIFS if you do not need this. Just
verify that mkfs.jffs2 fails if you have not compiled lzo and try to use
it. I mean, mkfs.jffs2 should not silently use zlib in this case.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list