linux/arch
Masahiro Yamada 129ab0d2d9 kbuild: do not quote string values in include/config/auto.conf
The previous commit fixed up all shell scripts to not include
include/config/auto.conf.

Now that include/config/auto.conf is only included by Makefiles,
we can change it into a more Make-friendly form.

Previously, Kconfig output string values enclosed with double-quotes
(both in the .config and include/config/auto.conf):

    CONFIG_X="foo bar"

Unlike shell, Make handles double-quotes (and single-quotes as well)
verbatim. We must rip them off when used.

There are some patterns:

  [1] $(patsubst "%",%,$(CONFIG_X))
  [2] $(CONFIG_X:"%"=%)
  [3] $(subst ",,$(CONFIG_X))
  [4] $(shell echo $(CONFIG_X))

These are not only ugly, but also fragile.

[1] and [2] do not work if the value contains spaces, like
   CONFIG_X=" foo bar "

[3] does not work correctly if the value contains double-quotes like
   CONFIG_X="foo\"bar"

[4] seems to work better, but has a cost of forking a process.

Anyway, quoted strings were always PITA for our Makefiles.

This commit changes Kconfig to stop quoting in include/config/auto.conf.

These are the string type symbols referenced in Makefiles or scripts:

    ACPI_CUSTOM_DSDT_FILE
    ARC_BUILTIN_DTB_NAME
    ARC_TUNE_MCPU
    BUILTIN_DTB_SOURCE
    CC_IMPLICIT_FALLTHROUGH
    CC_VERSION_TEXT
    CFG80211_EXTRA_REGDB_KEYDIR
    EXTRA_FIRMWARE
    EXTRA_FIRMWARE_DIR
    EXTRA_TARGETS
    H8300_BUILTIN_DTB
    INITRAMFS_SOURCE
    LOCALVERSION
    MODULE_SIG_HASH
    MODULE_SIG_KEY
    NDS32_BUILTIN_DTB
    NIOS2_DTB_SOURCE
    OPENRISC_BUILTIN_DTB
    SOC_CANAAN_K210_DTB_SOURCE
    SYSTEM_BLACKLIST_HASH_LIST
    SYSTEM_REVOCATION_KEYS
    SYSTEM_TRUSTED_KEYS
    TARGET_CPU
    UNUSED_KSYMS_WHITELIST
    XILINX_MICROBLAZE0_FAMILY
    XILINX_MICROBLAZE0_HW_VER
    XTENSA_VARIANT_NAME

I checked them one by one, and fixed up the code where necessary.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
2022-01-08 18:03:57 +09:00
..
alpha futex: Wireup futex_waitv syscall 2021-11-25 14:26:12 +01:00
arc kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
arm Revert "ARM: 9070/1: Make UNWINDER_ARM depend on ld.bfd or ld.lld 11.0.0+" 2021-12-02 17:25:10 +09:00
arm64 arm64 fixes for -rc3 2021-11-26 09:30:24 -08:00
csky asm-generic: asm/syscall.h cleanup 2021-11-10 11:22:03 -08:00
h8300 kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
hexagon hexagon: ignore vmlinux.lds 2021-11-20 10:35:54 -08:00
ia64 futex: Wireup futex_waitv syscall 2021-11-25 14:26:12 +01:00
m68k asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
microblaze kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
mips - build fix for ZSTD enabled configs 2021-11-27 09:50:31 -08:00
nds32 kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
nios2 kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
openrisc kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
parisc Fixes for 5.16 folios: 2021-11-25 10:13:56 -08:00
powerpc kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
riscv kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
s390 s390 updates for 5.16-rc2 2021-11-20 10:55:50 -08:00
sh kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
sparc asm-generic: syscall table updates 2021-11-25 10:41:28 -08:00
um Merge branch 'exit-cleanups-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2021-11-10 16:15:54 -08:00
x86 A single fix for a missing __init annotation of prepare_command_line(). 2021-11-28 09:24:50 -08:00
xtensa kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
.gitignore
Kconfig arch/Kconfig: Remove CLANG_VERSION check in HAS_LTO_CLANG 2021-12-02 17:25:00 +09:00