Skip to contentSkip to conversation

support/kconfig: bump to linux-v6.9-rc5 version

PATCH In review Peter Seiderer via buildroot 4 participants 31 messages May 6, 2024 – May 21, 2025

lore
Share & tools
lore
#0 lore raw

cover support/kconfig: bump to linux-v6.9-rc5 version

First draft of updating support/kconfig to an actual linux upstream version (6.9-rc5).

The patches are orderd by the first 5 handling some minor nits (result of the new kconfig beeing a little more strict about the syntax, can be applied in advance):

- boot/barebox/Config.in: source argument needs quotation marks
- package/cmocka/Config.in: bool argument needs quotation marks
- package/dovecot/Config.in: source argument needs quotation marks
- package/python-pydal/Config.in: bool argument needs quotation marks
- package/x11r7/Config.in: source argument needs quotation marks

The kconfig version dump itself:

- support/kconfig: bump to linux-v6.9-rc5 version

And two 'real' changes due to kconfig language changes:

- support/kconfig: reference environment variables directly (remove 'option env=')
- package/openssl: move libopenssl/libressl source statemetns outside of the choice

Works for me despite 'make defconfig'...

Regards,
Peter

Peter Seiderer (8):
boot/barebox/Config.in: source argument needs quotation marks package/cmocka/Config.in: bool argument needs quotation marks package/dovecot/Config.in: source argument needs quotation marks package/python-pydal/Config.in: bool argument needs quotation marks package/x11r7/Config.in: source argument needs quotation marks support/kconfig: bump to linux-v6.9-rc5 version support/kconfig: reference environment variables directly (remove

    'option env=')

package/openssl: move libopenssl/libressl source statemetns outside of
the choice

 Config.in                                     |   51 +-
 Config.in.legacy                              |    6 +-
 boot/arm-trusted-firmware/Config.in           |    2 +-
 boot/barebox/Config.in                        |    4 +-
 boot/beaglev-ddrinit/Config.in                |    2 +-
 boot/beaglev-secondboot/Config.in             |    2 +-
 boot/s500-bootloader/Config.in                |    2 +-
 linux/Config.ext.in                           |    2 +-
 package/amlogic-boot-fip/Config.in.host       |    2 +-
 package/cmocka/Config.in                      |    2 +-
 package/dovecot/Config.in                     |    2 +-
 package/erlang/Config.in                      |    6 +-
 package/flutter-sdk-bin/Config.in.host        |    2 +-
 package/go-bootstrap-stage1/Config.in.host    |    6 +-
 package/google-breakpad/Config.in.host        |   12 +-
 package/jpeg/Config.in                        |    2 +-
 package/kvm-unit-tests/Config.in              |    2 +-
 package/luajit/Config.in                      |    4 +-
 package/mono/Config.in                        |    4 +-
 package/nodejs/Config.in.host                 |    8 +-
 package/openjdk/Config.in                     |    4 +-
 package/openssl/Config.in                     |    9 +-
 package/protobuf/Config.in                    |   22 +-
 package/python-pydal/Config.in                |    2 +-
 package/qt5/qt5webengine/Config.in            |    2 +-
 package/rustc/Config.in.host                  |   16 +-
 package/sam-ba/Config.in.host                 |    2 +-
 package/supertuxkart/Config.in                |    4 +-
 package/ti-cgt-pru/Config.in.host             |    2 +-
 package/ti-gfx/Config.in                      |    2 +-
 package/wine/Config.in                        |    6 +-
 package/x11r7/Config.in                       |  420 +-
 support/kconfig/Kbuild.include                |  273 ++
 support/kconfig/Makefile                      |  375 +-
 support/kconfig/Makefile.br                   |   10 +-
 support/kconfig/POTFILES.in                   |   12 -
 support/kconfig/README.buildroot              |    9 +-
 support/kconfig/array_size.h                  |   11 +
 support/kconfig/check.sh                      |   14 -
 support/kconfig/conf.c                        |  562 ++-
 support/kconfig/confdata.c                    | 1358 +++---
 support/kconfig/expr.c                        |   29 +-
 support/kconfig/expr.h                        |   49 +-
 support/kconfig/foo.h                         |   12 -
 support/kconfig/gconf-cfg.sh                  |   33 +
 support/kconfig/gconf.c                       |  100 +-
 support/kconfig/hashtable.h                   |   48 +
 support/kconfig/images.c                      |   34 +-
 support/kconfig/images.h                      |   33 +
 support/kconfig/internal.h                    |   21 +
 support/kconfig/kconf_id.c                    |   53 -
 support/kconfig/kxgettext.c                   |  235 -
 support/kconfig/lexer.l                       |  460 ++
 support/kconfig/lexer.lex.c_shipped           | 4103 +++++++++++++++++
 support/kconfig/list.h                        |  254 +-
 support/kconfig/list_types.h                  |   17 +
 support/kconfig/lkc.h                         |  117 +-
 support/kconfig/lkc_proto.h                   |   33 +-
 support/kconfig/lxdialog/.gitignore           |    4 -
 support/kconfig/lxdialog/BIG.FAT.WARNING      |    2 +-
 support/kconfig/lxdialog/check-lxdialog.sh    |   93 -
 support/kconfig/lxdialog/checklist.c          |   26 +-
 support/kconfig/lxdialog/dialog.h             |   76 +-
 support/kconfig/lxdialog/inputbox.c           |   24 +-
 support/kconfig/lxdialog/menubox.c            |   35 +-
 support/kconfig/lxdialog/textbox.c            |  330 +-
 support/kconfig/lxdialog/util.c               |   41 +-
 support/kconfig/lxdialog/yesno.c              |   21 +-
 support/kconfig/mconf-cfg.sh                  |   55 +
 support/kconfig/mconf.c                       |  529 +--
 support/kconfig/menu.c                        |  345 +-
 support/kconfig/merge_config.sh               |   91 +-
 support/kconfig/mnconf-common.c               |   53 +
 support/kconfig/mnconf-common.h               |   18 +
 support/kconfig/nconf-cfg.sh                  |   53 +
 support/kconfig/nconf.c                       |  297 +-
 support/kconfig/nconf.gui.c                   |  329 +-
 support/kconfig/nconf.h                       |   62 +-
 support/kconfig/parser.tab.c_shipped          | 2189 +++++++++
 support/kconfig/parser.tab.h_shipped          |  134 +
 support/kconfig/{zconf.y => parser.y}         |  467 +-
 .../01-kconfig-kernel-to-buildroot.patch      |  115 +-
 .../06-br-build-system-integration.patch      |  103 +-
 .../kconfig/patches/10-br-build-system.patch  |   66 +-
 .../patches/11-use-mktemp-for-lxdialog.patch  |   17 -
 .../patches/12-fix-glade-file-path.patch      |   14 +-
 .../14-support-out-of-tree-config.patch       |  202 +-
 .../16-fix-space-to-de-select-options.patch   |   19 +-
 .../kconfig/patches/17-backport-kecho.patch   |   26 -
 ...fig.sh-create-temporary-files-in-tmp.patch |   19 +-
 ...e_config.sh-add-br2-external-support.patch |   24 +-
 ...fig.sh-Allow-to-define-config-prefix.patch |   31 -
 ...-positive-matches-from-comment-lines.patch |   32 -
 ...config-lxdialog-fix-check-with-GCC14.patch |   43 -
 ...llow-only-config-comment-and-if-insi.patch |  956 ++++
 support/kconfig/patches/series                |    6 +-
 support/kconfig/preprocess.c                  |  580 +++
 support/kconfig/preprocess.h                  |   19 +
 support/kconfig/qconf-cfg.sh                  |   40 +
 support/kconfig/qconf.cc                      | 1199 ++---
 support/kconfig/qconf.h                       |  163 +-
 support/kconfig/streamline_config.pl          |  104 +-
 support/kconfig/symbol.c                      |  374 +-
 support/kconfig/util.c                        |  122 +-
 support/kconfig/zconf.l                       |  372 --
 support/kconfig/zconf.lex.c_shipped           | 2500 ----------
 support/kconfig/zconf.tab.c_shipped           | 2488 ----------
 system/Config.in                              |    4 +-
 toolchain/toolchain-external/Config.in        |    2 +-
 .../Config.in                                 |    2 +-
 .../toolchain-external-arm-aarch64/Config.in  |    2 +-
 .../toolchain-external-arm-arm/Config.in      |    2 +-
 .../toolchain-external-bootlin/Config.in      |    2 +-
 .../Config.in                                 |    2 +-
 .../Config.in                                 |    2 +-
 .../Config.in                                 |    2 +-
 .../toolchain-external-linaro-arm/Config.in   |    2 +-
 .../toolchain-external-linaro-armeb/Config.in |    2 +-
 .../toolchain-external-synopsys-arc/Config.in |    2 +-
 119 files changed, 13182 insertions(+), 10621 deletions(-)
 create mode 100644 support/kconfig/Kbuild.include
 delete mode 100644 support/kconfig/POTFILES.in
 create mode 100644 support/kconfig/array_size.h
 delete mode 100755 support/kconfig/check.sh
 delete mode 100644 support/kconfig/foo.h
 create mode 100755 support/kconfig/gconf-cfg.sh
 create mode 100644 support/kconfig/hashtable.h
 create mode 100644 support/kconfig/images.h
 create mode 100644 support/kconfig/internal.h
 delete mode 100644 support/kconfig/kconf_id.c
 delete mode 100644 support/kconfig/kxgettext.c
 create mode 100644 support/kconfig/lexer.l
 create mode 100644 support/kconfig/lexer.lex.c_shipped
 create mode 100644 support/kconfig/list_types.h
 delete mode 100644 support/kconfig/lxdialog/.gitignore
 delete mode 100755 support/kconfig/lxdialog/check-lxdialog.sh
 create mode 100755 support/kconfig/mconf-cfg.sh
 create mode 100644 support/kconfig/mnconf-common.c
 create mode 100644 support/kconfig/mnconf-common.h
 create mode 100755 support/kconfig/nconf-cfg.sh
 create mode 100644 support/kconfig/parser.tab.c_shipped
 create mode 100644 support/kconfig/parser.tab.h_shipped
 rename support/kconfig/{zconf.y => parser.y} (56%)
 delete mode 100644 support/kconfig/patches/11-use-mktemp-for-lxdialog.patch
 delete mode 100644 support/kconfig/patches/17-backport-kecho.patch
 delete mode 100644 support/kconfig/patches/20-merge_config.sh-Allow-to-define-config-prefix.patch
 delete mode 100644 support/kconfig/patches/21-Avoid-false-positive-matches-from-comment-lines.patch
 delete mode 100644 support/kconfig/patches/22-kconfig-lxdialog-fix-check-with-GCC14.patch
 create mode 100644 support/kconfig/patches/23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch
 create mode 100644 support/kconfig/preprocess.c
 create mode 100644 support/kconfig/preprocess.h
 create mode 100755 support/kconfig/qconf-cfg.sh
 delete mode 100644 support/kconfig/zconf.l
 delete mode 100644 support/kconfig/zconf.lex.c_shipped
 delete mode 100644 support/kconfig/zconf.tab.c_shipped
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 1/8 boot/barebox/Config.in: source argument needs quotation marks

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

boot/barebox/Config.in:79: syntax error boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '.' boot/barebox/Config.in:79: invalid statement boot/barebox/Config.in:93: syntax error boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '.' boot/barebox/Config.in:93: invalid statement

---
 boot/barebox/Config.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
boot/barebox/Config.in +2 -2
index dba4a1a8d6..0bd3386795 100644
@@ -76,7 +76,7 @@ config BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION
 
 endif
 
-source boot/barebox/barebox/Config.in
+source "boot/barebox/barebox/Config.in"
 
 menuconfig BR2_TARGET_BAREBOX_AUX
 	bool "Build barebox with an auxiliary config"
@@ -90,7 +90,7 @@ menuconfig BR2_TARGET_BAREBOX_AUX
 
 if BR2_TARGET_BAREBOX_AUX
 
-source boot/barebox/barebox-aux/Config.in
+source "boot/barebox/barebox-aux/Config.in"
 
 endif
 
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH v1 1/8] boot/barebox/Config.in: source argument needs quotation marks

Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer via buildroot <[email protected]> writes:

Fixes the following error/warnings with kconfig from linux-6.9-rc5:
boot/barebox/Config.in:79: syntax error boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '/' boot/barebox/Config.in:79:warning: ignoring unsupported character '.' boot/barebox/Config.in:79: invalid statement boot/barebox/Config.in:93: syntax error boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '/' boot/barebox/Config.in:93:warning: ignoring unsupported character '.' boot/barebox/Config.in:93: invalid statement

Quoted 1 line

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

PATCH 2/8 package/cmocka/Config.in: bool argument needs quotation marks

In reply to Peter Seiderer via buildroot

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

package/cmocka/Config.in:2: syntax error
package/cmocka/Config.in:2: invalid statement
package/cmocka/Config.in:3: invalid statement
package/cmocka/Config.in:4: invalid statement
[...]

---
 package/cmocka/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/cmocka/Config.in +1 -1
index cf49d0f6be..80e29778d3 100644
@@ -1,5 +1,5 @@
 config BR2_PACKAGE_CMOCKA
-	bool cmocka
+	bool "cmocka"
 	depends on !BR2_STATIC_LIBS
 	help
 	  cmocka is an elegant unit testing framework for C with support
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw

Re: [Buildroot] [PATCH v1 2/8] package/cmocka/Config.in: bool argument needs quotation marks

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer via buildroot <[email protected]> writes:

Fixes the following error/warnings with kconfig from linux-6.9-rc5:
package/cmocka/Config.in:2: syntax error package/cmocka/Config.in:2: invalid statement package/cmocka/Config.in:3: invalid statement package/cmocka/Config.in:4: invalid statement
[...]

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

PATCH 3/8 package/dovecot/Config.in: source argument needs quotation marks

In reply to Peter Seiderer via buildroot

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

package/dovecot/Config.in:36: syntax error package/dovecot/Config.in:36:warning: ignoring unsupported character '/' package/dovecot/Config.in:36:warning: ignoring unsupported character '/' package/dovecot/Config.in:36:warning: ignoring unsupported character '.' package/dovecot/Config.in:36: invalid statement

---
 package/dovecot/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/dovecot/Config.in +1 -1
index c94421526f..034dcc175f 100644
@@ -33,7 +33,7 @@ config BR2_PACKAGE_DOVECOT_SQLITE
 	help
 	  Enable SQLite support.
 
-source package/dovecot-pigeonhole/Config.in
+source "package/dovecot-pigeonhole/Config.in"
 
 endif # BR2_PACKAGE_DOVECOT
 
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH v1 3/8] package/dovecot/Config.in: source argument needs quotation marks

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer via buildroot <[email protected]> writes:

Fixes the following error/warnings with kconfig from linux-6.9-rc5:
package/dovecot/Config.in:36: syntax error package/dovecot/Config.in:36:warning: ignoring unsupported character '/' package/dovecot/Config.in:36:warning: ignoring unsupported character '/' package/dovecot/Config.in:36:warning: ignoring unsupported character '.' package/dovecot/Config.in:36: invalid statement

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#7 lore raw

PATCH 4/8 package/python-pydal/Config.in: bool argument needs quotation marks

In reply to Peter Seiderer via buildroot

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

package/python-pydal/Config.in:2: syntax error package/python-pydal/Config.in:2: invalid statement package/python-pydal/Config.in:3: invalid statement [...]

---
 package/python-pydal/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/python-pydal/Config.in +1 -1
index f1c97f91a0..204b47a09a 100644
@@ -1,5 +1,5 @@
 config BR2_PACKAGE_PYTHON_PYDAL
-	bool python-pydal
+	bool "python-pydal"
 	help
 	  pyDAL is a pure Python Database Abstraction Layer.  It
 	  dynamically generates the SQL in real time using the
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

Re: [Buildroot] [PATCH v1 4/8] package/python-pydal/Config.in: bool argument needs quotation marks

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer via buildroot <[email protected]> writes:

Fixes the following error/warnings with kconfig from linux-6.9-rc5:
package/python-pydal/Config.in:2: syntax error package/python-pydal/Config.in:2: invalid statement package/python-pydal/Config.in:3: invalid statement [...]

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw

PATCH 5/8 package/x11r7/Config.in: source argument needs quotation marks

In reply to Peter Seiderer via buildroot

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

package/x11r7/Config.in:14: syntax error package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '.' package/x11r7/Config.in:14: invalid statement
[...]

---
 package/x11r7/Config.in | 420 ++++++++++++++++++++--------------------
 1 file changed, 210 insertions(+), 210 deletions(-)
package/x11r7/Config.in +210 -210
index b91f97bb34..0002dfe598 100644
@@ -11,232 +11,232 @@ menuconfig BR2_PACKAGE_XORG7
 
 if BR2_PACKAGE_XORG7
 	menu "X11R7 Servers"
-		source package/x11r7/xserver_xorg-server/Config.in
-		source package/x11r7/xwayland/Config.in
+		source "package/x11r7/xserver_xorg-server/Config.in"
+		source "package/x11r7/xwayland/Config.in"
 	endmenu
 	menu "X11R7 Libraries"
-		source package/x11r7/libxcb/Config.in
-		source package/x11r7/xcb-util/Config.in
-		source package/x11r7/xcb-util-cursor/Config.in
-		source package/x11r7/xcb-util-image/Config.in
-		source package/x11r7/xcb-util-keysyms/Config.in
-		source package/x11r7/xcb-util-renderutil/Config.in
-		source package/x11r7/xcb-util-wm/Config.in
-		source package/x11r7/xlib_libFS/Config.in
-		source package/x11r7/xlib_libICE/Config.in
-		source package/x11r7/xlib_libSM/Config.in
-		source package/x11r7/xlib_libX11/Config.in
-		source package/x11r7/xlib_libXScrnSaver/Config.in
-		source package/x11r7/xlib_libXau/Config.in
-		source package/x11r7/xlib_libXaw/Config.in
-		source package/x11r7/xlib_libXcomposite/Config.in
-		source package/x11r7/xlib_libXcursor/Config.in
-		source package/x11r7/xlib_libXdamage/Config.in
-		source package/x11r7/xlib_libXdmcp/Config.in
-		source package/x11r7/xlib_libXext/Config.in
-		source package/x11r7/xlib_libXfixes/Config.in
-		source package/x11r7/xlib_libXfont/Config.in
-		source package/x11r7/xlib_libXfont2/Config.in
-		source package/x11r7/xlib_libXft/Config.in
-		source package/x11r7/xlib_libXi/Config.in
-		source package/x11r7/xlib_libXinerama/Config.in
-		source package/x11r7/xlib_libXmu/Config.in
-		source package/x11r7/xlib_libXpm/Config.in
-		source package/x11r7/xlib_libXpresent/Config.in
-		source package/x11r7/xlib_libXrandr/Config.in
-		source package/x11r7/xlib_libXrender/Config.in
-		source package/x11r7/xlib_libXres/Config.in
-		source package/x11r7/xlib_libXt/Config.in
-		source package/x11r7/xlib_libXtst/Config.in
-		source package/x11r7/xlib_libXv/Config.in
-		source package/x11r7/xlib_libXvMC/Config.in
-		source package/x11r7/xlib_libXxf86dga/Config.in
-		source package/x11r7/xlib_libXxf86vm/Config.in
-		source package/x11r7/xlib_libdmx/Config.in
-		source package/x11r7/xlib_libfontenc/Config.in
-		source package/x11r7/xlib_libxcvt/Config.in
-		source package/x11r7/xlib_libxkbfile/Config.in
-		source package/x11r7/xlib_libxshmfence/Config.in
-		source package/x11r7/xlib_xtrans/Config.in
+		source "package/x11r7/libxcb/Config.in"
+		source "package/x11r7/xcb-util/Config.in"
+		source "package/x11r7/xcb-util-cursor/Config.in"
+		source "package/x11r7/xcb-util-image/Config.in"
+		source "package/x11r7/xcb-util-keysyms/Config.in"
+		source "package/x11r7/xcb-util-renderutil/Config.in"
+		source "package/x11r7/xcb-util-wm/Config.in"
+		source "package/x11r7/xlib_libFS/Config.in"
+		source "package/x11r7/xlib_libICE/Config.in"
+		source "package/x11r7/xlib_libSM/Config.in"
+		source "package/x11r7/xlib_libX11/Config.in"
+		source "package/x11r7/xlib_libXScrnSaver/Config.in"
+		source "package/x11r7/xlib_libXau/Config.in"
+		source "package/x11r7/xlib_libXaw/Config.in"
+		source "package/x11r7/xlib_libXcomposite/Config.in"
+		source "package/x11r7/xlib_libXcursor/Config.in"
+		source "package/x11r7/xlib_libXdamage/Config.in"
+		source "package/x11r7/xlib_libXdmcp/Config.in"
+		source "package/x11r7/xlib_libXext/Config.in"
+		source "package/x11r7/xlib_libXfixes/Config.in"
+		source "package/x11r7/xlib_libXfont/Config.in"
+		source "package/x11r7/xlib_libXfont2/Config.in"
+		source "package/x11r7/xlib_libXft/Config.in"
+		source "package/x11r7/xlib_libXi/Config.in"
+		source "package/x11r7/xlib_libXinerama/Config.in"
+		source "package/x11r7/xlib_libXmu/Config.in"
+		source "package/x11r7/xlib_libXpm/Config.in"
+		source "package/x11r7/xlib_libXpresent/Config.in"
+		source "package/x11r7/xlib_libXrandr/Config.in"
+		source "package/x11r7/xlib_libXrender/Config.in"
+		source "package/x11r7/xlib_libXres/Config.in"
+		source "package/x11r7/xlib_libXt/Config.in"
+		source "package/x11r7/xlib_libXtst/Config.in"
+		source "package/x11r7/xlib_libXv/Config.in"
+		source "package/x11r7/xlib_libXvMC/Config.in"
+		source "package/x11r7/xlib_libXxf86dga/Config.in"
+		source "package/x11r7/xlib_libXxf86vm/Config.in"
+		source "package/x11r7/xlib_libdmx/Config.in"
+		source "package/x11r7/xlib_libfontenc/Config.in"
+		source "package/x11r7/xlib_libxcvt/Config.in"
+		source "package/x11r7/xlib_libxkbfile/Config.in"
+		source "package/x11r7/xlib_libxshmfence/Config.in"
+		source "package/x11r7/xlib_xtrans/Config.in"
 	endmenu
 	menu "X11R7 Applications"
-		source package/x11r7/xapp_appres/Config.in
-		source package/x11r7/xapp_bdftopcf/Config.in
-		source package/x11r7/xapp_beforelight/Config.in
-		source package/x11r7/xapp_bitmap/Config.in
-		source package/x11r7/xapp_editres/Config.in
-		source package/x11r7/xapp_fonttosfnt/Config.in
-		source package/x11r7/xapp_fslsfonts/Config.in
-		source package/x11r7/xapp_fstobdf/Config.in
-		source package/x11r7/xapp_iceauth/Config.in
-		source package/x11r7/xapp_ico/Config.in
-		source package/x11r7/xapp_listres/Config.in
-		source package/x11r7/xapp_luit/Config.in
-		source package/x11r7/xapp_mkfontscale/Config.in
-		source package/x11r7/xapp_oclock/Config.in
-		source package/x11r7/xapp_rgb/Config.in
-		source package/x11r7/xapp_rstart/Config.in
-		source package/x11r7/xapp_scripts/Config.in
-		source package/x11r7/xapp_sessreg/Config.in
-		source package/x11r7/xapp_setxkbmap/Config.in
-		source package/x11r7/xapp_showfont/Config.in
-		source package/x11r7/xapp_smproxy/Config.in
-		source package/x11r7/xapp_twm/Config.in
-		source package/x11r7/xapp_viewres/Config.in
-		source package/x11r7/xapp_x11perf/Config.in
-		source package/x11r7/xapp_xauth/Config.in
-		source package/x11r7/xapp_xbacklight/Config.in
-		source package/x11r7/xapp_xbiff/Config.in
-		source package/x11r7/xapp_xcalc/Config.in
-		source package/x11r7/xapp_xclipboard/Config.in
-		source package/x11r7/xapp_xclock/Config.in
-		source package/x11r7/xapp_xcmsdb/Config.in
-		source package/x11r7/xapp_xcompmgr/Config.in
-		source package/x11r7/xapp_xconsole/Config.in
-		source package/x11r7/xapp_xcursorgen/Config.in
-		source package/x11r7/xapp_xdbedizzy/Config.in
-		source package/x11r7/xapp_xditview/Config.in
-		source package/x11r7/xapp_xdm/Config.in
-		source package/x11r7/xapp_xdpyinfo/Config.in
-		source package/x11r7/xapp_xdriinfo/Config.in
-		source package/x11r7/xapp_xedit/Config.in
-		source package/x11r7/xapp_xev/Config.in
-		source package/x11r7/xapp_xeyes/Config.in
-		source package/x11r7/xapp_xf86dga/Config.in
-		source package/x11r7/xapp_xfd/Config.in
-		source package/x11r7/xapp_xfindproxy/Config.in
-		source package/x11r7/xapp_xfontsel/Config.in
-		source package/x11r7/xapp_xfs/Config.in
-		source package/x11r7/xapp_xfsinfo/Config.in
-		source package/x11r7/xapp_xgamma/Config.in
-		source package/x11r7/xapp_xgc/Config.in
-		source package/x11r7/xapp_xhost/Config.in
-		source package/x11r7/xapp_xinit/Config.in
-		source package/x11r7/xapp_xinput/Config.in
-		source package/x11r7/xapp_xinput-calibrator/Config.in
-		source package/x11r7/xapp_xkbcomp/Config.in
-		source package/x11r7/xapp_xkbevd/Config.in
-		source package/x11r7/xapp_xkbprint/Config.in
-		source package/x11r7/xapp_xkbutils/Config.in
-		source package/x11r7/xapp_xkill/Config.in
-		source package/x11r7/xapp_xload/Config.in
-		source package/x11r7/xapp_xlogo/Config.in
-		source package/x11r7/xapp_xlsatoms/Config.in
-		source package/x11r7/xapp_xlsclients/Config.in
-		source package/x11r7/xapp_xlsfonts/Config.in
-		source package/x11r7/xapp_xmag/Config.in
-		source package/x11r7/xapp_xman/Config.in
-		source package/x11r7/xapp_xmessage/Config.in
-		source package/x11r7/xapp_xmh/Config.in
-		source package/x11r7/xapp_xmodmap/Config.in
-		source package/x11r7/xapp_xmore/Config.in
-		source package/x11r7/xapp_xpr/Config.in
-		source package/x11r7/xapp_xprop/Config.in
-		source package/x11r7/xapp_xrandr/Config.in
-		source package/x11r7/xapp_xrdb/Config.in
-		source package/x11r7/xapp_xrefresh/Config.in
-		source package/x11r7/xapp_xset/Config.in
-		source package/x11r7/xapp_xsetmode/Config.in
-		source package/x11r7/xapp_xsetpointer/Config.in
-		source package/x11r7/xapp_xsetroot/Config.in
-		source package/x11r7/xapp_xsm/Config.in
-		source package/x11r7/xapp_xstdcmap/Config.in
-		source package/x11r7/xapp_xvidtune/Config.in
-		source package/x11r7/xapp_xvinfo/Config.in
-		source package/x11r7/xapp_xwd/Config.in
-		source package/x11r7/xapp_xwininfo/Config.in
-		source package/x11r7/xapp_xwud/Config.in
+		source "package/x11r7/xapp_appres/Config.in"
+		source "package/x11r7/xapp_bdftopcf/Config.in"
+		source "package/x11r7/xapp_beforelight/Config.in"
+		source "package/x11r7/xapp_bitmap/Config.in"
+		source "package/x11r7/xapp_editres/Config.in"
+		source "package/x11r7/xapp_fonttosfnt/Config.in"
+		source "package/x11r7/xapp_fslsfonts/Config.in"
+		source "package/x11r7/xapp_fstobdf/Config.in"
+		source "package/x11r7/xapp_iceauth/Config.in"
+		source "package/x11r7/xapp_ico/Config.in"
+		source "package/x11r7/xapp_listres/Config.in"
+		source "package/x11r7/xapp_luit/Config.in"
+		source "package/x11r7/xapp_mkfontscale/Config.in"
+		source "package/x11r7/xapp_oclock/Config.in"
+		source "package/x11r7/xapp_rgb/Config.in"
+		source "package/x11r7/xapp_rstart/Config.in"
+		source "package/x11r7/xapp_scripts/Config.in"
+		source "package/x11r7/xapp_sessreg/Config.in"
+		source "package/x11r7/xapp_setxkbmap/Config.in"
+		source "package/x11r7/xapp_showfont/Config.in"
+		source "package/x11r7/xapp_smproxy/Config.in"
+		source "package/x11r7/xapp_twm/Config.in"
+		source "package/x11r7/xapp_viewres/Config.in"
+		source "package/x11r7/xapp_x11perf/Config.in"
+		source "package/x11r7/xapp_xauth/Config.in"
+		source "package/x11r7/xapp_xbacklight/Config.in"
+		source "package/x11r7/xapp_xbiff/Config.in"
+		source "package/x11r7/xapp_xcalc/Config.in"
+		source "package/x11r7/xapp_xclipboard/Config.in"
+		source "package/x11r7/xapp_xclock/Config.in"
+		source "package/x11r7/xapp_xcmsdb/Config.in"
+		source "package/x11r7/xapp_xcompmgr/Config.in"
+		source "package/x11r7/xapp_xconsole/Config.in"
+		source "package/x11r7/xapp_xcursorgen/Config.in"
+		source "package/x11r7/xapp_xdbedizzy/Config.in"
+		source "package/x11r7/xapp_xditview/Config.in"
+		source "package/x11r7/xapp_xdm/Config.in"
+		source "package/x11r7/xapp_xdpyinfo/Config.in"
+		source "package/x11r7/xapp_xdriinfo/Config.in"
+		source "package/x11r7/xapp_xedit/Config.in"
+		source "package/x11r7/xapp_xev/Config.in"
+		source "package/x11r7/xapp_xeyes/Config.in"
+		source "package/x11r7/xapp_xf86dga/Config.in"
+		source "package/x11r7/xapp_xfd/Config.in"
+		source "package/x11r7/xapp_xfindproxy/Config.in"
+		source "package/x11r7/xapp_xfontsel/Config.in"
+		source "package/x11r7/xapp_xfs/Config.in"
+		source "package/x11r7/xapp_xfsinfo/Config.in"
+		source "package/x11r7/xapp_xgamma/Config.in"
+		source "package/x11r7/xapp_xgc/Config.in"
+		source "package/x11r7/xapp_xhost/Config.in"
+		source "package/x11r7/xapp_xinit/Config.in"
+		source "package/x11r7/xapp_xinput/Config.in"
+		source "package/x11r7/xapp_xinput-calibrator/Config.in"
+		source "package/x11r7/xapp_xkbcomp/Config.in"
+		source "package/x11r7/xapp_xkbevd/Config.in"
+		source "package/x11r7/xapp_xkbprint/Config.in"
+		source "package/x11r7/xapp_xkbutils/Config.in"
+		source "package/x11r7/xapp_xkill/Config.in"
+		source "package/x11r7/xapp_xload/Config.in"
+		source "package/x11r7/xapp_xlogo/Config.in"
+		source "package/x11r7/xapp_xlsatoms/Config.in"
+		source "package/x11r7/xapp_xlsclients/Config.in"
+		source "package/x11r7/xapp_xlsfonts/Config.in"
+		source "package/x11r7/xapp_xmag/Config.in"
+		source "package/x11r7/xapp_xman/Config.in"
+		source "package/x11r7/xapp_xmessage/Config.in"
+		source "package/x11r7/xapp_xmh/Config.in"
+		source "package/x11r7/xapp_xmodmap/Config.in"
+		source "package/x11r7/xapp_xmore/Config.in"
+		source "package/x11r7/xapp_xpr/Config.in"
+		source "package/x11r7/xapp_xprop/Config.in"
+		source "package/x11r7/xapp_xrandr/Config.in"
+		source "package/x11r7/xapp_xrdb/Config.in"
+		source "package/x11r7/xapp_xrefresh/Config.in"
+		source "package/x11r7/xapp_xset/Config.in"
+		source "package/x11r7/xapp_xsetmode/Config.in"
+		source "package/x11r7/xapp_xsetpointer/Config.in"
+		source "package/x11r7/xapp_xsetroot/Config.in"
+		source "package/x11r7/xapp_xsm/Config.in"
+		source "package/x11r7/xapp_xstdcmap/Config.in"
+		source "package/x11r7/xapp_xvidtune/Config.in"
+		source "package/x11r7/xapp_xvinfo/Config.in"
+		source "package/x11r7/xapp_xwd/Config.in"
+		source "package/x11r7/xapp_xwininfo/Config.in"
+		source "package/x11r7/xapp_xwud/Config.in"
 	endmenu
 	if BR2_PACKAGE_XSERVER_XORG_SERVER_MODULAR
 	menu "X11R7 Drivers"
-		source package/x11r7/xdriver_xf86-input-evdev/Config.in
-		source package/x11r7/xdriver_xf86-input-joystick/Config.in
-		source package/x11r7/xdriver_xf86-input-libinput/Config.in
-		source package/x11r7/xdriver_xf86-input-mouse/Config.in
-		source package/x11r7/xdriver_xf86-input-synaptics/Config.in
-		source package/x11r7/xdriver_xf86-input-tslib/Config.in
-		source package/x11r7/xdriver_xf86-input-vmmouse/Config.in
-		source package/x11r7/xdriver_xf86-video-amdgpu/Config.in
-		source package/x11r7/xdriver_xf86-video-ark/Config.in
-		source package/x11r7/xdriver_xf86-video-ast/Config.in
-		source package/x11r7/xdriver_xf86-video-ati/Config.in
-		source package/x11r7/xdriver_xf86-video-cirrus/Config.in
-		source package/x11r7/xdriver_xf86-video-dummy/Config.in
-		source package/x11r7/xdriver_xf86-video-fbdev/Config.in
-		source package/x11r7/xdriver_xf86-video-fbturbo/Config.in
-		source package/x11r7/xdriver_xf86-video-geode/Config.in
-		source package/x11r7/xdriver_xf86-video-i128/Config.in
-		source package/x11r7/xdriver_xf86-video-imx/Config.in
-		source package/x11r7/xdriver_xf86-video-intel/Config.in
-		source package/x11r7/xdriver_xf86-video-mach64/Config.in
-		source package/x11r7/xdriver_xf86-video-mga/Config.in
-		source package/x11r7/xdriver_xf86-video-neomagic/Config.in
-		source package/x11r7/xdriver_xf86-video-nouveau/Config.in
-		source package/x11r7/xdriver_xf86-video-nv/Config.in
-		source package/x11r7/xdriver_xf86-video-openchrome/Config.in
-		source package/x11r7/xdriver_xf86-video-qxl/Config.in
-		source package/x11r7/xdriver_xf86-video-r128/Config.in
-		source package/x11r7/xdriver_xf86-video-savage/Config.in
-		source package/x11r7/xdriver_xf86-video-siliconmotion/Config.in
-		source package/x11r7/xdriver_xf86-video-sis/Config.in
-		source package/x11r7/xdriver_xf86-video-tdfx/Config.in
-		source package/x11r7/xdriver_xf86-video-trident/Config.in
-		source package/x11r7/xdriver_xf86-video-vesa/Config.in
-		source package/x11r7/xdriver_xf86-video-vmware/Config.in
-		source package/x11r7/xdriver_xf86-video-voodoo/Config.in
+		source "package/x11r7/xdriver_xf86-input-evdev/Config.in"
+		source "package/x11r7/xdriver_xf86-input-joystick/Config.in"
+		source "package/x11r7/xdriver_xf86-input-libinput/Config.in"
+		source "package/x11r7/xdriver_xf86-input-mouse/Config.in"
+		source "package/x11r7/xdriver_xf86-input-synaptics/Config.in"
+		source "package/x11r7/xdriver_xf86-input-tslib/Config.in"
+		source "package/x11r7/xdriver_xf86-input-vmmouse/Config.in"
+		source "package/x11r7/xdriver_xf86-video-amdgpu/Config.in"
+		source "package/x11r7/xdriver_xf86-video-ark/Config.in"
+		source "package/x11r7/xdriver_xf86-video-ast/Config.in"
+		source "package/x11r7/xdriver_xf86-video-ati/Config.in"
+		source "package/x11r7/xdriver_xf86-video-cirrus/Config.in"
+		source "package/x11r7/xdriver_xf86-video-dummy/Config.in"
+		source "package/x11r7/xdriver_xf86-video-fbdev/Config.in"
+		source "package/x11r7/xdriver_xf86-video-fbturbo/Config.in"
+		source "package/x11r7/xdriver_xf86-video-geode/Config.in"
+		source "package/x11r7/xdriver_xf86-video-i128/Config.in"
+		source "package/x11r7/xdriver_xf86-video-imx/Config.in"
+		source "package/x11r7/xdriver_xf86-video-intel/Config.in"
+		source "package/x11r7/xdriver_xf86-video-mach64/Config.in"
+		source "package/x11r7/xdriver_xf86-video-mga/Config.in"
+		source "package/x11r7/xdriver_xf86-video-neomagic/Config.in"
+		source "package/x11r7/xdriver_xf86-video-nouveau/Config.in"
+		source "package/x11r7/xdriver_xf86-video-nv/Config.in"
+		source "package/x11r7/xdriver_xf86-video-openchrome/Config.in"
+		source "package/x11r7/xdriver_xf86-video-qxl/Config.in"
+		source "package/x11r7/xdriver_xf86-video-r128/Config.in"
+		source "package/x11r7/xdriver_xf86-video-savage/Config.in"
+		source "package/x11r7/xdriver_xf86-video-siliconmotion/Config.in"
+		source "package/x11r7/xdriver_xf86-video-sis/Config.in"
+		source "package/x11r7/xdriver_xf86-video-tdfx/Config.in"
+		source "package/x11r7/xdriver_xf86-video-trident/Config.in"
+		source "package/x11r7/xdriver_xf86-video-vesa/Config.in"
+		source "package/x11r7/xdriver_xf86-video-vmware/Config.in"
+		source "package/x11r7/xdriver_xf86-video-voodoo/Config.in"
 	endmenu
 	endif
 	menu "X11R7 Fonts"
-		source package/x11r7/xfont_font-util/Config.in
-		source package/x11r7/xfont_encodings/Config.in
-		source package/x11r7/xfont_font-adobe-100dpi/Config.in
-		source package/x11r7/xfont_font-adobe-75dpi/Config.in
-		source package/x11r7/xfont_font-adobe-utopia-100dpi/Config.in
-		source package/x11r7/xfont_font-adobe-utopia-75dpi/Config.in
-		source package/x11r7/xfont_font-adobe-utopia-type1/Config.in
-		source package/x11r7/xfont_font-alias/Config.in
-		source package/x11r7/xfont_font-arabic-misc/Config.in
-		source package/x11r7/xfont_font-bh-100dpi/Config.in
-		source package/x11r7/xfont_font-bh-75dpi/Config.in
-		source package/x11r7/xfont_font-bh-lucidatypewriter-100dpi/Config.in
-		source package/x11r7/xfont_font-bh-lucidatypewriter-75dpi/Config.in
-		source package/x11r7/xfont_font-bh-ttf/Config.in
-		source package/x11r7/xfont_font-bh-type1/Config.in
-		source package/x11r7/xfont_font-bitstream-100dpi/Config.in
-		source package/x11r7/xfont_font-bitstream-75dpi/Config.in
-		source package/x11r7/xfont_font-bitstream-type1/Config.in
-		source package/x11r7/xfont_font-cronyx-cyrillic/Config.in
-		source package/x11r7/xfont_font-cursor-misc/Config.in
-		source package/x11r7/xfont_font-daewoo-misc/Config.in
-		source package/x11r7/xfont_font-dec-misc/Config.in
-		source package/x11r7/xfont_font-ibm-type1/Config.in
-		source package/x11r7/xfont_font-isas-misc/Config.in
-		source package/x11r7/xfont_font-jis-misc/Config.in
-		source package/x11r7/xfont_font-micro-misc/Config.in
-		source package/x11r7/xfont_font-misc-cyrillic/Config.in
-		source package/x11r7/xfont_font-misc-ethiopic/Config.in
-		source package/x11r7/xfont_font-misc-meltho/Config.in
-		source package/x11r7/xfont_font-misc-misc/Config.in
-		source package/x11r7/xfont_font-mutt-misc/Config.in
-		source package/x11r7/xfont_font-schumacher-misc/Config.in
-		source package/x11r7/xfont_font-screen-cyrillic/Config.in
-		source package/x11r7/xfont_font-sony-misc/Config.in
-		source package/x11r7/xfont_font-sun-misc/Config.in
-		source package/x11r7/xfont_font-winitzki-cyrillic/Config.in
-		source package/x11r7/xfont_font-xfree86-type1/Config.in
+		source "package/x11r7/xfont_font-util/Config.in"
+		source "package/x11r7/xfont_encodings/Config.in"
+		source "package/x11r7/xfont_font-adobe-100dpi/Config.in"
+		source "package/x11r7/xfont_font-adobe-75dpi/Config.in"
+		source "package/x11r7/xfont_font-adobe-utopia-100dpi/Config.in"
+		source "package/x11r7/xfont_font-adobe-utopia-75dpi/Config.in"
+		source "package/x11r7/xfont_font-adobe-utopia-type1/Config.in"
+		source "package/x11r7/xfont_font-alias/Config.in"
+		source "package/x11r7/xfont_font-arabic-misc/Config.in"
+		source "package/x11r7/xfont_font-bh-100dpi/Config.in"
+		source "package/x11r7/xfont_font-bh-75dpi/Config.in"
+		source "package/x11r7/xfont_font-bh-lucidatypewriter-100dpi/Config.in"
+		source "package/x11r7/xfont_font-bh-lucidatypewriter-75dpi/Config.in"
+		source "package/x11r7/xfont_font-bh-ttf/Config.in"
+		source "package/x11r7/xfont_font-bh-type1/Config.in"
+		source "package/x11r7/xfont_font-bitstream-100dpi/Config.in"
+		source "package/x11r7/xfont_font-bitstream-75dpi/Config.in"
+		source "package/x11r7/xfont_font-bitstream-type1/Config.in"
+		source "package/x11r7/xfont_font-cronyx-cyrillic/Config.in"
+		source "package/x11r7/xfont_font-cursor-misc/Config.in"
+		source "package/x11r7/xfont_font-daewoo-misc/Config.in"
+		source "package/x11r7/xfont_font-dec-misc/Config.in"
+		source "package/x11r7/xfont_font-ibm-type1/Config.in"
+		source "package/x11r7/xfont_font-isas-misc/Config.in"
+		source "package/x11r7/xfont_font-jis-misc/Config.in"
+		source "package/x11r7/xfont_font-micro-misc/Config.in"
+		source "package/x11r7/xfont_font-misc-cyrillic/Config.in"
+		source "package/x11r7/xfont_font-misc-ethiopic/Config.in"
+		source "package/x11r7/xfont_font-misc-meltho/Config.in"
+		source "package/x11r7/xfont_font-misc-misc/Config.in"
+		source "package/x11r7/xfont_font-mutt-misc/Config.in"
+		source "package/x11r7/xfont_font-schumacher-misc/Config.in"
+		source "package/x11r7/xfont_font-screen-cyrillic/Config.in"
+		source "package/x11r7/xfont_font-sony-misc/Config.in"
+		source "package/x11r7/xfont_font-sun-misc/Config.in"
+		source "package/x11r7/xfont_font-winitzki-cyrillic/Config.in"
+		source "package/x11r7/xfont_font-xfree86-type1/Config.in"
 	endmenu
 	menu "X11R7 X protocols"
-		source package/x11r7/xcb-proto/Config.in
-		source package/x11r7/xorgproto/Config.in
+		source "package/x11r7/xcb-proto/Config.in"
+		source "package/x11r7/xorgproto/Config.in"
 	endmenu
 	menu "X11R7 Utilities"
-		source package/x11r7/xutil_makedepend/Config.in
-		source package/x11r7/mcookie/Config.in
+		source "package/x11r7/xutil_makedepend/Config.in"
+		source "package/x11r7/mcookie/Config.in"
 	endmenu
 	menu "X11R7 Other data"
-		source package/x11r7/xdata_xbitmaps/Config.in
-		source package/x11r7/xdata_xcursor-themes/Config.in
-		source package/x11r7/xcursor-transparent-theme/Config.in
+		source "package/x11r7/xdata_xbitmaps/Config.in"
+		source "package/x11r7/xdata_xcursor-themes/Config.in"
+		source "package/x11r7/xcursor-transparent-theme/Config.in"
 	endmenu
 endif
 
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#10 lore raw

Re: [Buildroot] [PATCH v1 5/8] package/x11r7/Config.in: source argument needs quotation marks

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Seiderer via buildroot <[email protected]> writes:

Fixes the following error/warnings with kconfig from linux-6.9-rc5:
package/x11r7/Config.in:14: syntax error package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '/' package/x11r7/Config.in:14:warning: ignoring unsupported character '.' package/x11r7/Config.in:14: invalid statement
[...]

Quoted 1 line

Committed to 2024.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#11 lore raw

PATCH 6/8 support/kconfig: bump to linux-v6.9-rc5 version

In reply to Peter Seiderer via buildroot

- update RAEDME.buildroot (add copy step for kconfig.new, update copy steps for *_shipped files
- rebased 01-kconfig-kernel-to-buildroot.patch
- rebased 06-br-build-system-integration.patch
- updated 10-br-build-system.patch
- removed 11-use-mktemp-for-lxdialog.patch
(no longer applicable)
- rebased 12-fix-glade-file-path.patch
- rebased 14-support-out-of-tree-config.patch
- rebased 16-fix-space-to-de-select-options.patch
- removed 17-backport-kecho.patch (use complete Kbuild.include instead of backporting single parts)
- rebased 18-merge-config.sh-create-temporary-files-in-tmp.patch
- rebased 19-merge_config.sh-add-br2-external-support.patch
- removed 20-merge_config.sh-Allow-to-define-config-prefix.patch (already upstream included)
- removed 21-Avoid-false-positive-matches-from-comment-lines.patch (already upstream included)
- removed 22-kconfig-lxdialog-fix-check-with-GCC14.patch (no longer applicable)
- new 23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch (revert to re-enable source statement inside of choice, as suggested by Yann E. MORIN, see [1])

[1] https://lore.kernel.org/buildroot/Zhdu7zT3FZl7sk1q@landeda/

---
 support/kconfig/Kbuild.include                |  273 ++
 support/kconfig/Makefile                      |  375 +-
 support/kconfig/Makefile.br                   |   10 +-
 support/kconfig/POTFILES.in                   |   12 -
 support/kconfig/README.buildroot              |    9 +-
 support/kconfig/array_size.h                  |   11 +
 support/kconfig/check.sh                      |   14 -
 support/kconfig/conf.c                        |  562 ++-
 support/kconfig/confdata.c                    | 1358 +++---
 support/kconfig/expr.c                        |   29 +-
 support/kconfig/expr.h                        |   49 +-
 support/kconfig/foo.h                         |   12 -
 support/kconfig/gconf-cfg.sh                  |   33 +
 support/kconfig/gconf.c                       |  100 +-
 support/kconfig/hashtable.h                   |   48 +
 support/kconfig/images.c                      |   34 +-
 support/kconfig/images.h                      |   33 +
 support/kconfig/internal.h                    |   21 +
 support/kconfig/kconf_id.c                    |   53 -
 support/kconfig/kxgettext.c                   |  235 -
 support/kconfig/lexer.l                       |  460 ++
 support/kconfig/lexer.lex.c_shipped           | 4103 +++++++++++++++++
 support/kconfig/list.h                        |  254 +-
 support/kconfig/list_types.h                  |   17 +
 support/kconfig/lkc.h                         |  117 +-
 support/kconfig/lkc_proto.h                   |   33 +-
 support/kconfig/lxdialog/.gitignore           |    4 -
 support/kconfig/lxdialog/BIG.FAT.WARNING      |    2 +-
 support/kconfig/lxdialog/check-lxdialog.sh    |   93 -
 support/kconfig/lxdialog/checklist.c          |   26 +-
 support/kconfig/lxdialog/dialog.h             |   76 +-
 support/kconfig/lxdialog/inputbox.c           |   24 +-
 support/kconfig/lxdialog/menubox.c            |   35 +-
 support/kconfig/lxdialog/textbox.c            |  330 +-
 support/kconfig/lxdialog/util.c               |   41 +-
 support/kconfig/lxdialog/yesno.c              |   21 +-
 support/kconfig/mconf-cfg.sh                  |   55 +
 support/kconfig/mconf.c                       |  529 +--
 support/kconfig/menu.c                        |  345 +-
 support/kconfig/merge_config.sh               |   91 +-
 support/kconfig/mnconf-common.c               |   53 +
 support/kconfig/mnconf-common.h               |   18 +
 support/kconfig/nconf-cfg.sh                  |   53 +
 support/kconfig/nconf.c                       |  297 +-
 support/kconfig/nconf.gui.c                   |  329 +-
 support/kconfig/nconf.h                       |   62 +-
 support/kconfig/parser.tab.c_shipped          | 2189 +++++++++
 support/kconfig/parser.tab.h_shipped          |  134 +
 support/kconfig/{zconf.y => parser.y}         |  467 +-
 .../01-kconfig-kernel-to-buildroot.patch      |  115 +-
 .../06-br-build-system-integration.patch      |  103 +-
 .../kconfig/patches/10-br-build-system.patch  |   66 +-
 .../patches/11-use-mktemp-for-lxdialog.patch  |   17 -
 .../patches/12-fix-glade-file-path.patch      |   14 +-
 .../14-support-out-of-tree-config.patch       |  202 +-
 .../16-fix-space-to-de-select-options.patch   |   19 +-
 .../kconfig/patches/17-backport-kecho.patch   |   26 -
 ...fig.sh-create-temporary-files-in-tmp.patch |   19 +-
 ...e_config.sh-add-br2-external-support.patch |   24 +-
 ...fig.sh-Allow-to-define-config-prefix.patch |   31 -
 ...-positive-matches-from-comment-lines.patch |   32 -
 ...config-lxdialog-fix-check-with-GCC14.patch |   43 -
 ...llow-only-config-comment-and-if-insi.patch |  956 ++++
 support/kconfig/patches/series                |    6 +-
 support/kconfig/preprocess.c                  |  580 +++
 support/kconfig/preprocess.h                  |   19 +
 support/kconfig/qconf-cfg.sh                  |   40 +
 support/kconfig/qconf.cc                      | 1199 ++---
 support/kconfig/qconf.h                       |  163 +-
 support/kconfig/streamline_config.pl          |  104 +-
 support/kconfig/symbol.c                      |  374 +-
 support/kconfig/util.c                        |  122 +-
 support/kconfig/zconf.l                       |  372 --
 support/kconfig/zconf.lex.c_shipped           | 2500 ----------
 support/kconfig/zconf.tab.c_shipped           | 2488 ----------
 75 files changed, 12875 insertions(+), 10288 deletions(-)
 create mode 100644 support/kconfig/Kbuild.include
 delete mode 100644 support/kconfig/POTFILES.in
 create mode 100644 support/kconfig/array_size.h
 delete mode 100755 support/kconfig/check.sh
 delete mode 100644 support/kconfig/foo.h
 create mode 100755 support/kconfig/gconf-cfg.sh
 create mode 100644 support/kconfig/hashtable.h
 create mode 100644 support/kconfig/images.h
 create mode 100644 support/kconfig/internal.h
 delete mode 100644 support/kconfig/kconf_id.c
 delete mode 100644 support/kconfig/kxgettext.c
 create mode 100644 support/kconfig/lexer.l
 create mode 100644 support/kconfig/lexer.lex.c_shipped
 create mode 100644 support/kconfig/list_types.h
 delete mode 100644 support/kconfig/lxdialog/.gitignore
 delete mode 100755 support/kconfig/lxdialog/check-lxdialog.sh
 create mode 100755 support/kconfig/mconf-cfg.sh
 create mode 100644 support/kconfig/mnconf-common.c
 create mode 100644 support/kconfig/mnconf-common.h
 create mode 100755 support/kconfig/nconf-cfg.sh
 create mode 100644 support/kconfig/parser.tab.c_shipped
 create mode 100644 support/kconfig/parser.tab.h_shipped
 rename support/kconfig/{zconf.y => parser.y} (56%)
 delete mode 100644 support/kconfig/patches/11-use-mktemp-for-lxdialog.patch
 delete mode 100644 support/kconfig/patches/17-backport-kecho.patch
 delete mode 100644 support/kconfig/patches/20-merge_config.sh-Allow-to-define-config-prefix.patch
 delete mode 100644 support/kconfig/patches/21-Avoid-false-positive-matches-from-comment-lines.patch
 delete mode 100644 support/kconfig/patches/22-kconfig-lxdialog-fix-check-with-GCC14.patch
 create mode 100644 support/kconfig/patches/23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch
 create mode 100644 support/kconfig/preprocess.c
 create mode 100644 support/kconfig/preprocess.h
 create mode 100755 support/kconfig/qconf-cfg.sh
 delete mode 100644 support/kconfig/zconf.l
 delete mode 100644 support/kconfig/zconf.lex.c_shipped
 delete mode 100644 support/kconfig/zconf.tab.c_shipped
support/kconfig/Kbuild.include new file +273 -0
new file mode 100644
index 0000000000..2f33187981
@@ -0,0 +1,273 @@
+# SPDX-License-Identifier: GPL-2.0
+####
+# kbuild: Generic definitions
+
+# Convenient variables
+comma   := ,
+quote   := "
+squote  := '
+empty   :=
+space   := $(empty) $(empty)
+space_escape := _-_SPACE_-_
+pound := \#
+define newline
+
+
+endef
+
+###
+# Comparison macros.
+# Usage: $(call test-lt, $(CONFIG_LLD_VERSION), 150000)
+#
+# Use $(intcmp ...) if supported. (Make >= 4.4)
+# Otherwise, fall back to the 'test' shell command.
+ifeq ($(intcmp 1,0,,,y),y)
+test-ge = $(intcmp $(strip $1)0, $(strip $2)0,,y,y)
+test-gt = $(intcmp $(strip $1)0, $(strip $2)0,,,y)
+else
+test-ge = $(shell test $(strip $1)0 -ge $(strip $2)0 && echo y)
+test-gt = $(shell test $(strip $1)0 -gt $(strip $2)0 && echo y)
+endif
+test-le = $(call test-ge, $2, $1)
+test-lt = $(call test-gt, $2, $1)
+
+###
+# Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o
+dot-target = $(dir $@).$(notdir $@)
+
+###
+# Name of target with a '.tmp_' as filename prefix. foo/bar.o => foo/.tmp_bar.o
+tmp-target = $(dir $@).tmp_$(notdir $@)
+
+###
+# The temporary file to save gcc -MMD generated dependencies must not
+# contain a comma
+depfile = $(subst $(comma),_,$(dot-target).d)
+
+###
+# filename of target with directory and extension stripped
+basetarget = $(basename $(notdir $@))
+
+###
+# real prerequisites without phony targets
+real-prereqs = $(filter-out $(PHONY), $^)
+
+###
+# Escape single quote for use in echo statements
+escsq = $(subst $(squote),'\$(squote)',$1)
+
+###
+# Quote a string to pass it to C files. foo => '"foo"'
+stringify = $(squote)$(quote)$1$(quote)$(squote)
+
+###
+# The path to Kbuild or Makefile. Kbuild has precedence over Makefile.
+kbuild-dir = $(if $(filter /%,$(src)),$(src),$(srctree)/$(src))
+kbuild-file = $(or $(wildcard $(kbuild-dir)/Kbuild),$(kbuild-dir)/Makefile)
+
+###
+# Read a file, replacing newlines with spaces
+#
+# Make 4.2 or later can read a file by using its builtin function.
+ifneq ($(filter-out 3.% 4.0 4.1, $(MAKE_VERSION)),)
+read-file = $(subst $(newline),$(space),$(file < $1))
+else
+read-file = $(shell cat $1 2>/dev/null)
+endif
+
+###
+# Easy method for doing a status message
+       kecho := :
+ quiet_kecho := echo
+silent_kecho := :
+kecho := $($(quiet)kecho)
+
+###
+# filechk is used to check if the content of a generated file is updated.
+# Sample usage:
+#
+# filechk_sample = echo $(KERNELRELEASE)
+# version.h: FORCE
+#	$(call filechk,sample)
+#
+# The rule defined shall write to stdout the content of the new file.
+# The existing file will be compared with the new one.
+# - If no file exist it is created
+# - If the content differ the new file is used
+# - If they are equal no change, and no timestamp update
+define filechk
+	$(check-FORCE)
+	$(Q)set -e;						\
+	mkdir -p $(dir $@);					\
+	trap "rm -f $(tmp-target)" EXIT;			\
+	{ $(filechk_$(1)); } > $(tmp-target);			\
+	if [ ! -r $@ ] || ! cmp -s $@ $(tmp-target); then	\
+		$(kecho) '  UPD     $@';			\
+		mv -f $(tmp-target) $@;				\
+	fi
+endef
+
+###
+# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.build obj=
+# Usage:
+# $(Q)$(MAKE) $(build)=dir
+build := -f $(srctree)/scripts/Makefile.build obj
+
+###
+# Shorthand for $(Q)$(MAKE) -f scripts/Makefile.clean obj=
+# Usage:
+# $(Q)$(MAKE) $(clean)=dir
+clean := -f $(srctree)/scripts/Makefile.clean obj
+
+# pring log
+#
+# If quiet is "silent_", print nothing and sink stdout
+# If quiet is "quiet_", print short log
+# If quiet is empty, print short log and whole command
+silent_log_print = exec >/dev/null;
+ quiet_log_print = $(if $(quiet_cmd_$1), echo '  $(call escsq,$(quiet_cmd_$1)$(why))';)
+       log_print = echo '$(pound) $(call escsq,$(or $(quiet_cmd_$1),cmd_$1 $@)$(why))'; \
+                   echo '  $(call escsq,$(cmd_$1))';
+
+# Delete the target on interruption
+#
+# GNU Make automatically deletes the target if it has already been changed by
+# the interrupted recipe. So, you can safely stop the build by Ctrl-C (Make
+# will delete incomplete targets), and resume it later.
+#
+# However, this does not work when the stderr is piped to another program, like
+#  $ make >&2 | tee log
+# Make dies with SIGPIPE before cleaning the targets.
+#
+# To address it, we clean the target in signal traps.
+#
+# Make deletes the target when it catches SIGHUP, SIGINT, SIGQUIT, SIGTERM.
+# So, we cover them, and also SIGPIPE just in case.
+#
+# Of course, this is unneeded for phony targets.
+delete-on-interrupt = \
+	$(if $(filter-out $(PHONY), $@), \
+		$(foreach sig, HUP INT QUIT TERM PIPE, \
+			trap 'rm -f $@; trap - $(sig); kill -s $(sig) $$$$' $(sig);))
+
+# print and execute commands
+cmd = @$(if $(cmd_$(1)),set -e; $($(quiet)log_print) $(delete-on-interrupt) $(cmd_$(1)),:)
+
+###
+# if_changed      - execute command if any prerequisite is newer than
+#                   target, or command line has changed
+# if_changed_dep  - as if_changed, but uses fixdep to reveal dependencies
+#                   including used config symbols
+# if_changed_rule - as if_changed but execute rule instead
+# See Documentation/kbuild/makefiles.rst for more info
+
+ifneq ($(KBUILD_NOCMDDEP),1)
+# Check if both commands are the same including their order. Result is empty
+# string if equal. User may override this check using make KBUILD_NOCMDDEP=1
+# If the target does not exist, the *.cmd file should not be included so
+# $(savedcmd_$@) gets empty. Then, target will be built even if $(newer-prereqs)
+# happens to become empty.
+cmd-check = $(filter-out $(subst $(space),$(space_escape),$(strip $(savedcmd_$@))), \
+                         $(subst $(space),$(space_escape),$(strip $(cmd_$1))))
+else
+# We still need to detect missing targets.
+cmd-check = $(if $(strip $(savedcmd_$@)),,1)
+endif
+
+# Replace >$< with >$$< to preserve $ when reloading the .cmd file
+# (needed for make)
+# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file
+# (needed for make)
+# Replace >'< with >'\''< to be able to enclose the whole string in '...'
+# (needed for the shell)
+make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1)))))
+
+# Find any prerequisites that are newer than target or that do not exist.
+# PHONY targets skipped in both cases.
+# If there is no prerequisite other than phony targets, $(newer-prereqs) becomes
+# empty even if the target does not exist. cmd-check saves this corner case.
+newer-prereqs = $(filter-out $(PHONY),$?)
+
+# It is a typical mistake to forget the FORCE prerequisite. Check it here so
+# no more breakage will slip in.
+check-FORCE = $(if $(filter FORCE, $^),,$(warning FORCE prerequisite is missing))
+
+if-changed-cond = $(newer-prereqs)$(cmd-check)$(check-FORCE)
+
+# Execute command if command has changed or prerequisite(s) are updated.
+if_changed = $(if $(if-changed-cond),$(cmd_and_savecmd),@:)
+
+cmd_and_savecmd =                                                            \
+	$(cmd);                                                              \
+	printf '%s\n' 'savedcmd_$@ := $(make-cmd)' > $(dot-target).cmd
+
+# Execute the command and also postprocess generated .d dependencies file.
+if_changed_dep = $(if $(if-changed-cond),$(cmd_and_fixdep),@:)
+
+cmd_and_fixdep =                                                             \
+	$(cmd);                                                              \
+	scripts/basic/fixdep $(depfile) $@ '$(make-cmd)' > $(dot-target).cmd;\
+	rm -f $(depfile)
+
+# Usage: $(call if_changed_rule,foo)
+# Will check if $(cmd_foo) or any of the prerequisites changed,
+# and if so will execute $(rule_foo).
+if_changed_rule = $(if $(if-changed-cond),$(rule_$(1)),@:)
+
+###
+# why - tell why a target got built
+#       enabled by make V=2
+#       Output (listed in the order they are checked):
+#          (1) - due to target is PHONY
+#          (2) - due to target missing
+#          (3) - due to: file1.h file2.h
+#          (4) - due to command line change
+#          (5) - due to missing .cmd file
+#          (6) - due to target not in $(targets)
+# (1) PHONY targets are always build
+# (2) No target, so we better build it
+# (3) Prerequisite is newer than target
+# (4) The command line stored in the file named dir/.target.cmd
+#     differed from actual command line. This happens when compiler
+#     options changes
+# (5) No dir/.target.cmd file (used to store command line)
+# (6) No dir/.target.cmd file and target not listed in $(targets)
+#     This is a good hint that there is a bug in the kbuild file
+ifneq ($(findstring 2, $(KBUILD_VERBOSE)),)
+_why =                                                                        \
+    $(if $(filter $@, $(PHONY)),- due to target is PHONY,                    \
+        $(if $(wildcard $@),                                                 \
+            $(if $(newer-prereqs),- due to: $(newer-prereqs),                \
+                $(if $(cmd-check),                                           \
+                    $(if $(savedcmd_$@),- due to command line change,        \
+                        $(if $(filter $@, $(targets)),                       \
+                            - due to missing .cmd file,                      \
+                            - due to $(notdir $@) not in $$(targets)         \
+                         )                                                   \
+                     )                                                       \
+                 )                                                           \
+             ),                                                              \
+             - due to target missing                                         \
+         )                                                                   \
+     )
+
+why = $(space)$(strip $(_why))
+endif
+
+###############################################################################
+
+# delete partially updated (i.e. corrupted) files on error
+.DELETE_ON_ERROR:
+
+# do not delete intermediate files automatically
+#
+# .NOTINTERMEDIATE is more correct, but only available on newer Make versions.
+# Make 4.4 introduced .NOTINTERMEDIATE, and it appears in .FEATURES, but the
+# global .NOTINTERMEDIATE does not work. We can use it on Make > 4.4.
+# Use .SECONDARY for older Make versions, but "newer-prereq" cannot detect
+# deleted files.
+ifneq ($(and $(filter notintermediate, $(.FEATURES)),$(filter-out 4.4,$(MAKE_VERSION))),)
+.NOTINTERMEDIATE:
+else
+.SECONDARY:
+endif
support/kconfig/Makefile +140 -235

477 lines not on this page · raw message

support/kconfig/Makefile.br +6 -4
index 41c5ce165d..d163256846 100644
@@ -5,12 +5,11 @@ srctree := .
 obj ?= .
 
 include Makefile
-#HOSTCFLAGS+=-Dinline="" -include foo.h
 -include $(obj)/.depend
 $(obj)/.depend: $(wildcard *.h *.c)
 	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) -MM *.c > $@ 2>/dev/null || :
 
-__hostprogs := $(sort $(hostprogs-y) $(hostprogs-m))
+__hostprogs := $(sort $(hostprogs))
 host-csingle := $(foreach m,$(__hostprogs),$(if $($(m)-objs),,$(m)))
 host-cmulti := $(foreach m,$(__hostprogs),\
            $(if $($(m)-cxxobjs),,$(if $($(m)-objs),$(m))))
@@ -25,10 +24,10 @@ $(host-csingle): %: %.c
 	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< -o $(obj)/$@
 
 $(host-cmulti): %: $(host-cobjs) $(host-cshlib)
-	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
+	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs)) $(HOSTLDLIBS_$(@F)) -o $(obj)/$@
 
 $(host-cxxmulti): %: $(host-cxxobjs) $(host-cobjs) $(host-cshlib)
-	$(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLOADLIBES_$(@F)) -o $(obj)/$@
+	$(HOSTCXX) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$@) $(addprefix $(obj)/,$($(@F)-objs) $($(@F)-cxxobjs)) $(HOSTLDLIBS_$(@F)) -o $(obj)/$@
 
 $(obj)/%.o: %.c
 	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$(@F)) -c $< -o $@
@@ -39,6 +38,9 @@ $(obj)/%.o: $(obj)/%.c
 $(obj)/%.o: %.cc
 	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
 
+$(obj)/%.o: $(obj)/%.cc
+	$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCXXFLAGS_$(@F)) -c $< -o $@
+
 $(obj)/%:: $(src)/%_shipped
 	$(Q)cat $< > $@
 
support/kconfig/POTFILES.in deleted +0 -12
deleted file mode 100644
index 9674573969..0000000000
@@ -1,12 +0,0 @@
-scripts/kconfig/lxdialog/checklist.c
-scripts/kconfig/lxdialog/inputbox.c
-scripts/kconfig/lxdialog/menubox.c
-scripts/kconfig/lxdialog/textbox.c
-scripts/kconfig/lxdialog/util.c
-scripts/kconfig/lxdialog/yesno.c
-scripts/kconfig/mconf.c
-scripts/kconfig/conf.c
-scripts/kconfig/confdata.c
-scripts/kconfig/gconf.c
-scripts/kconfig/gconf.glade.h
-scripts/kconfig/qconf.cc
support/kconfig/README.buildroot +6 -3
index 76808f85b4..82bb855d01 100644
@@ -3,10 +3,13 @@ to suit Buildroot.
 
 To update:
 	cp -r /usr/src/linux/scripts/kconfig support/kconfig.new
+	cp /usr/src/linux/scripts/Kbuild.include support/kconfig.new
 	cd support/kconfig.new
-	# zconf.lex.c and zconf.tab.c needs to be generated by 'make menuconfig'
-	mv zconf.lex.c zconf.lex.c_shipped
-	mv zconf.tab.c zconf.tab.c_shipped
+	# lexer.lex.c, parser.tab.c and parser.tab.h needs to be generated
+	# by 'make menuconfig'
+	mv lexer.lex.c lexer.lex.c_shipped
+	mv parser.tab.c parser.tab.c_shipped
+	mv parser.tab.h parser.tab.h_shipped
 	rm -rf tests/
 	cp -a ../kconfig/patches ../kconfig/README.buildroot ../kconfig/.gitignore .
 	quilt push -a
support/kconfig/array_size.h new file +11 -0
new file mode 100644
index 0000000000..26ba78d867
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef ARRAY_SIZE_H
+#define ARRAY_SIZE_H
+
+/**
+ * ARRAY_SIZE - get the number of elements in array @arr
+ * @arr: array to be sized
+ */
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+#endif /* ARRAY_SIZE_H */
support/kconfig/check.sh deleted +0 -14
deleted file mode 100755
index 97f0fee7d1..0000000000
@@ -1,14 +0,0 @@
-#!/bin/sh
-# SPDX-License-Identifier: GPL-2.0
-# Needed for systems without gettext
-$* -x c -o /dev/null - > /dev/null 2>&1 << EOF
-#include <libintl.h>
-int main()
-{
-	gettext("");
-	return 0;
-}
-EOF
-if [ ! "$?" -eq "0"  ]; then
-	echo -DKBUILD_NO_NLS;
-fi
support/kconfig/conf.c +384 -178

780 lines not on this page · raw message

support/kconfig/confdata.c +646 -712

1,383 lines not on this page · raw message

support/kconfig/expr.c +13 -16
index e1a39e9084..a290de3630 100644

Lines of this file are not shown. View the raw message.

support/kconfig/expr.h +19 -30

49 lines not on this page · raw message

support/kconfig/foo.h deleted +0 -12
deleted file mode 100644
index b9cfdf8312..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/gconf-cfg.sh new file +33 -0
new file mode 100755
index 0000000000..040d8f3388

Lines of this file are not shown. View the raw message.

support/kconfig/gconf.c +45 -55

100 lines not on this page · raw message

support/kconfig/hashtable.h new file +48 -0

48 lines not on this page · raw message

support/kconfig/images.c +18 -16
index d4f84bd4a9..2f9afffa5d 100644

Lines of this file are not shown. View the raw message.

support/kconfig/images.h new file +33 -0
new file mode 100644
index 0000000000..7212dec200

Lines of this file are not shown. View the raw message.

support/kconfig/internal.h new file +21 -0
new file mode 100644
index 0000000000..6c721c4cfd

Lines of this file are not shown. View the raw message.

support/kconfig/kconf_id.c deleted +0 -53

53 lines not on this page · raw message

support/kconfig/kxgettext.c deleted +0 -235

235 lines not on this page · raw message

support/kconfig/lexer.l new file +460 -0

460 lines not on this page · raw message

support/kconfig/lexer.lex.c_shipped new file +4103 -0

4,103 lines not on this page · raw message

support/kconfig/list.h +189 -65

254 lines not on this page · raw message

support/kconfig/list_types.h new file +17 -0
new file mode 100644
index 0000000000..d935b7c5aa

Lines of this file are not shown. View the raw message.

support/kconfig/lkc.h +39 -78

117 lines not on this page · raw message

support/kconfig/lkc_proto.h +12 -21
index 9dc8abfb1d..2807fa584c 100644

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/.gitignore deleted +0 -4
deleted file mode 100644
index 90b08ff025..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/BIG.FAT.WARNING +1 -1
index a8999d82bd..7cb5a7ec93 100644

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/check-lxdialog.sh deleted +0 -93

93 lines not on this page · raw message

support/kconfig/lxdialog/checklist.c +6 -20
index 8d016faa28..75493302fb 100644

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/dialog.h +11 -65

76 lines not on this page · raw message

support/kconfig/lxdialog/inputbox.c +6 -18
index d58de1dc53..3c6e24b20f 100644

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/menubox.c +7 -28
index 185524901d..d4c19b7bee 100644

Lines of this file are not shown. View the raw message.

support/kconfig/lxdialog/textbox.c +140 -190

330 lines not on this page · raw message

support/kconfig/lxdialog/util.c +5 -36

41 lines not on this page · raw message

support/kconfig/lxdialog/yesno.c +4 -17
index 676fb2f824..b57d25e154 100644

Lines of this file are not shown. View the raw message.

support/kconfig/mconf-cfg.sh new file +55 -0

55 lines not on this page · raw message

support/kconfig/mconf.c +239 -290

529 lines not on this page · raw message

support/kconfig/menu.c +164 -181

345 lines not on this page · raw message

support/kconfig/merge_config.sh +63 -28

91 lines not on this page · raw message

support/kconfig/mnconf-common.c new file +53 -0

53 lines not on this page · raw message

support/kconfig/mnconf-common.h new file +18 -0
new file mode 100644
index 0000000000..ab6292cc4b

Lines of this file are not shown. View the raw message.

support/kconfig/nconf-cfg.sh new file +53 -0

53 lines not on this page · raw message

support/kconfig/nconf.c +165 -132

297 lines not on this page · raw message

support/kconfig/nconf.gui.c +153 -176

329 lines not on this page · raw message

support/kconfig/nconf.h +28 -34

62 lines not on this page · raw message

support/kconfig/parser.tab.c_shipped new file +2189 -0

2,189 lines not on this page · raw message

support/kconfig/parser.tab.h_shipped new file +134 -0

134 lines not on this page · raw message

support/kconfig/parser.y renamed from support/kconfig/zconf.y +213 -254

467 lines not on this page · raw message

support/kconfig/patches/01-kconfig-kernel-to-buildroot.patch +36 -79

115 lines not on this page · raw message

support/kconfig/patches/06-br-build-system-integration.patch +41 -62

103 lines not on this page · raw message

support/kconfig/patches/10-br-build-system.patch +36 -30

66 lines not on this page · raw message

support/kconfig/patches/11-use-mktemp-for-lxdialog.patch deleted +0 -17
deleted file mode 100644
index 387c633ae2..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/patches/12-fix-glade-file-path.patch +5 -9
index 7d5941fc9e..0bcb04e62d 100644

Lines of this file are not shown. View the raw message.

support/kconfig/patches/14-support-out-of-tree-config.patch +9 -193

202 lines not on this page · raw message

support/kconfig/patches/16-fix-space-to-de-select-options.patch +9 -10
index 08f7ec5d95..2b7a4f5655 100644

Lines of this file are not shown. View the raw message.

support/kconfig/patches/17-backport-kecho.patch deleted +0 -26
deleted file mode 100644
index 9d13876616..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/patches/18-merge-config.sh-create-temporary-files-in-tmp.patch +10 -9
index f2a261f308..342d6359f6 100644

Lines of this file are not shown. View the raw message.

support/kconfig/patches/19-merge_config.sh-add-br2-external-support.patch +12 -12
index 1d0ef323bd..0b4814da1e 100644

Lines of this file are not shown. View the raw message.

support/kconfig/patches/20-merge_config.sh-Allow-to-define-config-prefix.patch deleted +0 -31
deleted file mode 100644
index 645043b163..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/patches/21-Avoid-false-positive-matches-from-comment-lines.patch deleted +0 -32
deleted file mode 100644
index c11144e47e..0000000000

Lines of this file are not shown. View the raw message.

support/kconfig/patches/22-kconfig-lxdialog-fix-check-with-GCC14.patch deleted +0 -43

43 lines not on this page · raw message

support/kconfig/patches/23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch new file +956 -0

956 lines not on this page · raw message

support/kconfig/patches/series +1 -5
index f120e323b7..e68a83a550 100644

Lines of this file are not shown. View the raw message.

support/kconfig/preprocess.c new file +580 -0

580 lines not on this page · raw message

support/kconfig/preprocess.h new file +19 -0
new file mode 100644
index 0000000000..a7e4a55063

Lines of this file are not shown. View the raw message.

support/kconfig/qconf-cfg.sh new file +40 -0
new file mode 100755
index 0000000000..0e113b0f24

Lines of this file are not shown. View the raw message.

support/kconfig/qconf.cc +624 -575

1,199 lines not on this page · raw message

support/kconfig/qconf.h +54 -109

163 lines not on this page · raw message

support/kconfig/streamline_config.pl +64 -40

104 lines not on this page · raw message

support/kconfig/symbol.c +108 -266

374 lines not on this page · raw message

support/kconfig/util.c +48 -74

122 lines not on this page · raw message

support/kconfig/zconf.l deleted +0 -372

372 lines not on this page · raw message

support/kconfig/zconf.lex.c_shipped deleted +0 -2500

2,500 lines not on this page · raw message

support/kconfig/zconf.tab.c_shipped deleted +0 -2488

2,488 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Part of the diff is not shown here. View the raw message.

#12 lore raw

Hi Peter, all,

Quoted 15 lines

- update RAEDME.buildroot (add copy step for kconfig.new, update copy steps for *_shipped files
- rebased 01-kconfig-kernel-to-buildroot.patch
- rebased 06-br-build-system-integration.patch
- updated 10-br-build-system.patch
- removed 11-use-mktemp-for-lxdialog.patch
(no longer applicable)
- rebased 12-fix-glade-file-path.patch
- rebased 14-support-out-of-tree-config.patch
- rebased 16-fix-space-to-de-select-options.patch
- removed 17-backport-kecho.patch (use complete Kbuild.include instead of backporting single parts)
- rebased 18-merge-config.sh-create-temporary-files-in-tmp.patch
- rebased 19-merge_config.sh-add-br2-external-support.patch
- removed 20-merge_config.sh-Allow-to-define-config-prefix.patch

Quoted 8 lines

(already upstream included)
- removed 21-Avoid-false-positive-matches-from-comment-lines.patch (already upstream included)
- removed 22-kconfig-lxdialog-fix-check-with-GCC14.patch (no longer applicable)
- new 23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch (revert to re-enable source statement inside of choice, as suggested by Yann E. MORIN, see [1])

Even with applied patch 7th and 8th (and the others applied previously simple 'make defconfig' fails:

buildroot/output/build/buildroot-config/conf: Kconfig file missing
Usage: buildroot/output/build/buildroot-config/conf [options] <kconfig-file>

Generic options:
-h, --help Print this message and exit.
-s, --silent Do not print log.

Mode options:

  --listnewconfig         List new options
  --helpnewconfig         List new options and help text
  --oldaskconfig          Start a new configuration using a line-oriented program
  --oldconfig             Update a configuration using a provided .config as base
  --syncconfig            Similar to oldconfig but generates configuration in
                          include/{generated/,config/}
  --olddefconfig          Same as oldconfig but sets new symbols to their default value
  --defconfig <file>      New config with default defined in <file>
  --savedefconfig <file>  Save the minimal current configuration to <file>
  --allnoconfig           New config where all options are answered with no
  --allyesconfig          New config where all options are answered with yes
  --allmodconfig          New config where all options are answered with mod
  --alldefconfig          New config with all symbols set to default
  --randconfig            New config with random answer to all options
  --yes2modconfig         Change answers from yes to mod if possible
  --mod2yesconfig         Change answers from mod to yes if possible
  --mod2noconfig          Change answers from mod to no if possible

(If none of the above is given, --oldaskconfig is the default)
make[1]: *** [Makefile:1018: defconfig] Error 1
make: *** [Makefile:82: _all] Error 2

Kind regards,
Petr
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#13 lore raw

Hello Petr,

Quoted 54 lines · Petr Vorel

Hi Peter, all,

Quoted 15 lines

- update RAEDME.buildroot (add copy step for kconfig.new, update copy steps for *_shipped files
- rebased 01-kconfig-kernel-to-buildroot.patch
- rebased 06-br-build-system-integration.patch
- updated 10-br-build-system.patch
- removed 11-use-mktemp-for-lxdialog.patch
(no longer applicable)
- rebased 12-fix-glade-file-path.patch
- rebased 14-support-out-of-tree-config.patch
- rebased 16-fix-space-to-de-select-options.patch
- removed 17-backport-kecho.patch (use complete Kbuild.include instead of backporting single parts)
- rebased 18-merge-config.sh-create-temporary-files-in-tmp.patch
- rebased 19-merge_config.sh-add-br2-external-support.patch
- removed 20-merge_config.sh-Allow-to-define-config-prefix.patch

Quoted 8 lines

(already upstream included)
- removed 21-Avoid-false-positive-matches-from-comment-lines.patch (already upstream included)
- removed 22-kconfig-lxdialog-fix-check-with-GCC14.patch (no longer applicable)
- new 23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch (revert to re-enable source statement inside of choice, as suggested by Yann E. MORIN, see [1])

Even with applied patch 7th and 8th (and the others applied previously simple 'make defconfig' fails:

buildroot/output/build/buildroot-config/conf: Kconfig file missing
Usage: buildroot/output/build/buildroot-config/conf [options] <kconfig-file>

Generic options:
-h, --help Print this message and exit.
-s, --silent Do not print log.

Mode options:

  --listnewconfig         List new options
  --helpnewconfig         List new options and help text
  --oldaskconfig          Start a new configuration using a line-oriented program
  --oldconfig             Update a configuration using a provided .config as base
  --syncconfig            Similar to oldconfig but generates configuration in
                          include/{generated/,config/}
  --olddefconfig          Same as oldconfig but sets new symbols to their default value
  --defconfig <file>      New config with default defined in <file>
  --savedefconfig <file>  Save the minimal current configuration to <file>
  --allnoconfig           New config where all options are answered with no
  --allyesconfig          New config where all options are answered with yes
  --allmodconfig          New config where all options are answered with mod
  --alldefconfig          New config with all symbols set to default
  --randconfig            New config with random answer to all options
  --yes2modconfig         Change answers from yes to mod if possible
  --mod2yesconfig         Change answers from mod to yes if possible
  --mod2noconfig          Change answers from mod to no if possible
Quoted 3 lines

(If none of the above is given, --oldaskconfig is the default)
make[1]: *** [Makefile:1018: defconfig] Error 1
make: *** [Makefile:82: _all] Error 2

Known problem ;-), see cover letter

Quoted 1 line

Works for me despite 'make defconfig'...

The change is in kconfig/conf.c itself, from the old version:

{"defconfig", optional_argument, NULL, defconfig},

From the new version:

{"defconfig", required_argument, &input_mode_opt, defconfig},

Regards,
Peter

Quoted 3 lines

Kind regards,
Petr

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#14 lore raw

Peter, Petr, All,

On 2024-05-08 23:54 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 1 line · Petr Vorel

[--SNIP--]

Quoted 5 lines
Quoted 5 lines

Even with applied patch 7th and 8th (and the others applied previously simple 'make defconfig' fails:

buildroot/output/build/buildroot-config/conf: Kconfig file missing
Usage: buildroot/output/build/buildroot-config/conf [options] <kconfig-file>

[--SNIP--]

Quoted 2 lines

Known problem ;-), see cover letter

Quoted 1 line

Works for me despite 'make defconfig'...

I think you meant: s/despite/except/

And I think the solution is easy:

    Makefile: always use a base config file for defconfig

    Currently, our bundled kconfig copy does not require that a base
    configuration file, with some non-default set in there, be specified
    for defconfig, and we only pass one if specified by the user.

    Future kconfig versions will require a base config file be always
    specified, so prepare for that: if the user did not specify a base
    config file, use /dev/null, an empty file, to specify there is no
    preset value.

    Reported-by: Petr Vorel <[email protected]>
    Signed-off-by: Yann E. MORIN <[email protected]>

    diff --git a/Makefile b/Makefile
    index d1caec63b5..a46dd79239 100644
    --- a/Makefile
    +++ b/Makefile
    @@ -1015,7 +1015,7 @@ oldconfig syncconfig olddefconfig: $(BUILD_DIR)/buildroot-config/conf outputmake
     	@$(COMMON_CONFIG_ENV) $< --$@ $(CONFIG_CONFIG_IN)

     defconfig: $(BUILD_DIR)/buildroot-config/conf outputmakefile
    -	@$(COMMON_CONFIG_ENV) $< --defconfig$(if $(DEFCONFIG),=$(DEFCONFIG)) $(CONFIG_CONFIG_IN)
    +	@$(COMMON_CONFIG_ENV) $< --defconfig=$(or $(DEFCONFIG),/dev/null) $(CONFIG_CONFIG_IN)

     %_defconfig: $(BUILD_DIR)/buildroot-config/conf  outputmakefile
     	@defconfig=$(or \

This also works with thecurrnt kconfig version we bundle, so this can be a preliminray patch.

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#15 lore raw

PATCH 7/8 support/kconfig: reference environment variables directly (remove 'option env=')

In reply to Peter Seiderer via buildroot

- reference environment variables directly (remove 'option env='), see upstream commit [1]:

BR2_VERSION --> BR2_VERSION_FULL
BR2_HOSTARCH --> HOSTARCH
BR2_SKIP_LEGACY --> SKIP_LEGACY
BR2_BASE_DIR --> BASE_DIR
BR2_HOST_GCC_VERSION --> HOST_GCC_VERSION
BR2_DEFCONFIG_FROM_ENV --> BR2_DEFCONFIG

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=104daea149c45cc84842ce77a9bd6436d19f3dd8

---
Notes/ToDo:
- take a look at BR2_HOSTARCH usage in utils/checksymbolslib/br.py
- take a look at BR2_BASE_DIR usage in utils/checksymbolslib/br.py and utils/checksymbolslib/test_kconfig.py

---
 Config.in                                     | 51 ++++++-------------
 Config.in.legacy                              |  6 +--
 boot/arm-trusted-firmware/Config.in           |  2 +-
 boot/beaglev-ddrinit/Config.in                |  2 +-
 boot/beaglev-secondboot/Config.in             |  2 +-
 boot/s500-bootloader/Config.in                |  2 +-
 linux/Config.ext.in                           |  2 +-
 package/amlogic-boot-fip/Config.in.host       |  2 +-
 package/erlang/Config.in                      |  6 +--
 package/flutter-sdk-bin/Config.in.host        |  2 +-
 package/go-bootstrap-stage1/Config.in.host    |  6 +--
 package/google-breakpad/Config.in.host        | 12 ++---
 package/jpeg/Config.in                        |  2 +-
 package/kvm-unit-tests/Config.in              |  2 +-
 package/luajit/Config.in                      |  4 +-
 package/mono/Config.in                        |  4 +-
 package/nodejs/Config.in.host                 |  8 +--
 package/openjdk/Config.in                     |  4 +-
 package/openssl/Config.in                     |  2 +-
 package/protobuf/Config.in                    | 22 ++++----
 package/qt5/qt5webengine/Config.in            |  2 +-
 package/rustc/Config.in.host                  | 16 +++---
 package/sam-ba/Config.in.host                 |  2 +-
 package/supertuxkart/Config.in                |  4 +-
 package/ti-cgt-pru/Config.in.host             |  2 +-
 package/ti-gfx/Config.in                      |  2 +-
 package/wine/Config.in                        |  6 +--
 system/Config.in                              |  4 +-
 toolchain/toolchain-external/Config.in        |  2 +-
 .../Config.in                                 |  2 +-
 .../toolchain-external-arm-aarch64/Config.in  |  2 +-
 .../toolchain-external-arm-arm/Config.in      |  2 +-
 .../toolchain-external-bootlin/Config.in      |  2 +-
 .../Config.in                                 |  2 +-
 .../Config.in                                 |  2 +-
 .../Config.in                                 |  2 +-
 .../toolchain-external-linaro-arm/Config.in   |  2 +-
 .../toolchain-external-linaro-armeb/Config.in |  2 +-
 .../toolchain-external-synopsys-arc/Config.in |  2 +-
 39 files changed, 89 insertions(+), 114 deletions(-)
Config.in +15 -36
index e4f58f3f66..0d78c04f38 100644
@@ -1,68 +1,51 @@
 #
 
-mainmenu "Buildroot $BR2_VERSION Configuration"
+mainmenu "Buildroot $(BR2_VERSION_FULL) Configuration"
 
 config BR2_HAVE_DOT_CONFIG
 	bool
 	default y
 
-config BR2_VERSION
-	string
-	option env="BR2_VERSION_FULL"
-
-config BR2_HOSTARCH
-	string
-	option env="HOSTARCH"
-
-config BR2_BASE_DIR
-	string
-	option env="BASE_DIR"
-
 # br2-external paths definitions
-source "$BR2_BASE_DIR/.br2-external.in.paths"
-
-# Hidden config symbols for packages to check system gcc version
-config BR2_HOST_GCC_VERSION
-	string
-	option env="HOST_GCC_VERSION"
+source "$(BASE_DIR)/.br2-external.in.paths"
 
 config BR2_HOST_GCC_AT_LEAST_4_9
 	bool
-	default y if BR2_HOST_GCC_VERSION = "4 9"
+	default y if "$(HOST_GCC_VERSION)" = "4 9"
 
 config BR2_HOST_GCC_AT_LEAST_5
 	bool
-	default y if BR2_HOST_GCC_VERSION = "5"
+	default y if "$(HOST_GCC_VERSION)" = "5"
 	select BR2_HOST_GCC_AT_LEAST_4_9
 
 config BR2_HOST_GCC_AT_LEAST_6
 	bool
-	default y if BR2_HOST_GCC_VERSION = "6"
+	default y if "$(HOST_GCC_VERSION)" = "6"
 	select BR2_HOST_GCC_AT_LEAST_5
 
 config BR2_HOST_GCC_AT_LEAST_7
 	bool
-	default y if BR2_HOST_GCC_VERSION = "7"
+	default y if "$(HOST_GCC_VERSION)" = "7"
 	select BR2_HOST_GCC_AT_LEAST_6
 
 config BR2_HOST_GCC_AT_LEAST_8
 	bool
-	default y if BR2_HOST_GCC_VERSION = "8"
+	default y if "$(HOST_GCC_VERSION)" = "8"
 	select BR2_HOST_GCC_AT_LEAST_7
 
 config BR2_HOST_GCC_AT_LEAST_9
 	bool
-	default y if BR2_HOST_GCC_VERSION = "9"
+	default y if "$(HOST_GCC_VERSION)" = "9"
 	select BR2_HOST_GCC_AT_LEAST_8
 
 config BR2_HOST_GCC_AT_LEAST_10
 	bool
-	default y if BR2_HOST_GCC_VERSION = "10"
+	default y if "$(HOST_GCC_VERSION)" = "10"
 	select BR2_HOST_GCC_AT_LEAST_9
 
 config BR2_HOST_GCC_AT_LEAST_11
 	bool
-	default y if BR2_HOST_GCC_VERSION = "11"
+	default y if "$(HOST_GCC_VERSION)" = "11"
 	select BR2_HOST_GCC_AT_LEAST_10
 
 # When adding new entries above, be sure to update
@@ -183,13 +166,9 @@ config BR2_TAR_OPTIONS
 
 endmenu
 
-config BR2_DEFCONFIG_FROM_ENV
-	string
-	option env="BR2_DEFCONFIG"
-
 config BR2_DEFCONFIG
 	string "Location to save buildroot config"
-	default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
+	default "$(BR2_DEFCONFIG)" if "$(BR2_DEFCONFIG)" != ""
 	default "$(CONFIG_DIR)/defconfig"
 	help
 	  When running 'make savedefconfig', the defconfig file will be
@@ -197,7 +176,7 @@ config BR2_DEFCONFIG
 
 config BR2_DL_DIR
 	string "Download dir"
-	default "$(TOPDIR)/dl"
+	default "\$(TOPDIR)/dl"
 	help
 	  Directory to store all the source files that we need to fetch.
 	  If the Linux shell environment has defined the BR2_DL_DIR
@@ -211,7 +190,7 @@ config BR2_DL_DIR
 
 config BR2_HOST_DIR
 	string "Host dir"
-	default "$(BASE_DIR)/host"
+	default "\$(BASE_DIR)/host"
 	help
 	  Directory to store all the binary files that are built for the
 	  host. This includes the cross compilation toolchain when
@@ -665,7 +644,7 @@ endchoice
 
 config BR2_PACKAGE_OVERRIDE_FILE
 	string "location of a package override file"
-	default "$(CONFIG_DIR)/local.mk"
+	default "\$(CONFIG_DIR)/local.mk"
 	help
 	  A package override file is a short makefile that contains
 	  variable definitions of the form <pkg>_OVERRIDE_SRCDIR, which
@@ -984,4 +963,4 @@ source "package/Config.in.host"
 source "Config.in.legacy"
 
 # br2-external menus definitions
-source "$BR2_BASE_DIR/.br2-external.in.menus"
+source "$(BASE_DIR)/.br2-external.in.menus"
Config.in.legacy +1 -5
index 98a4125f4b..919c787ff9 100644
@@ -90,11 +90,7 @@
 #
 # [End of example]
 
-config BR2_SKIP_LEGACY
-	bool
-	option env="SKIP_LEGACY"
-
-if !BR2_SKIP_LEGACY
+if "$(SKIP_LEGACY)" = ""
 
 config BR2_LEGACY
 	bool
boot/arm-trusted-firmware/Config.in +1 -1
index 2fe3dd1146..6cf8e88929 100644
@@ -243,7 +243,7 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC
 config BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_ARM32_TOOLCHAIN
 	bool "Needs arm-none-eabi toolchain"
 	depends on BR2_aarch64
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	help
 	  Select this option if your ATF board configuration requires
 	  an ARM32 bare metal toolchain to be available.
boot/beaglev-ddrinit/Config.in +1 -1
index 7ca92a7b9b..585b2ba7be 100644
@@ -1,7 +1,7 @@
 config BR2_TARGET_BEAGLEV_DDRINIT
 	bool "beaglev-ddrinit"
 	depends on BR2_riscv
-	depends on BR2_HOSTARCH = "x86_64" # host-riscv64-elf-toolchain
+	depends on "$(HOSTARCH)" = "x86_64" # host-riscv64-elf-toolchain
 	help
 	  This package builds the DDRinit firmware used on the BeagleV
 	  platform.
boot/beaglev-secondboot/Config.in +1 -1
index a9695fc138..0616efb0c5 100644
@@ -1,7 +1,7 @@
 config BR2_TARGET_BEAGLEV_SECONDBOOT
 	bool "beaglev-secondboot"
 	depends on BR2_riscv
-	depends on BR2_HOSTARCH = "x86_64" # host-riscv64-elf-toolchain
+	depends on "$(HOSTARCH)" = "x86_64" # host-riscv64-elf-toolchain
 	help
 	  This package builds the SecondBoot firmware used on the
 	  BeagleV platform.
boot/s500-bootloader/Config.in +1 -1
index 7bb689f305..a7d85214d4 100644
@@ -1,7 +1,7 @@
 config BR2_TARGET_S500_BOOTLOADER
 	bool "s500-bootloader"
 	depends on BR2_arm
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	select BR2_HOSTARCH_NEEDS_IA32_LIBS
 	help
 	  1st level bootloader for Actions Semiconductor S500 SoC.
linux/Config.ext.in +1 -1
index 3cbf42d344..301f1e642c 100644
@@ -149,6 +149,6 @@ config BR2_LINUX_KERNEL_EXT_AUFS_VERSION
 endif # aufs
 
 # kernel extensions from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.linux"
+source "$(BASE_DIR)/.br2-external.in.linux"
 
 endmenu
package/amlogic-boot-fip/Config.in.host +1 -1
index bccc6296d1..54f4075f27 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_AMLOGIC_BOOT_FIP
 	bool "host amlogic-boot-fip"
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	help
 	  Firmware Image Package (FIP) sources used to sign Amlogic
 	  u-boot binaries in LibreELEC images
package/erlang/Config.in +3 -3
index 724f91123b..f3830cefad 100644
@@ -1,8 +1,8 @@
 config BR2_PACKAGE_HOST_ERLANG_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "aarch64"
-	default y if BR2_HOSTARCH = "x86_64"
-	default y if BR2_HOSTARCH = "x86"
+	default y if "$(HOSTARCH)" = "aarch64"
+	default y if "$(HOSTARCH)" = "x86_64"
+	default y if "$(HOSTARCH)" = "x86"
 
 config BR2_PACKAGE_ERLANG_ARCH_SUPPORTS
 	bool
package/flutter-sdk-bin/Config.in.host +1 -1
index 181a2ee6e5..c1c97e2ca8 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_FLUTTER_SDK_BIN_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "x86_64"
+	default y if "$(HOSTARCH)" = "x86_64"
 
 config BR2_PACKAGE_HOST_FLUTTER_SDK_BIN
 	bool "host flutter-sdk-bin"
package/go-bootstrap-stage1/Config.in.host +3 -3
index 56a743caf9..50caad0a8b 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE1_ARCH_SUPPORTS
 	bool
 	# See src/cmd/dist/unix.c for the list of supported architectures
-	default y if BR2_HOSTARCH = "x86"
-	default y if BR2_HOSTARCH = "x86_64"
-	default y if BR2_HOSTARCH = "arm"
+	default y if "$(HOSTARCH)" = "x86"
+	default y if "$(HOSTARCH)" = "x86_64"
+	default y if "$(HOSTARCH)" = "arm"
package/google-breakpad/Config.in.host +6 -6
index 28d304766a..84e95957b2 100644
@@ -1,8 +1,8 @@
 config BR2_PACKAGE_HOST_GOOGLE_BREAKPAD_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "x86_64"
-	default y if BR2_HOSTARCH = "x86"
-	default y if BR2_HOSTARCH = "arm"
-	default y if BR2_HOSTARCH = "aarch64"
-	default y if BR2_HOSTARCH = "mips"
-	default y if BR2_HOSTARCH = "mipsel"
+	default y if "$(HOSTARCH)" = "x86_64"
+	default y if "$(HOSTARCH)" = "x86"
+	default y if "$(HOSTARCH)" = "arm"
+	default y if "$(HOSTARCH)" = "aarch64"
+	default y if "$(HOSTARCH)" = "mips"
+	default y if "$(HOSTARCH)" = "mipsel"
package/jpeg/Config.in +1 -1
index 371f89aa49..0a7e01d28b 100644
@@ -40,7 +40,7 @@ config BR2_PACKAGE_JPEG_TURBO
 	  http://www.libjpeg-turbo.org
 
 # libjpeg from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.jpeg"
+source "$(BASE_DIR)/.br2-external.in.jpeg"
 
 endchoice
 
package/kvm-unit-tests/Config.in +1 -1
index 02ea8dd58c..c99bad8fd5 100644
@@ -19,7 +19,7 @@ config BR2_PACKAGE_KVM_UNIT_TESTS
 	# gcc 4.5 at least. on i386, we use the target gcc, while on
 	# x86-64 we use the host gcc (see .mk file for details)
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_5 || !BR2_i386
-	depends on BR2_HOSTARCH = "x86_64" || !BR2_x86_64
+	depends on "$(HOSTARCH)" = "x86_64" || !BR2_x86_64
 	select BR2_HOSTARCH_NEEDS_IA32_COMPILER if BR2_x86_64
 	help
 	  kvm-unit-tests is a project as old as KVM. As its name
package/luajit/Config.in +2 -2
index 31e9e0243e..408032c7e8 100644
@@ -7,9 +7,9 @@ config BR2_PACKAGE_LUAJIT_ARCH_SUPPORTS
 	default y if BR2_powerpc
 	# -m32 flag is used for 32bit builds and host-luajit has
 	# limited architecture support
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	# Building for 64-bit target requires a 64-bit host
-	depends on !BR2_ARCH_IS_64 || BR2_HOSTARCH = "x86_64"
+	depends on !BR2_ARCH_IS_64 || "$(HOSTARCH)" = "x86_64"
 
 config BR2_PACKAGE_LUAJIT
 	bool "luajit"
package/mono/Config.in +2 -2
index 0152df8268..354dc56d24 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_HOST_MONO_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "x86_64"
-	default y if BR2_HOSTARCH = "x86"
+	default y if "$(HOSTARCH)" = "x86_64"
+	default y if "$(HOSTARCH)" = "x86"
 
 config BR2_PACKAGE_MONO_ARCH_SUPPORTS
 	bool
package/nodejs/Config.in.host +4 -4
index a8ab89176c..a8b0f3997d 100644
@@ -1,9 +1,9 @@
 config BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "aarch64"
-	default y if BR2_HOSTARCH = "arm"
-	default y if BR2_HOSTARCH = "ppc64le"
-	default y if BR2_HOSTARCH = "x86_64"
+	default y if "$(HOSTARCH)" = "aarch64"
+	default y if "$(HOSTARCH)" = "arm"
+	default y if "$(HOSTARCH)" = "ppc64le"
+	default y if "$(HOSTARCH)" = "x86_64"
 
 comment "host nodejs needs a host gcc >= 8"
 	depends on !BR2_PACKAGE_HOST_NODEJS_BIN_ARCH_SUPPORTS
package/openjdk/Config.in +2 -2
index 25d6960ecf..66963ed885 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "x86_64"
-	default y if BR2_HOSTARCH = "aarch64"
+	default y if "$(HOSTARCH)" = "x86_64"
+	default y if "$(HOSTARCH)" = "aarch64"
 
 # Taken from make/autoconf/platform.m4
 config BR2_PACKAGE_OPENJDK_ARCH_SUPPORTS
package/openssl/Config.in +1 -1
index c7641ecefa..3d14988d99 100644
@@ -47,7 +47,7 @@ config BR2_PACKAGE_LIBRESSL
 source "package/libressl/Config.in"
 
 # openssl from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.openssl"
+source "$(BASE_DIR)/.br2-external.in.openssl"
 
 endchoice
 
package/protobuf/Config.in +11 -11
index 47e987fa2b..df87918273 100644
@@ -16,17 +16,17 @@
 # host-protobuf only builds on certain architectures
 config BR2_PACKAGE_HOST_PROTOBUF_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "aarch64"
-	default y if BR2_HOSTARCH = "arm"
-	default y if BR2_HOSTARCH = "mips"
-	default y if BR2_HOSTARCH = "mipsel"
-	default y if BR2_HOSTARCH = "powerpc"
-	default y if BR2_HOSTARCH = "powerpc64"
-	default y if BR2_HOSTARCH = "powerpc64le"
-	default y if BR2_HOSTARCH = "sparc"
-	default y if BR2_HOSTARCH = "sparc64"
-	default y if BR2_HOSTARCH = "x86"
-	default y if BR2_HOSTARCH = "x86_64"
+	default y if "$(HOSTARCH)" = "aarch64"
+	default y if "$(HOSTARCH)" = "arm"
+	default y if "$(HOSTARCH)" = "mips"
+	default y if "$(HOSTARCH)" = "mipsel"
+	default y if "$(HOSTARCH)" = "powerpc"
+	default y if "$(HOSTARCH)" = "powerpc64"
+	default y if "$(HOSTARCH)" = "powerpc64le"
+	default y if "$(HOSTARCH)" = "sparc"
+	default y if "$(HOSTARCH)" = "sparc64"
+	default y if "$(HOSTARCH)" = "x86"
+	default y if "$(HOSTARCH)" = "x86_64"
 
 config BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
 	bool
package/qt5/qt5webengine/Config.in +1 -1
index 99a2980a25..907b7513f6 100644
@@ -5,7 +5,7 @@ config BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
 		BR2_mips || BR2_mips64
 	# -m32 flag is used for 32bit builds and host tools have
 	# limited architecture support
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE # qt5declarative
 	depends on !BR2_BINFMT_FLAT # qt5base-icu
 	depends on BR2_USE_MMU # libglib2, qt5base-dbus
package/rustc/Config.in.host +8 -8
index baa68994e6..77f5bf0645 100644
@@ -1,14 +1,14 @@
 # All host rust packages should depend on this option
 config BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
 	bool
-	default y if BR2_HOSTARCH = "aarch64"
-	default y if BR2_HOSTARCH = "powerpc"
-	default y if BR2_HOSTARCH = "powerpc64"
-	default y if BR2_HOSTARCH = "powerpc64le"
-	default y if BR2_HOSTARCH = "riscv64"
-	default y if BR2_HOSTARCH = "s390x"
-	default y if BR2_HOSTARCH = "x86"
-	default y if BR2_HOSTARCH = "x86_64"
+	default y if "$(HOSTARCH)" = "aarch64"
+	default y if "$(HOSTARCH)" = "powerpc"
+	default y if "$(HOSTARCH)" = "powerpc64"
+	default y if "$(HOSTARCH)" = "powerpc64le"
+	default y if "$(HOSTARCH)" = "riscv64"
+	default y if "$(HOSTARCH)" = "s390x"
+	default y if "$(HOSTARCH)" = "x86"
+	default y if "$(HOSTARCH)" = "x86_64"
 
 # The pre-built Rust standard library is only available for a number
 # of architectures/C libraries combinations, with different levels of
package/sam-ba/Config.in.host +1 -1
index cd11e8633e..9b2e2afb75 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_HOST_SAM_BA
 	bool "host sam-ba"
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	help
 	  Atmel SAM-BA software provides an open set of tools for
 	  programming the Atmel SAM3, SAM7 and SAM9 ARM-based
package/supertuxkart/Config.in +2 -2
index 319415754a..d442846fdd 100644
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_SUPERTUXKART
 	bool "supertuxkart"
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_i386 || BR2_x86_64
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_INSTALL_LIBSTDCPP # openal
@@ -34,7 +34,7 @@ config BR2_PACKAGE_SUPERTUXKART
 	  http://supertuxkart.sourceforge.net/Main_Page
 
 comment "supertuxkart needs an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++, gcc >= 4.9"
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_i386 || BR2_x86_64
 	depends on BR2_USE_MMU
 	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
package/ti-cgt-pru/Config.in.host +1 -1
index eab3cd72d5..cf56854dd1 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_HOST_TI_CGT_PRU_ARCH_SUPPORTS
 	bool
 	default y
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_arm
 
 config BR2_PACKAGE_HOST_TI_CGT_PRU
package/ti-gfx/Config.in +1 -1
index 40f46335a3..093417fa21 100644
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_TI_GFX
 	bool "ti-gfx"
 	depends on BR2_LINUX_KERNEL && BR2_TOOLCHAIN_USES_GLIBC && BR2_arm
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	select BR2_HOSTARCH_NEEDS_IA32_LIBS
 	select BR2_PACKAGE_HAS_LIBEGL
 	select BR2_PACKAGE_HAS_LIBGLES
package/wine/Config.in +3 -3
index db3b1570ef..cb764f0c9b 100644
@@ -2,9 +2,9 @@ config BR2_PACKAGE_WINE_ARCH_SUPPORTS
 	bool
 	default y
 	# Wine only builds on certain architectures
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86" || \
-	           BR2_HOSTARCH = "powerpc" || BR2_HOSTARCH = "arm" || \
-	           BR2_HOSTARCH = "aarch64"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86" || \
+	           "$(HOSTARCH)" = "powerpc" || "$(HOSTARCH)" = "arm" || \
+	           "$(HOSTARCH)" = "aarch64"
 	# Wine has much CPU specific code and mostly makes sense on x86
 	depends on BR2_i386
 
system/Config.in +2 -2
index 3fb17ed1c6..b8db1e755f 100644
@@ -20,7 +20,7 @@ config BR2_ROOTFS_SKELETON_CUSTOM
 	  Use custom target skeleton.
 
 # skeleton from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.skeleton"
+source "$(BASE_DIR)/.br2-external.in.skeleton"
 
 endchoice
 
@@ -154,7 +154,7 @@ config BR2_INIT_NONE
 	  or with a rootfs-overlay.
 
 # Init systems from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.init"
+source "$(BASE_DIR)/.br2-external.in.init"
 
 endchoice
 
toolchain/toolchain-external/Config.in +1 -1
index e91aa16326..9067193282 100644
@@ -38,7 +38,7 @@ source "toolchain/toolchain-external/toolchain-external-bootlin/Config.in"
 source "toolchain/toolchain-external/toolchain-external-custom/Config.in"
 
 # Toolchains from br2-external trees, if any
-source "$BR2_BASE_DIR/.br2-external.in.toolchains"
+source "$(BASE_DIR)/.br2-external.in.toolchains"
 
 endchoice
 
toolchain/toolchain-external/toolchain-external-arm-aarch64-be/Config.in +1 -1
index 1cee601a89..07d1e4b232 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64_BE
 	bool "Arm AArch64 BE 13.2.rel1"
 	depends on BR2_aarch64_be
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
 	select BR2_TOOLCHAIN_HAS_SSP
toolchain/toolchain-external/toolchain-external-arm-aarch64/Config.in +1 -1
index 2565707def..65159c38bb 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_ARM_AARCH64
 	bool "Arm AArch64 13.2.rel1"
 	depends on BR2_aarch64
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
 	select BR2_TOOLCHAIN_HAS_SSP
toolchain/toolchain-external/toolchain-external-arm-arm/Config.in +1 -1
index bee8d61164..bbc8168160 100644
@@ -7,7 +7,7 @@ config BR2_TOOLCHAIN_EXTERNAL_ARM_ARM
 	depends on BR2_arm
 	depends on BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
 	depends on BR2_ARM_CPU_HAS_NEON
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "aarch64"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "aarch64"
 	depends on BR2_ARM_EABIHF
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_13
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
toolchain/toolchain-external/toolchain-external-bootlin/Config.in +1 -1
index 6552da9a84..1fa4fccb0f 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_BOOTLIN
 	bool "Bootlin toolchains"
 	depends on BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARCH_SUPPORTS
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	help
 	  Bootlin toolchains are built using Buildroot for a large
 	  number of architectures and C libraries configurations.
toolchain/toolchain-external/toolchain-external-codesourcery-mips/Config.in +1 -1
index 8e067c8ffb..1938e8f5fc 100644
@@ -5,7 +5,7 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_MIPS
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_6
 	# Unsupported MIPS cores
 	depends on !BR2_mips_interaptiv
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on !BR2_MIPS_NABI32
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
 	select BR2_TOOLCHAIN_HAS_SSP
toolchain/toolchain-external/toolchain-external-linaro-aarch64-be/Config.in +1 -1
index 295a8987f1..ae727ffc4c 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64_BE
 	bool "Linaro AArch64 BE 2018.05"
 	depends on BR2_aarch64_be
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
 	select BR2_TOOLCHAIN_HAS_SSP
toolchain/toolchain-external/toolchain-external-linaro-aarch64/Config.in +1 -1
index 1b0ec7cd9f..bee49235d4 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_LINARO_AARCH64
 	bool "Linaro AArch64 2018.05"
 	depends on BR2_aarch64
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
 	select BR2_TOOLCHAIN_HAS_SSP
toolchain/toolchain-external/toolchain-external-linaro-arm/Config.in +1 -1
index 8b3b4c844e..4390482ab9 100644
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_LINARO_ARM
 	bool "Linaro ARM 2018.05"
 	depends on BR2_arm
 	depends on BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_ARM_EABIHF
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
toolchain/toolchain-external/toolchain-external-linaro-armeb/Config.in +1 -1
index b143ee5e24..3448864e4c 100644
@@ -6,7 +6,7 @@ config BR2_TOOLCHAIN_EXTERNAL_LINARO_ARMEB
 	bool "Linaro armeb 2018.05"
 	depends on BR2_armeb
 	depends on BR2_ARM_CPU_ARMV7A || BR2_ARM_CPU_ARMV8A
-	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
+	depends on "$(HOSTARCH)" = "x86_64" || "$(HOSTARCH)" = "x86"
 	depends on BR2_ARM_EABIHF
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_8
 	select BR2_TOOLCHAIN_EXTERNAL_GLIBC
toolchain/toolchain-external/toolchain-external-synopsys-arc/Config.in +1 -1
index 292e652fb0..44ff9593b3 100644
@@ -1,7 +1,7 @@
 config BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC
 	bool "Synopsys ARC 2019.09 toolchain"
 	depends on BR2_arc
-	depends on BR2_HOSTARCH = "x86_64"
+	depends on "$(HOSTARCH)" = "x86_64"
 	depends on !BR2_ARCH_NEEDS_GCC_AT_LEAST_10
 	select BR2_TOOLCHAIN_EXTERNAL_UCLIBC
 	select BR2_INSTALL_LIBSTDCPP
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#16 lore raw

Re: [Buildroot] [PATCH v1 7/8] support/kconfig: reference environment variables directly (remove 'option env=')

Config.in config BR2_DEFCONFIG · line 179

Quoted 13 lines · On Mon, 6 May 2024 16:45:50 +0200 Peter Seiderer via buildroot…

config BR2_DEFCONFIG

Config.in +2 -2
 	string "Location to save buildroot config"
-	default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
+	default "$(BR2_DEFCONFIG)" if "$(BR2_DEFCONFIG)" != ""
 	default "$(CONFIG_DIR)/defconfig"
 	help
 	  When running 'make savedefconfig', the defconfig file will be
@@ -197,7 +176,7 @@ config BR2_DEFCONFIG
 
 config BR2_DL_DIR
 	string "Download dir"
-	default "$(TOPDIR)/dl"
+	default "\$(TOPDIR)/dl"

So here the "\$(TOPDIR)" is because we actually don't want the "new" feature to kick in, and we want the value of this variable to be expanded not by kconfig, but by the makefile machinery?

So this also means that when we do $(BR2_EXTERNAL_BLABLA_PATH) in our .config, it now also need to be \$(BR2_EXTERNAL_BLABLA_PATH) ? If so that's going to break a *lot* of things...

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#17 lore raw

Re: [Buildroot] [PATCH v1 7/8] support/kconfig: reference environment variables directly (remove 'option env=')

Hello Thomas,

Quoted 13 lines · Thomas Petazzoni via buildroot
Quoted 9 lines · On Mon, 6 May 2024 16:45:50 +0200 Peter Seiderer via buildroot…

config BR2_DEFCONFIG

Config.in +1 -1
 	string "Location to save buildroot config"
-	default BR2_DEFCONFIG_FROM_ENV if BR2_DEFCONFIG_FROM_ENV != ""
+	default "$(BR2_DEFCONFIG)" if "$(BR2_DEFCONFIG)" != ""
 	default "$(CONFIG_DIR)/defconfig"
 	help
 	  When running 'make savedefconfig', the defconfig file will be
@@ -197,7 +176,7 @@ config BR2_DEFCONFIG
 
Quoted 8 lines

Config.in config BR2_DEFCONFIG · line 179

Quoted 4 lines
Config.in +1 -1
 config BR2_DL_DIR
 	string "Download dir"
-	default "$(TOPDIR)/dl"
+	default "\$(TOPDIR)/dl"

So here the "\$(TOPDIR)" is because we actually don't want the "new" feature to kick in, and we want the value of this variable to be expanded not by kconfig, but by the makefile machinery?

Yes (sorry, the explaining sentence in the commit log got lost while rebasing/squashing)..., without the escape the expanded value is written out to the .config file...

Quoted 4 lines

So this also means that when we do $(BR2_EXTERNAL_BLABLA_PATH) in our .config, it now also need to be \$(BR2_EXTERNAL_BLABLA_PATH) ? If so that's going to break a *lot* of things...

Needs to be tested ;-), but the problem is not in the .config files but in the Config.in* files...

Regards,
Peter

Quoted 2 lines

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#18 lore raw

Re: [Buildroot] [PATCH v1 7/8] support/kconfig: reference environment variables directly (remove 'option env=')

Peter, All,

On 2024-05-08 16:53 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 14 lines · Thomas Petazzoni via buildroot
Quoted 7 lines

Config.in config BR2_DEFCONFIG · line 179

Quoted 2 lines · On Mon, 6 May 2024 16:45:50 +0200 Peter Seiderer via buildroot…
Config.in +1 -1
-	default "$(TOPDIR)/dl"
+	default "\$(TOPDIR)/dl"

So here the "\$(TOPDIR)" is because we actually don't want the "new" feature to kick in, and we want the value of this variable to be expanded not by kconfig, but by the makefile machinery?

Yes (sorry, the explaining sentence in the commit log got lost while rebasing/squashing)..., without the escape the expanded value is written out to the .config file...

Quoted 3 lines

So this also means that when we do $(BR2_EXTERNAL_BLABLA_PATH) in our .config, it now also need to be \$(BR2_EXTERNAL_BLABLA_PATH) ? If so that's going to break a *lot* of things...

This would also impact BR2_TARGET_GENERIC_ROOT_PASSWD, see the help
text: it can contain a literal string that starts with a $ sign.

Quoted 2 lines

Needs to be tested ;-), but the problem is not in the .config files but in the Config.in* files...

So, that only impacts the 'default' entries, right? If a user actually enters '$FOO' in a configurator, the appropriate, unexpanded value ends up in the .config?

What would happen with:

    $ cat Config.in
    config BR2_FOO
        string "$(FOO)"
    $ FOO=27 BAR=42 make defconfig
    $ cat .config
    BR2_FOO=????
    $ FOO=27 BAR=42 make menuconfig
        BR2_FOO -> enter literal:  "$(BAR)"
    $ cat .config
    BR2_FOO=????

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#19 lore raw

PATCH 8/8 package/openssl: move libopenssl/libressl source statemetns outside of the choice

In reply to Peter Seiderer via buildroot

Fixes the following error/warnings with kconfig from linux-6.9-rc5:

package/libopenssl/Config.in:5:warning: choice value must have a prompt package/libopenssl/Config.in:7:warning: defaults for choice values not supported package/libopenssl/Config.in:15:warning: choice value must have a prompt package/libopenssl/Config.in:18:warning: defaults for choice values not supported package/libopenssl/Config.in:19:warning: defaults for choice values not supported package/libopenssl/Config.in:20:warning: defaults for choice values not supported package/libopenssl/Config.in:21:warning: defaults for choice values not supported package/libopenssl/Config.in:22:warning: defaults for choice values not supported package/libopenssl/Config.in:23:warning: defaults for choice values not supported package/libopenssl/Config.in:24:warning: defaults for choice values not supported package/libopenssl/Config.in:25:warning: defaults for choice values not supported package/libopenssl/Config.in:26:warning: defaults for choice values not supported package/libopenssl/Config.in:27:warning: defaults for choice values not supported package/libopenssl/Config.in:28:warning: defaults for choice values not supported package/libopenssl/Config.in:32:warning: defaults for choice values not supported package/libopenssl/Config.in:33:warning: defaults for choice values not supported package/libopenssl/Config.in:34:warning: defaults for choice values not supported package/libopenssl/Config.in:50:warning: defaults for choice values not supported package/libopenssl/Config.in:54:warning: defaults for choice values not supported package/libopenssl/Config.in:58:warning: defaults for choice values not supported package/libopenssl/Config.in:62:warning: defaults for choice values not supported package/libopenssl/Config.in:66:warning: defaults for choice values not supported package/libopenssl/Config.in:70:warning: defaults for choice values not supported package/libopenssl/Config.in:75:warning: defaults for choice values not supported package/libopenssl/Config.in:79:warning: defaults for choice values not supported package/libopenssl/Config.in:83:warning: defaults for choice values not supported package/libopenssl/Config.in:87:warning: defaults for choice values not supported package/libopenssl/Config.in:91:warning: defaults for choice values not supported package/libopenssl/Config.in:95:warning: defaults for choice values not supported package/libopenssl/Config.in:99:warning: defaults for choice values not supported package/libopenssl/Config.in:103:warning: defaults for choice values not supported package/libopenssl/Config.in:107:warning: defaults for choice values not supported package/libopenssl/Config.in:111:warning: defaults for choice values not supported package/libopenssl/Config.in:115:warning: defaults for choice values not supported package/libopenssl/Config.in:119:warning: defaults for choice values not supported package/libopenssl/Config.in:123:warning: defaults for choice values not supported package/libopenssl/Config.in:130:warning: defaults for choice values not supported package/libopenssl/Config.in:134:warning: defaults for choice values not supported package/openssl/Config.in:12:error: recursive dependency detected!
package/openssl/Config.in:12: choice <choice> contains symbol BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH_LINUX_PPC
package/libopenssl/Config.in:5: symbol BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH_LINUX_PPC is part of choice BR2_PACKAGE_LIBOPENSSL
package/openssl/Config.in:17: symbol BR2_PACKAGE_LIBOPENSSL is part of choice <choice>
For a resolution refer to Documentation/kbuild/kconfig-language.rst subsection "Kconfig recursive dependency limitations"

---
Notes/ToDo:
- with this solution the external support needs to be splitted into two imports/lines...

---
 package/openssl/Config.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/openssl/Config.in +3 -4
index 3d14988d99..fcf996f03f 100644
@@ -28,8 +28,6 @@ config BR2_PACKAGE_LIBOPENSSL
 
 	  Note: Some helper scripts need perl.
 
-source "package/libopenssl/Config.in"
-
 config BR2_PACKAGE_LIBRESSL
 	bool "libressl"
 	depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
@@ -44,13 +42,14 @@ config BR2_PACKAGE_LIBRESSL
 
 	  http://www.libressl.org/
 
-source "package/libressl/Config.in"
-
 # openssl from br2-external trees, if any
 source "$(BASE_DIR)/.br2-external.in.openssl"
 
 endchoice
 
+source "package/libopenssl/Config.in"
+source "package/libressl/Config.in"
+
 config BR2_PACKAGE_HAS_OPENSSL
 	bool
 
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#20 lore raw

Re: [Buildroot] [PATCH v1 8/8] package/openssl: move libopenssl/libressl source statemetns outside of the choice

Quoted 1 line

https://lists.buildroot.org/mailman/listinfo/buildroot

Peter, All,

On 2024-05-06 16:45 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 5 lines

---
Notes/ToDo:
- with this solution the external support needs to be splitted into two imports/lines...

NMot sure I understand wht you meant here...

Quoted 18 lines
---
 package/openssl/Config.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/openssl/Config.in +0 -2
index 3d14988d99..fcf996f03f 100644
@@ -28,8 +28,6 @@ config BR2_PACKAGE_LIBOPENSSL
 
 	  Note: Some helper scripts need perl.
 
-source "package/libopenssl/Config.in"
-
 config BR2_PACKAGE_LIBRESSL
 	bool "libressl"
 	depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL

package/openssl/Config.in config BR2_PACKAGE_LIBRESSL · line 46

Quoted 7 lines
package/openssl/Config.in +0 -2
@@ -44,13 +42,14 @@ config BR2_PACKAGE_LIBRESSL
 
 	  http://www.libressl.org/
 
-source "package/libressl/Config.in"
-
 # openssl from br2-external trees, if any
 source "$(BASE_DIR)/.br2-external.in.openssl"

This leaves one 'source' statement in te choice, which is no longer accepted, AFAIU.

package/openssl/Config.in config BR2_PACKAGE_LIBRESSL · line 51

Quoted 4 lines
package/openssl/Config.in +2 -0
 endchoice
 
+source "package/libopenssl/Config.in"
+source "package/libressl/Config.in"

I think the best solution is to move the if-endif conditional block out of package/libopenssl/Config.in back into package/openssl/Config.in, and add a new choice entry, so that basically we end up with something lie;

choice
bool "ssl library"

config BR2_PACKAGE_LIBOPENSSL
bool "openssl"

config BR2_PACKAGE_LIBRESSL
bool "libressl"

config BR2_PACKAGE_OPENSSL_EXTERNAL
bool "from an external tree"
depends on $BR2_EXTERNAL != "" # Or something along those lines, adapt

endchoice

if BR2_PACKAGE_LIBOPENSSL
source "package/libopenssl/Config.in"
endif

if BR2_PACKAGE_LIBRESSL
source "package/libressl/Config.in"
endif

if BR2_PACKAGE_OPENSSL_EXTERNAL
source "$(BASE_DIR)/.br2-external.in.openssl"
endif

Basically, that would make for an uglier state, but that's the best we can do given the new limitsations introduced by upstream kconfig...

Thoughts?

Regards,
Yann E. MORIN.

Quoted 10 lines
package/openssl/Config.in +0 -0
 config BR2_PACKAGE_HAS_OPENSSL
 	bool
 
Signature · 6 lines
2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#21 lore raw

Re: [Buildroot] [PATCH v1 8/8] package/openssl: move libopenssl/libressl source statemetns outside of the choice

Hello Yann,

Quoted 4 lines · Yann E. MORIN
Quoted 1 line

https://lists.buildroot.org/mailman/listinfo/buildroot

Peter, All,

Quoted 8 lines

On 2024-05-06 16:45 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 5 lines

---
Notes/ToDo:
- with this solution the external support needs to be splitted into two imports/lines...

NMot sure I understand wht you meant here...

Short/compressed note (and not clear), but see below...

Quoted 22 lines
Quoted 22 lines
---
 package/openssl/Config.in | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
package/openssl/Config.in +0 -2
index 3d14988d99..fcf996f03f 100644
@@ -28,8 +28,6 @@ config BR2_PACKAGE_LIBOPENSSL
 
 	  Note: Some helper scripts need perl.
 
-source "package/libopenssl/Config.in"
-
 config BR2_PACKAGE_LIBRESSL
 	bool "libressl"
 	depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
@@ -44,13 +42,14 @@ config BR2_PACKAGE_LIBRESSL
 
 	  http://www.libressl.org/
 
Quoted 7 lines

package/openssl/Config.in config BR2_PACKAGE_LIBRESSL · line 46

Quoted 4 lines
package/openssl/Config.in +0 -2
-source "package/libressl/Config.in"
-
 # openssl from br2-external trees, if any
 source "$(BASE_DIR)/.br2-external.in.openssl"

This leaves one 'source' statement in te choice, which is no longer accepted, AFAIU.

'source' is accepted here, but not with all possible content...

Quoted 29 lines

package/openssl/Config.in config BR2_PACKAGE_LIBRESSL · line 51

Quoted 5 lines
package/openssl/Config.in +2 -0
 endchoice
 
+source "package/libopenssl/Config.in"
+source "package/libressl/Config.in"

I think the best solution is to move the if-endif conditional block out of package/libopenssl/Config.in back into package/openssl/Config.in, and add a new choice entry, so that basically we end up with something lie;

choice
bool "ssl library"

config BR2_PACKAGE_LIBOPENSSL
bool "openssl"

config BR2_PACKAGE_LIBRESSL
bool "libressl"

config BR2_PACKAGE_OPENSSL_EXTERNAL
bool "from an external tree"
depends on $BR2_EXTERNAL != "" # Or something along those lines, adapt

endchoice

if BR2_PACKAGE_LIBOPENSSL
source "package/libopenssl/Config.in"
endif

Quoted 7 lines

if BR2_PACKAGE_LIBRESSL
source "package/libressl/Config.in"
endif

if BR2_PACKAGE_OPENSSL_EXTERNAL
source "$(BASE_DIR)/.br2-external.in.openssl"
endif

Will test the proposed solution the next days..., alternative solution would be:

     choice
         bool "ssl library"

     config BR2_PACKAGE_LIBOPENSSL
         bool "openssl"

     config BR2_PACKAGE_LIBRESSL
         bool "libressl"

     source "$(BASE_DIR)/.br2-external.in.openssl-choice"

     endchoice

     source "package/libopenssl/Config.in"
     source "package/libressl/Config.in"
     source "$(BASE_DIR)/.br2-external.in.openssl"

Splitting the external content into two files (two lines), keeping the 'source' of the empty files as default (the first with the choice content, the second with the regarding configuration entries)...

But either way the content of '.br2-external.in.openssl' needs to be changed/adjusted...

Regards,
Peter

Quoted 20 lines

Basically, that would make for an uglier state, but that's the best we can do given the new limitsations introduced by upstream kconfig...

Thoughts?

Regards,
Yann E. MORIN.

Quoted 10 lines
package/openssl/Config.in +0 -1
 config BR2_PACKAGE_HAS_OPENSSL
 	bool
 
--

2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#22 lore raw

Re: [Buildroot] [PATCH v1 8/8] package/openssl: move libopenssl/libressl source statemetns outside of the choice

Peter, All,

On 2024-05-08 17:07 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 2 lines · Yann E. MORIN
Quoted 1 line

On 2024-05-06 16:45 +0200, Peter Seiderer via buildroot spake thusly:

[--SNIP--]

Quoted 5 lines
Quoted 4 lines

package/openssl/Config.in config BR2_PACKAGE_LIBRESSL · line 42

Quoted 2 lines
package/openssl/Config.in +0 -0
@@ -44,13 +42,14 @@ config BR2_PACKAGE_LIBRESSL
 source "$(BASE_DIR)/.br2-external.in.openssl"

This leaves one 'source' statement in te choice, which is no longer accepted, AFAIU.

'source' is accepted here, but not with all possible content...

Ah, it is still accepted, because you introduced a patch that reverts the upstream change.

I think that, if we update our kconfig, we do not want to switm against the current, and we should not try to reintroduce a feature that has been removed, otherwise, we'll have to carry that for ever...

Instead, we should find a solution that allows us to be closer to upstream, to ease updating in the future...

Quoted 3 lines
Quoted 3 lines

I think the best solution is to move the if-endif conditional block out of package/libopenssl/Config.in back into package/openssl/Config.in, and add a new choice entry, so that basically we end up with something lie;

[--SNIP--]

Quoted 5 lines

Will test the proposed solution the next days..., alternative solution would be:

choice
bool "ssl library"

Quoted 7 lines

config BR2_PACKAGE_LIBOPENSSL
bool "openssl"

config BR2_PACKAGE_LIBRESSL
bool "libressl"

source "$(BASE_DIR)/.br2-external.in.openssl-choice"

That's still a source in a choice, and as statred above, we should not go that route if it is no longe rsupported upstream...

Quoted 6 lines
     endchoice

     source "package/libopenssl/Config.in"
     source "package/libressl/Config.in"
     source "$(BASE_DIR)/.br2-external.in.openssl"
Quoted 6 lines

Splitting the external content into two files (two lines), keeping the 'source' of the empty files as default (the first with the choice content, the second with the regarding configuration entries)...

But either way the content of '.br2-external.in.openssl' needs to be changed/adjusted...

Detail. We own those scripts, and ugly as they are (I wrote them, blame me), we can extend them as needed.

Thanks for working on this! :-)

Regards,
Yann E. MORIN.

Quoted 29 lines

Regards,
Peter

Quoted 20 lines

Basically, that would make for an uglier state, but that's the best we can do given the new limitsations introduced by upstream kconfig...

Thoughts?

Regards,
Yann E. MORIN.

Quoted 10 lines
package/openssl/Config.in +0 -1
 config BR2_PACKAGE_HAS_OPENSSL
 	bool
 
--

2.44.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#23 lore raw
In reply to Peter Seiderer via buildroot

Hello,

Quoted 9 lines · On Mon, 6 May 2024 16:45:43 +0200 Peter Seiderer via buildroot…

The patches are orderd by the first 5 handling some minor nits (result of the new kconfig beeing a little more strict about the syntax, can be applied in advance):

- boot/barebox/Config.in: source argument needs quotation marks
- package/cmocka/Config.in: bool argument needs quotation marks
- package/dovecot/Config.in: source argument needs quotation marks
- package/python-pydal/Config.in: bool argument needs quotation marks
- package/x11r7/Config.in: source argument needs quotation marks

I have applied those preparation patches that make sense regardless of what happens with the bump.

Quoted 3 lines

The kconfig version dump itself:

- support/kconfig: bump to linux-v6.9-rc5 version

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Quoted 4 lines

And two 'real' changes due to kconfig language changes:

- support/kconfig: reference environment variables directly (remove 'option env=')
- package/openssl: move libopenssl/libressl source statemetns outside of the choice

But don't we have this situation of source statements inside a choice..endchoice in other places? I remember Yann saying that this was a problematic change for us in the upstream kconfig code.

Best regards,

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#24 lore raw

Thomas, Peter, All,

On 2024-05-06 21:04 +0200, Thomas Petazzoni via buildroot spake thusly:

Quoted 2 lines

On Mon, 6 May 2024 16:45:43 +0200
Peter Seiderer via buildroot <[email protected]> wrote:

[--SNIP--]

Quoted 4 lines
Quoted 2 lines

The kconfig version dump itself:
- support/kconfig: bump to linux-v6.9-rc5 version

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Except they should be reversed: the new commits can work with the kconfig we currently have, so it looks like it should be OK to do the required changes before doing the kconfig bump.

Quoted 5 lines
Quoted 3 lines

And two 'real' changes due to kconfig language changes:
- support/kconfig: reference environment variables directly (remove 'option env=')
- package/openssl: move libopenssl/libressl source statemetns outside of the choice

But don't we have this situation of source statements inside a choice..endchoice in other places?

Toolchains, skeletons, init systems, jpeg library, linux extensions, and indeed openssl.

Quoted 2 lines

I remember Yann saying that this was
a problematic change for us in the upstream kconfig code.

Yes, so given that there are two problematic changes:
- source statements in choices,
- environment variable direct expansion,
I wonder if it makes sense for us to update our kconfig infra...

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#25 lore raw
Quoted 6 lines · On Mon, 6 May 2024 22:19:39 +0200 "Yann E. MORIN" <[email protected]>…
Quoted 2 lines

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Except they should be reversed: the new commits can work with the kconfig we currently have, so it looks like it should be OK to do the required changes before doing the kconfig bump.

I don't think the logic changed in "support/kconfig: reference environment variables directly (remove 'option env=')" can work with the current kconfig code base.

Quoted 7 lines
Quoted 2 lines

I remember Yann saying that this was
a problematic change for us in the upstream kconfig code.

Yes, so given that there are two problematic changes:
- source statements in choices,
- environment variable direct expansion,
I wonder if it makes sense for us to update our kconfig infra...

But we'd hate to stay stuck on an old kconfig code base forever. Gtk is going to move on, Qt is going to move on, which means at some point in the future, our "make xconfig" and "make gconfig" would no longer work.

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#26 lore raw
In reply to Yann E. MORIN

Hello Yann, Thomas,

Quoted 6 lines · Yann E. MORIN

Thomas, Peter, All,

On 2024-05-06 21:04 +0200, Thomas Petazzoni via buildroot spake thusly:

Quoted 2 lines

On Mon, 6 May 2024 16:45:43 +0200
Peter Seiderer via buildroot <[email protected]> wrote:

[--SNIP--]

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

The kconfig version dump itself:
- support/kconfig: bump to linux-v6.9-rc5 version

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Except they should be reversed: the new commits can work with the kconfig we currently have, so it looks like it should be OK to do the required changes before doing the kconfig bump.

A solution for the two remaining patches working with the old/new kconfig would be nice..., will test if it works for the escape problem...

Regards,
Peter

Quoted 13 lines
Quoted 6 lines
Quoted 4 lines

And two 'real' changes due to kconfig language changes:
- support/kconfig: reference environment variables directly (remove 'option env=')
- package/openssl: move libopenssl/libressl source statemetns outside of the choice

But don't we have this situation of source statements inside a choice..endchoice in other places?

Toolchains, skeletons, init systems, jpeg library, linux extensions, and indeed openssl.

Quoted 2 lines

I remember Yann saying that this was
a problematic change for us in the upstream kconfig code.

Quoted 8 lines

Yes, so given that there are two problematic changes:
- source statements in choices,
- environment variable direct expansion,
I wonder if it makes sense for us to update our kconfig infra...

Regards,
Yann E. MORIN.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#27 lore raw

Peter, All,

On 2024-05-08 17:21 +0200, Peter Seiderer via buildroot spake thusly:

Quoted 7 lines · Yann E. MORIN
Quoted 6 lines

On 2024-05-06 21:04 +0200, Thomas Petazzoni via buildroot spake thusly:

Quoted 2 lines

On Mon, 6 May 2024 16:45:43 +0200
Peter Seiderer via buildroot <[email protected]> wrote:

[--SNIP--]

Quoted 2 lines
Quoted 2 lines

The kconfig version dump itself:
- support/kconfig: bump to linux-v6.9-rc5 version

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Except they should be reversed: the new commits can work with the kconfig we currently have, so it looks like it should be OK to do the required changes before doing the kconfig bump.

A solution for the two remaining patches working with the old/new kconfig would be nice..., will test if it works for the escape problem...

Right, making the env vars work in both caes would be quite difficult...

However, the source-in-choice fix can very well be done before the kconfig bump.

Regards,
Yann E. MORIN.

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#28 lore raw
In reply to Thomas Petazzoni via buildroot

Hello Thomas,

Quoted 9 lines · Thomas Petazzoni via buildroot

Hello,

Quoted 4 lines · On Mon, 6 May 2024 16:45:43 +0200 Peter Seiderer via buildroot…

The patches are orderd by the first 5 handling some minor nits (result of the new kconfig beeing a little more strict about the syntax, can be applied in advance):

Quoted 8 lines
Quoted 5 lines

- boot/barebox/Config.in: source argument needs quotation marks
- package/cmocka/Config.in: bool argument needs quotation marks
- package/dovecot/Config.in: source argument needs quotation marks
- package/python-pydal/Config.in: bool argument needs quotation marks
- package/x11r7/Config.in: source argument needs quotation marks

I have applied those preparation patches that make sense regardless of what happens with the bump.

Thanks...

Quoted 7 lines
Quoted 4 lines

The kconfig version dump itself:

- support/kconfig: bump to linux-v6.9-rc5 version

So this commit without the next two leads to a broken situation, correct? (Note: this is not a complaint, I agree with them being split).

Yes, but the next two patches can eventually squashed with this one, but did keep separate for better patch review/iteration (suspected some more discussion on this ones)...

Quoted 9 lines
Quoted 5 lines

And two 'real' changes due to kconfig language changes:

- support/kconfig: reference environment variables directly (remove 'option env=')
- package/openssl: move libopenssl/libressl source statemetns outside of the choice

But don't we have this situation of source statements inside a choice..endchoice in other places? I remember Yann saying that this was a problematic change for us in the upstream kconfig code.

Yes, that is the reasoning for the (suggested by Yann)

patches/23-Revert-kconfig-allow-only-config-comment-and-if-insi.patch

With this one reverted I get the following warnings/errors:

toolchain/toolchain-external/Config.in:12: syntax error toolchain/toolchain-external/Config.in:12: invalid statement toolchain/toolchain-external/Config.in:13: invalid statement toolchain/toolchain-external/Config.in:16: invalid statement toolchain/toolchain-external/Config.in:17: invalid statement toolchain/toolchain-external/Config.in:20: invalid statement toolchain/toolchain-external/Config.in:23: invalid statement toolchain/toolchain-external/Config.in:24: invalid statement toolchain/toolchain-external/Config.in:27: invalid statement toolchain/toolchain-external/Config.in:30: invalid statement toolchain/toolchain-external/Config.in:33: invalid statement toolchain/toolchain-external/Config.in:38: invalid statement toolchain/toolchain-external/Config.in:41: invalid statement system/Config.in:23: syntax error system/Config.in:23: invalid statement system/Config.in:157: syntax error system/Config.in:157: invalid statement package/openssl/Config.in:46: syntax error package/openssl/Config.in:46: invalid statement package/jpeg/Config.in:43: syntax error package/jpeg/Config.in:43: invalid statement

With the patch the remaining problematic source-inside-choice are in package/openssl/Config.in, seems not all content is allowed to be included...

Regards,
Peter

Quoted 4 lines

Best regards,

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#29 lore raw
In reply to Peter Seiderer via buildroot

Hello Peter,

Quoted 2 lines · On Mon, 6 May 2024 16:45:43 +0200 Peter Seiderer via buildroot…

First draft of updating support/kconfig to an actual linux upstream version (6.9-rc5).

I was wondering if you had any updates on this patch series? Indeed, updating kconfig would be quite nice, there are some fixes/improvements that we would like to have that were added recently in the Linux kernel kconfig, but that requires updating our support/kconfig code of course.

Thanks a lot!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#30 lore raw

Hello Thomas,

Quoted 5 lines · Thomas Petazzoni

Hello Peter,

On Mon, 6 May 2024 16:45:43 +0200
Peter Seiderer via buildroot <[email protected]> wrote:

Quoted 7 lines
Quoted 2 lines

First draft of updating support/kconfig to an actual linux upstream version (6.9-rc5).

I was wondering if you had any updates on this patch series? Indeed, updating kconfig would be quite nice, there are some fixes/improvements that we would like to have that were added recently in the Linux kernel kconfig, but that requires updating our support/kconfig code of course.

Quite some time passed ;-), no real update since v2 (see [1]), besides the following additional patch in my local git repo:

From 364ccc709b2997f30a4f88770c6d238c04369f31 Mon Sep 17 00:00:00 2001
From: Peter Seiderer <[email protected]>
Date: Tue, 14 May 2024 00:02:31 +0200
Subject: toolchain-external: do not expand ARCH

- escape ARCH usage to force to not expand at configure time (but at make time), needed for upcoming kconfig update (see upstream commit [1])

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=104daea149c45cc84842ce77a9bd6436d19f3dd8

---
Changes v2 -> v3:
- new patch

support/scripts/gen-bootlin-toolchains +1 -1
index 502411d4cc..45dd86c942 100755
@@ -509,7 +509,7 @@ def gen_config_in_options(toolchains, fpath):
         f.write("if BR2_TOOLCHAIN_EXTERNAL_BOOTLIN\n\n")
 
         f.write("config BR2_TOOLCHAIN_EXTERNAL_PREFIX\n")
-        f.write("\tdefault \"$(ARCH)-linux\"\n")
+        f.write("\tdefault \"\\$(ARCH)-linux\"\n")
 
         f.write("\n")
 
toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options +1 -1
index ef3d23d026..d8d54584de 100644
@@ -49,7 +49,7 @@ config BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_ARCH_SUPPORTS
 if BR2_TOOLCHAIN_EXTERNAL_BOOTLIN
 
 config BR2_TOOLCHAIN_EXTERNAL_PREFIX
-	default "$(ARCH)-linux"
+	default "\$(ARCH)-linux"
 
 config BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL
 	default "toolchain-external-bootlin"
toolchain/toolchain-external/toolchain-external-custom/Config.in.options +1 -1
index 94ea3b82de..23028188d8 100644
@@ -23,7 +23,7 @@ config BR2_TOOLCHAIN_EXTERNAL_REL_BIN_PATH
 
 config BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX
 	string "Toolchain prefix"
-	default "$(ARCH)-linux"
+	default "\$(ARCH)-linux"
 	help
 	  Component name prefix used by your external toolchain.
 

Not much buildroot work from my side (besides very sporadic contributions ;-) ) as I have no (payed) buildroot related projects at the moment...

Regards,
Peter

[1] https://lore.kernel.org/buildroot/[email protected]/t/#u

Quoted 4 lines

Thanks a lot!

Thomas

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot