Re: [PATCH] Re: crc32 and lib.a (was Re: [PATCH] nbd in 2.5.3 does

H. Peter Anvin (hpa@zytor.com)
31 Jan 2002 20:18:01 -0800


Followup to: <20020131.163054.41634626.davem@redhat.com>
By author: "David S. Miller" <davem@redhat.com>
In newsgroup: linux.dev.kernel
>
> tristate_orif "blah" CONFIG_FOO $CONFIG_SMALL
>
> This doesn't solve the CRC32 case. What if you want
> CONFIG_SMALL, yet some net driver that needs the crc32
> routines?
>

We could do it something like what I did with inflate_fs -- build it
as a module if the kernel proper doesn't need it (and modules are
enabled.)

It *does* mean the configure rules need to contain these dependencies,
though.

crc32 is an interesting case... you can create code to make the tables
with a very small amount of code. This saves space on disk, but not
in memory; in fact, if you can't jettison this code you lose in
memory...

-hpa

-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/