merge_config.sh: Add option for allmodconfig
PATCH 1/1 merge_config.sh: Add option for allmodconfig
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/
If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
So add an option to add add fragments to an allmodconfig kernel.
scripts/kconfig/merge_config.sh +7 -0
@@ -23,6 +23,7 @@ clean_up() { usage() { echo "Usage: $0 [OPTIONS] [CONFIG [...]]" echo " -h display this help text" + echo " -a use allmodconfig instead of alldefconfig" echo " -m only merge the fragments, do not execute the make command" echo " -n use allnoconfig instead of alldefconfig" echo " -r list redundant entries when merging fragments"
@@ -41,6 +42,11 @@ CONFIG_PREFIX=${CONFIG_-CONFIG_} while true; do case $1 in + "-a") + ALLTARGET=allmodconfig + shift + continue + ;; "-n") ALLTARGET=allnoconfig shift
@@ -171,6 +177,7 @@ fi # Use the merged file as the starting point for: # alldefconfig: Fills in any missing symbols with Kconfig default +# allmodconfig: Fills in any missing symbols with =m when loadable # allnoconfig: Fills in any missing symbols with # CONFIG_* is not set make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET
Signature · 1 line
2.17.1
On 10/12/2019 12:09, John Garry wrote:
Hi Masahiro,
Could you please consider this patch?
Thanks,
John
Quoted 49 lines
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
So add an option to add add fragments to an allmodconfig kernel.
Signed-off-by John Garry <[email protected]>scripts/kconfig/merge_config.sh +7
-0@@ -23,6 +23,7 @@ clean_up() { usage() { echo "Usage: $0 [OPTIONS] [CONFIG [...]]" echo " -h display this help text" + echo " -a use allmodconfig instead of alldefconfig" echo " -m only merge the fragments, do not execute the make command" echo " -n use allnoconfig instead of alldefconfig" echo " -r list redundant entries when merging fragments"@@ -41,6 +42,11 @@ CONFIG_PREFIX=${CONFIG_-CONFIG_} while true; do case $1 in + "-a") + ALLTARGET=allmodconfig + shift + continue + ;; "-n") ALLTARGET=allnoconfig shift@@ -171,6 +177,7 @@ fi # Use the merged file as the starting point for: # alldefconfig: Fills in any missing symbols with Kconfig default +# allmodconfig: Fills in any missing symbols with =m when loadable # allnoconfig: Fills in any missing symbols with # CONFIG_* is not set make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET
Quoted 21 lines · John Garry
On 10/12/2019 12:09, John Garry wrote:
Hi Masahiro,
Could you please consider this patch?
Thanks,
JohnQuoted 11 lines
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
I do not understand why you need to use merge_config.sh for this purpose.
KCONFIG_ALLCONFIG=<path-to-your-config-fragment> make allmodconfig
should work.
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 24 lines · Masahiro Yamada
Quoted 21 lines · John Garry
On 10/12/2019 12:09, John Garry wrote:
Hi Masahiro,
Could you please consider this patch?
Thanks,
JohnQuoted 11 lines
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
Quoted 8 lines
I do not understand why you need to use
merge_config.shfor this purpose.KCONFIG_ALLCONFIG=<path-to-your-config-fragment> make allmodconfig
should work.
Right, I could use that. But generally some people like to use merge_config.sh directly:
./scripts/kconfig/merge_config.sh [-a] fragment
so nice to have -a option for completeness.
Thanks,
john
Quoted 35 lines · John Garry
Quoted 24 lines · Masahiro Yamada
Quoted 21 lines · John Garry
On 10/12/2019 12:09, John Garry wrote:
Hi Masahiro,
Could you please consider this patch?
Thanks,
JohnQuoted 11 lines
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
Quoted 8 lines
I do not understand why you need to use
merge_config.shfor this purpose.KCONFIG_ALLCONFIG=<path-to-your-config-fragment> make allmodconfig
should work.
Quoted 7 lines
Right, I could use that. But generally some people like to use
merge_config.shdirectly:
./scripts/kconfig/merge_config.sh[-a] fragmentso nice to have -a option for completeness.
Honestly, I am getting scared
about people extending this script more and more to do what they want.
Since allmodconfig works enough for this usecase, I do not see a good reason to add the new option.
Signature · 2 lines
Best Regards Masahiro Yamada
Quoted 45 lines · Masahiro Yamada
Quoted 35 lines · John Garry
Quoted 24 lines · Masahiro Yamada
Quoted 21 lines · John Garry
On 10/12/2019 12:09, John Garry wrote:
Hi Masahiro,
Could you please consider this patch?
Thanks,
JohnQuoted 11 lines
Recently there has been some work in reporting and fixing bugs in booting an allmodconfig kernel - here are a few examples:
https://lore.kernel.org/linux-edac/[email protected]/T/#t
https://lore.kernel.org/linux-ide/[email protected]/T/#t
https://lore.kernel.org/netdev/CADYN=9LCPfbpwdTWKw03B22-y3Text=RWXW7XP7wJBHYsMOgrA@mail.gmail.com/
https://sourceforge.net/p/openipmi/mailman/message/36871567/If we want to boot an allmodconfig kernel we may still want to force some loadable modules built-in, like UART drivers. Or just still turn off some configs.
Quoted 8 lines
I do not understand why you need to use
merge_config.shfor this purpose.KCONFIG_ALLCONFIG=<path-to-your-config-fragment> make allmodconfig
should work.
Quoted 7 lines
Right, I could use that. But generally some people like to use
merge_config.shdirectly:
./scripts/kconfig/merge_config.sh[-a] fragmentso nice to have -a option for completeness.
Quoted 7 lines
Honestly, I am getting scared
about people extending this script more and more to do what they want.Since allmodconfig works enough for this usecase, I do not see a good reason to add the new option.
ok, fine.
cheers