Various fixes for Kconfiglib:

- remove the old setting of LANG in BLFS/Makefile
- explicitly use python3, because now menuconfig.py has #!/usr/bin/python,
  we may have only python3 available
- add quotes in Config.in for BLFS
This commit is contained in:
Pierre Labastie 2019-06-15 20:16:35 +00:00
parent cf2f109b89
commit a4af6811bd
3 changed files with 6 additions and 9 deletions

View file

@ -11,10 +11,6 @@ else
Q = @ Q = @
endif endif
# Known behavior
LANG=C
LC_ALL=C
# Makefile should reside in a directory where there are two subdirectories # Makefile should reside in a directory where there are two subdirectories
# initially: # initially:
TOPDIR = $(shell pwd) TOPDIR = $(shell pwd)
@ -102,7 +98,7 @@ $(BOOK_XML): $(CONFIG_OUT)
$(CONFIG_OUT): $(CONFIG_CONFIG_IN) $(CONFIG_OUT): $(CONFIG_CONFIG_IN)
$(Q)CONFIG_="" KCONFIG_CONFIG=configuration \ $(Q)CONFIG_="" KCONFIG_CONFIG=configuration \
$(MENU)/menuconfig.py $(CONFIG_CONFIG_IN) python3 $(MENU)/menuconfig.py $(CONFIG_CONFIG_IN)
$(CONFIG_CONFIG_IN): $(PACK_LIST) $(XSLDIR)/gen_config.xsl $(CONFIG_CONFIG_IN): $(PACK_LIST) $(XSLDIR)/gen_config.xsl
$(Q)xsltproc --nonet -o $@ $(XSLDIR)/gen_config.xsl $(PACK_LIST) $(Q)xsltproc --nonet -o $@ $(XSLDIR)/gen_config.xsl $(PACK_LIST)

View file

@ -25,9 +25,9 @@ choice
endchoice endchoice
config MAIL_SERVER config MAIL_SERVER
string string
default sendmail if MS_sendmail default "sendmail" if MS_sendmail
default postfix if MS_postfix default "postfix" if MS_postfix
default exim if MS_exim default "exim" if MS_exim
endmenu endmenu

View file

@ -13,7 +13,8 @@ all: menuconfig
menuconfig: menuconfig:
@cp -a configuration configuration.old 2>/dev/null || true @cp -a configuration configuration.old 2>/dev/null || true
@CONFIG_="" KCONFIG_CONFIG=configuration $(CONFIG)/menuconfig.py $(CONFIG_CONFIG_IN) @CONFIG_="" KCONFIG_CONFIG=configuration \
python3 $(CONFIG)/menuconfig.py $(CONFIG_CONFIG_IN)
# Clean up # Clean up