bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TODO : Add more --disable-FOO...


From: OKUJI Yoshinori
Subject: Re: TODO : Add more --disable-FOO...
Date: Wed, 21 Feb 2001 13:01:48 +0900

From: Thierry Laronde <address@hidden>
Subject: TODO : Add more --disable-FOO...
Date: Tue, 20 Feb 2001 16:47:58 +0100

> Using defines (with builtins functions), one can achieve some high
> flexibility on compile time. But, for basic usages, this is unpractical. So
> we can group via --disable-<package> several functions that belong to the
> same group. 

I think Bash-like strategy would be better. That is, grouping options
is performed at the configure level but not at the source
level. Please take a look at Bash source distribution.

> So, question : do you think that adding the #ifdef <NAME>_FUNC / #endif for
> all the functions that are not core boot ones, and adding 4 or 5 "packages"
> options in configure is the good way to go ?

I'm not sure. If you want to reduce the size significantly, you will
have to omit many things as well as some of the builtin functions. For
example, omitting long help messages decreases the size very much (I
don't remember exactly). If you want to boot a single kind of
operating system, you can disable support for other operating systems.

Because boot floppies are somewhat special, I don't see if there exists
the best way generally. Possibly, if you want to get as small size as
that of grub-0.5, you will have to disable fancy features that are
difficult to be ommited just by cpp, such as file name completion.

Okuji



reply via email to

[Prev in Thread] Current Thread [Next in Thread]