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. T...
Showing
- Makefile 2 additions, 2 deletionsMakefile
- arch/arc/Makefile 2 additions, 2 deletionsarch/arc/Makefile
- arch/arc/boot/dts/Makefile 2 additions, 2 deletionsarch/arc/boot/dts/Makefile
- arch/h8300/boot/dts/Makefile 1 addition, 5 deletionsarch/h8300/boot/dts/Makefile
- arch/microblaze/Makefile 1 addition, 1 deletionarch/microblaze/Makefile
- arch/nds32/boot/dts/Makefile 1 addition, 6 deletionsarch/nds32/boot/dts/Makefile
- arch/nios2/boot/dts/Makefile 1 addition, 1 deletionarch/nios2/boot/dts/Makefile
- arch/openrisc/boot/dts/Makefile 1 addition, 6 deletionsarch/openrisc/boot/dts/Makefile
- arch/powerpc/boot/Makefile 1 addition, 1 deletionarch/powerpc/boot/Makefile
- arch/riscv/boot/dts/canaan/Makefile 1 addition, 3 deletionsarch/riscv/boot/dts/canaan/Makefile
- arch/sh/boot/dts/Makefile 1 addition, 3 deletionsarch/sh/boot/dts/Makefile
- arch/xtensa/Makefile 1 addition, 1 deletionarch/xtensa/Makefile
- arch/xtensa/boot/dts/Makefile 1 addition, 4 deletionsarch/xtensa/boot/dts/Makefile
- certs/Makefile 2 additions, 8 deletionscerts/Makefile
- drivers/acpi/Makefile 1 addition, 1 deletiondrivers/acpi/Makefile
- drivers/base/firmware_loader/builtin/Makefile 2 additions, 2 deletionsdrivers/base/firmware_loader/builtin/Makefile
- init/Makefile 1 addition, 1 deletioninit/Makefile
- net/wireless/Makefile 2 additions, 2 deletionsnet/wireless/Makefile
- scripts/Makefile.modinst 0 additions, 1 deletionscripts/Makefile.modinst
- scripts/gen_autoksyms.sh 1 addition, 1 deletionscripts/gen_autoksyms.sh
Please register or sign in to comment