All of lore.kernel.org
 help / color / mirror / Atom feed
* scripts/config bug: can not enable CONFIG_FONT_MINI_4x6
@ 2022-11-16  7:29 Zhou, Jie2X
  2022-11-16  7:56 ` Rasmus Villemoes
  0 siblings, 1 reply; 3+ messages in thread
From: Zhou, Jie2X @ 2022-11-16  7:29 UTC (permalink / raw)
  To: linux-kernel; +Cc: Li, Philip

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.

enable CONFIG_FONT_MINI_4x6 by ./scripts/config:
[root@fedoraguest1 linux_stable]# grep FONT_MINI_4 .config
[root@fedoraguest1 linux_stable]# ./scripts/config --file .config --enable CONFIG_FONT_MINI_4x6
[root@fedoraguest1 linux_stable]# grep FONT_MINI_4 .config
CONFIG_FONT_MINI_4X6=y
[root@fedoraguest1 linux_stable]# make olddefconfig
#
# configuration written to .config
#
[root@fedoraguest1 linux_stable]# grep FONT_MINI_4 .config
# CONFIG_FONT_MINI_4x6 is not set

enable CONFIG_FONT_MINI_4x6 by writting .config:
[root@fedoraguest1 linux_stable]# echo CONFIG_FONT_MINI_4x6=y >> .config
[root@fedoraguest1 linux_stable]# make olddefconfig
.config:6708:warning: override: reassigning to symbol FONT_MINI_4x6
#
# configuration written to .config
#
[root@fedoraguest1 linux_stable]# grep FONT_MINI_4 .config
CONFIG_FONT_MINI_4x6=y

best regards,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scripts/config bug: can not enable CONFIG_FONT_MINI_4x6
  2022-11-16  7:29 scripts/config bug: can not enable CONFIG_FONT_MINI_4x6 Zhou, Jie2X
@ 2022-11-16  7:56 ` Rasmus Villemoes
  2022-11-16  8:40   ` Zhou, Jie2X
  0 siblings, 1 reply; 3+ messages in thread
From: Rasmus Villemoes @ 2022-11-16  7:56 UTC (permalink / raw)
  To: Zhou, Jie2X, linux-kernel; +Cc: Li, Philip

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: scripts/config bug: can not enable CONFIG_FONT_MINI_4x6
  2022-11-16  7:56 ` Rasmus Villemoes
@ 2022-11-16  8:40   ` Zhou, Jie2X
  0 siblings, 0 replies; 3+ messages in thread
From: Zhou, Jie2X @ 2022-11-16  8:40 UTC (permalink / raw)
  To: Rasmus Villemoes, linux-kernel; +Cc: Li, Philip

>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@prevas.dk>
Sent: Wednesday, November 16, 2022 3:56 PM
To: Zhou, Jie2X; linux-kernel@vger.kernel.org
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-11-16  8:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16  7:29 scripts/config bug: can not enable CONFIG_FONT_MINI_4x6 Zhou, Jie2X
2022-11-16  7:56 ` Rasmus Villemoes
2022-11-16  8:40   ` Zhou, Jie2X

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.