Re: scripts/config bug: can not enable CONFIG_FONT_MINI_4x6

From: Rasmus Villemoes
Date: Wed Nov 16 2022 - 02:56:37 EST


On 16/11/2022 08.29, Zhou, Jie2X wrote:
> hi,
>
> This is a kernel bug.
> ./scripts/config convert "CONFIG_FONT_MINI_4x6" to "CONFIG_FONT_MINI_4X6=y" in config.
> x->X, Lower case letters become upper case letters after process.
> After "make olddefconfig", CONFIG_FONT_MINI_4x6 is not set.
>
> Add CONFIG_FONT_MINI_4x6=y to .config.
> After "make olddefconfig", CONFIG_FONT_MINI_4x6 is set.
>

>From the script you're invoking:

if [ "$MUNGE_CASE" = "yes" ] ; then
ARG="`echo $ARG | tr a-z A-Z`"
fi
...
MUNGE_CASE=yes
while [ "$1" != "" ] ; do
...
--keep-case|-k)
MUNGE_CASE=no
continue
;;

So perhaps use -k when using that script to enable one of the rare
config options that contains a lower-case letter.

Rasmus