Re: scripts/config bug: can not enable CONFIG_FONT_MINI_4x6

From: Zhou, Jie2X
Date: Wed Nov 16 2022 - 03:40:15 EST


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

best regards,

________________________________________
From: Rasmus Villemoes <rasmus.villemoes@xxxxxxxxx>
Sent: Wednesday, November 16, 2022 3:56 PM
To: Zhou, Jie2X; linux-kernel@xxxxxxxxxxxxxxx
Cc: Li, Philip
Subject: Re: scripts/config bug: can not enable CONFIG_FONT_MINI_4x6

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