Re: [PATCH] kconfig: untangle EXPERT and EMBEDDED

From: David Rientjes
Date: Wed Jan 11 2012 - 16:57:43 EST


On Wed, 11 Jan 2012, Andrew Jones wrote:

> Commit 6a108a14fa35 renamed CONFIG_EMBEDDED to CONFIG_EXPERT with the
> justification that EMBEDDED was being used with a broader scope. It was
> no longer just being used to expose standard options to embedded kernel
> configs for tweaking, but rather for all "non-standard" kernel configs.
> This is nice, because now developers have a way to clean up the config
> menu by adding 'if EXPERT' to all entries in their Kconfig files that
> should rarely have a non-default value selected (hint1: it would be nice
> if developers would do this, hint2: it would also be nice if developers
> would do this rather than making these types of options silent, and thus
> impossible to override).
>
> Unfortunately, EMBEDDED was also being used to modify the defaults of
> some of these options to selections more appropriate for embedded
> kernels. Since the renaming was a simple global search-replace, if
> developers were to follow hints 1 and 2 above for non-embedded kernels,
> then they may find unexpected changes in their configs after turning on
> EXPERT.
>

We discussed this when the patch was made to change EMBEDDED to EXPERT and
we knew that things like CONFIG_SLOB exist that would only make sense on a
platform with a very small memory footprint. So what criteria are you
using to determine what makes sense for EMBEDDED or not and what would be
generally useful for platforms with very small memory footprints?

I would think that something like CONFIG_SMALLMEM would identify those
candidates (for things like SLOB) and then you could separate the rest
based on the platform they exist for since you're essentially introducing
a new config symbol here that existed in the past but are now using it
with different semantics.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/