Kconfig fixes
cover Kconfig fixes
Hi,
here are fixes of my last kconfig update.6eacea5ae0 ("support/kconfig: bump to kconfig from Linux 4.17-rc2")
I left patch 17-backport-kecho.patch from v3 which got merged and I accidentally deleted 2 changes which didn't have patches.
Erico, thanks for reporting bug.
Sorry for mistakes.
Kind regards,
Petr
Petr Vorel (3):
kconfig: Add missing patch
kconfig: Restore missing custom changes + add patches
kconfig: Refresh patches
support/kconfig/merge_config.sh | 10 +++- .../01-kconfig-kernel-to-buildroot.patch | 14 +++--- .../06-br-build-system-integration.patch | 14 +++--- .../14-support-out-of-tree-config.patch | 2 +- .../kconfig/patches/17-backport-kecho.patch | 26 ++++++++++ ...fig.sh-create-temporary-files-in-tmp.patch | 27 +++++++++++ ...e_config.sh-add-br2-external-support.patch | 47 +++++++++++++++++++ support/kconfig/patches/series | 2 + 8 files changed, 125 insertions(+), 17 deletions(-) create mode 100644 support/kconfig/patches/17-backport-kecho.patch create mode 100644 support/kconfig/patches/18-merge-config.sh-create-temporary-files-in-tmp.patch create mode 100644 support/kconfig/patches/19-merge_config.sh-add-br2-external-support.patch
Signature · 1 line
2.19.1
PATCH 1/3 kconfig: Add missing patch
which was specified, but not added during last update.
--- .../kconfig/patches/17-backport-kecho.patch | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 support/kconfig/patches/17-backport-kecho.patch
support/kconfig/patches/17-backport-kecho.patch new file +26 -0
@@ -0,0 +1,26 @@ +This commit added kecho to scripts/Kbuild.include (and doc). +Backported just Kbuild.include part to Makefile + +commit 5410ecc0def8955ab99810c5626cc7e156991896 +Author: Mike Frysinger <[email protected]> +Date: Thu Nov 6 03:31:34 2008 -0500 + + kbuild: introduce $(kecho) convenience echo + +Index: kconfig/Makefile +=================================================================== +--- kconfig.orig/Makefile ++++ kconfig/Makefile +@@ -6,6 +6,12 @@ + PHONY += xconfig gconfig menuconfig config syncconfig update-po-config \ + localmodconfig localyesconfig + ++# Easy method for doing a status message ++ kecho := : ++ quiet_kecho := echo ++silent_kecho := : ++kecho := $($(quiet)kecho) ++ + ifdef KBUILD_KCONFIG + Kconfig := $(KBUILD_KCONFIG) + else
Signature · 1 line
2.19.1
PATCH 2/3 kconfig: Restore missing custom changes + add patches
In reply to Petr VorelCommit 6eacea5ae0 accidentally removed these changes in merge_config.sh:0f56304521 ("merge_config.sh: create temporary files in /tmp") 28fac3973b ("merge_config.sh: add br2-external support")
Changes were lost because commits just changed files, but didn't add patches. Therefore not only restore our changes, but also add (updated) patches.
Missing 0f56304521 caused breaking merge_config.sh when used in out of tree build:
$ make -C buildroot O=$PWD/output defconfig ... $ cd output $ echo 'BR2_TARGET_GENERIC_HOSTNAME="test"' > test.frag $ ../buildroot/support/kconfig/merge_config.sh .config test.frag Using .config as base Merging test.frag umask 0022 && make -C /home/test/buildroot O=/home/test/output/. alldefconfig GEN /home/test/output/Makefile *** Can't read seed configuration "./.tmp.config.qIcpASpUyh"! make[1]: *** [Makefile:925: alldefconfig] Error 1 make: *** [Makefile:16: _all] Error 2
--- support/kconfig/merge_config.sh | 10 +++- ...fig.sh-create-temporary-files-in-tmp.patch | 27 +++++++++++ ...e_config.sh-add-br2-external-support.patch | 47 +++++++++++++++++++ support/kconfig/patches/series | 2 + 4 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 support/kconfig/patches/18-merge-config.sh-create-temporary-files-in-tmp.patch create mode 100644 support/kconfig/patches/19-merge_config.sh-add-br2-external-support.patch
support/kconfig/merge_config.sh +8 -2
@@ -33,6 +33,7 @@ usage() { echo " -n use allnoconfig instead of alldefconfig" echo " -r list redundant entries when merging fragments" echo " -O dir to put generated output files. Consider setting \$KCONFIG_CONFIG instead." + echo " -e colon-separated list of br2-external trees to use (optional)" } RUNMAKE=true
@@ -71,6 +72,11 @@ while true; do shift 2 continue ;; + "-e") + EXTERNAL_ARG="BR2_EXTERNAL=$2" + shift 2 + continue + ;; *) break ;;
@@ -100,7 +106,7 @@ fi MERGE_LIST=$* SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p" -TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) +TMP_FILE=$(mktemp -t .tmp.config.XXXXXXXXXX) echo "Using $INITFILE as base" cat $INITFILE > $TMP_FILE
@@ -151,7 +157,7 @@ fi # Use the merged file as the starting point for: # alldefconfig: Fills in any missing symbols with Kconfig default # allnoconfig: Fills in any missing symbols with # CONFIG_* is not set -make KCONFIG_ALLCONFIG=$TMP_FILE $OUTPUT_ARG $ALLTARGET +make KCONFIG_ALLCONFIG=$TMP_FILE $EXTERNAL_ARG $OUTPUT_ARG $ALLTARGET # Check all specified config values took (might have missed-dependency issues)
support/kconfig/patches/18-merge-config.sh-create-temporary-files-in-tmp.patch new file +27 -0
@@ -0,0 +1,27 @@ +commit 0f56304521db42bd2c05867fd78a247104a4ad95 +Author: Henrique Marks <[email protected]> +Date: Mon, 7 Dec 2015 12:08:45 -0200 + + merge_config.sh: create temporary files in /tmp + + Creating temporary files in /tmp (or the path pointed by $TMPDIR) allows the + buildroot top directory to be read-only and shareable between multible builds. + This follows what other scripts do, e.g. check-kernel-headers.sh. + + Signed-off-by: Henrique Marks <[email protected]> + Signed-off-by: Carlos Santos <[email protected]> + Signed-off-by: Peter Korsgaard <[email protected]> + +Index: kconfig/merge_config.sh +=================================================================== +--- kconfig.orig/merge_config.sh ++++ kconfig/merge_config.sh +@@ -100,7 +100,7 @@ fi + + MERGE_LIST=$* + SED_CONFIG_EXP="s/^\(# \)\{0,1\}\(CONFIG_[a-zA-Z0-9_]*\)[= ].*/\2/p" +-TMP_FILE=$(mktemp ./.tmp.config.XXXXXXXXXX) ++TMP_FILE=$(mktemp -t .tmp.config.XXXXXXXXXX) + + echo "Using $INITFILE as base" + cat $INITFILE > $TMP_FILE
support/kconfig/patches/19-merge_config.sh-add-br2-external-support.patch new file +47 -0
47 lines not on this page · raw message
support/kconfig/patches/series +2 -0
@@ -6,3 +6,5 @@ 14-support-out-of-tree-config.patch 16-fix-space-to-de-select-options.patch 17-backport-kecho.patch +18-merge-config.sh-create-temporary-files-in-tmp.patch +19-merge_config.sh-add-br2-external-support.patch
Signature · 1 line
2.19.1
PATCH 3/3 kconfig: Refresh patches
In reply to Petr Vorel--- .../patches/01-kconfig-kernel-to-buildroot.patch | 14 +++++++------- .../patches/06-br-build-system-integration.patch | 14 +++++++------- .../patches/14-support-out-of-tree-config.patch | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-)
support/kconfig/patches/01-kconfig-kernel-to-buildroot.patch +7 -7
@@ -48,10 +48,10 @@ Index: kconfig/zconf.tab.c_shipped =================================================================== --- kconfig.orig/zconf.tab.c_shipped +++ kconfig/zconf.tab.c_shipped -@@ -1515,7 +1515,7 @@ - * later regardless of whether it comes from the 'prompt' in - * mainmenu_stmt or here - */ +@@ -1515,7 +1515,7 @@ yyreduce: + * later regardless of whether it comes from the 'prompt' in + * mainmenu_stmt or here + */ - menu_add_prompt(P_MENU, xstrdup("Linux Kernel Configuration"), NULL); + menu_add_prompt(P_MENU, xstrdup("Buildroot Configuration"), NULL); }
@@ -62,9 +62,9 @@ Index: kconfig/zconf.y --- kconfig.orig/zconf.y +++ kconfig/zconf.y @@ -127,7 +127,7 @@ no_mainmenu_stmt: /* empty */ - * later regardless of whether it comes from the 'prompt' in - * mainmenu_stmt or here - */ + * later regardless of whether it comes from the 'prompt' in + * mainmenu_stmt or here + */ - menu_add_prompt(P_MENU, xstrdup("Linux Kernel Configuration"), NULL); + menu_add_prompt(P_MENU, xstrdup("Buildroot Configuration"), NULL); };
support/kconfig/patches/06-br-build-system-integration.patch +7 -7
@@ -2,7 +2,7 @@ Index: kconfig/Makefile =================================================================== --- kconfig.orig/Makefile +++ kconfig/Makefile -@@ -211,7 +211,35 @@ qconf-cxxobjs := qconf.o +@@ -205,7 +205,35 @@ qconf-cxxobjs := qconf.o qconf-objs := zconf.tab.o gconf-objs := gconf.o zconf.tab.o
@@ -39,8 +39,8 @@ Index: kconfig/Makefile targets += zconf.lex.c clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck -@@ -243,7 +243,7 @@ HOSTLOADLIBES_nconf = $(shell \ - || echo "-lmenu -lpanel -lncurses" ) +@@ -243,7 +271,7 @@ HOSTLOADLIBES_nconf = $(shell \ + || echo "-lmenu -lpanel -lncurses" ) $(obj)/qconf.o: $(obj)/.tmp_qtcheck -ifeq ($(MAKECMDGOALS),xconfig)
@@ -48,8 +48,8 @@ Index: kconfig/Makefile $(obj)/.tmp_qtcheck: $(src)/Makefile -include $(obj)/.tmp_qtcheck -@@ -270,9 +276,8 @@ - echo "KC_QT_MOC=$$moc" >> $@ +@@ -270,9 +298,8 @@ $(obj)/.tmp_qtcheck: + echo "KC_QT_MOC=$$moc" >> $@ endif +ifeq ($(MAKECMDGOALS),gconf)
@@ -59,10 +59,10 @@ Index: kconfig/Makefile -include $(obj)/.tmp_gtkcheck # GTK+ needs some extra effort, too... -@@ -300,11 +305,8 @@ +@@ -300,11 +327,8 @@ $(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/qconf.o: $(obj)/qconf.moc - + -quiet_cmd_moc = MOC $@ - cmd_moc = $(KC_QT_MOC) -i $< -o $@ -
support/kconfig/patches/14-support-out-of-tree-config.patch +1 -1
@@ -59,7 +59,7 @@ Index: kconfig/confdata.c struct stat sb; @@ -851,8 +854,20 @@ static int conf_split_config(void) conf_read_simple(name, S_DEF_AUTO); - sym_calc_value(modules_sym); + sym_calc_value(modules_sym); - if (chdir("include/config")) - return 1;
Signature · 1 line
2.19.1
cover Kconfig fixes
In reply to Petr VorelQuoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Petr" == Petr Vorel <[email protected]> writes:
Hi,
here are fixes of my last kconfig update.6eacea5ae0("support/kconfig: bump to kconfig from Linux 4.17-rc2")I left patch 17-backport-kecho.patch from v3 which got merged and I accidentally deleted 2 changes which didn't have patches.
Erico, thanks for reporting bug.
Sorry for mistakes.
Quoted 7 lines
Kind regards,
PetrPetr Vorel (3):
kconfig: Add missing patch
kconfig: Restore missing custom changes + add patches
kconfig: Refresh patches
Committed all 3, thanks.
Signature · 1 line
Bye, Peter Korsgaard