Config.in: do not expand TOPDIR, BASE_DIR and CONFIG_DIR
PATCH v2 1/4 Config.in: do not expand TOPDIR, BASE_DIR and CONFIG_DIR
- escape TOPDIR, BASE_DIR and CONFIG_DIR usage to force to not exapnd at configure time (but at make time), needed for upcoming kconfig update (see upstream commit [1])
---
Changes v1 -> v2:
- new patch (moved escape fixes from 'support/kconfig: reference environment variables directly (remove 'option env=')' to this extra/preliminary patch)
--- Config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Config.in +3 -3
@@ -197,7 +197,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 +211,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
@@ -669,7 +669,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
Signature · 6 lines
2.45.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/4 support/kconfig: bump to linux-v6.9-rc5 version
- 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/
---
Changes v1 -> v2:
- no changes
---
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_shippedsupport/kconfig/Kbuild.include new file +273 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.h +19 -30
49 lines not on this page · 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/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/lkc.h +39 -78
117 lines not on this page · raw message
support/kconfig/lxdialog/.gitignore deleted +0 -4
Lines of this file are not shown. View the raw message.
support/kconfig/lxdialog/BIG.FAT.WARNING +1 -1
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/dialog.h +11 -65
76 lines not on this page · 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/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
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
Lines of this file are not shown. View the raw message.
support/kconfig/patches/12-fix-glade-file-path.patch +5 -9
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
Lines of this file are not shown. View the raw message.
support/kconfig/patches/17-backport-kecho.patch deleted +0 -26
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
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
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
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
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/preprocess.c new file +580 -0
580 lines not on this page · 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.45.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.
PATCH v2 3/4 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
---
Changes v1 -> v2:
- moved escape fixes to extra/preliminary patch
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 | 45 +++++-------------- 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, 86 insertions(+), 111 deletions(-)
Config.in +12 -33
@@ -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
@@ -988,4 +967,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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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.45.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 4/4 package/openssl: move libopenssl/libressl/.br2-external.in.openssl source statements outside of the choice
In reply to Peter Seiderer via buildrootFixes 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"
---
Changes v1 -> v2:
- fix typo in subject line (statements vs. statemetns)
- move 'if BR2_PACKAGE_LIBOPENSSL' from package/libopenssl/Config.in to package/openssl/Config.in (suggested by Yann E. MORIN)
- move 'f BR2_PACKAGE_LIBRESSL' from ackage/libressl/Config.in to package/openssl/Config.in (suggested by Yann E. MORIN)
- move .br2-external.in.openssl source statement outside of the choice (suggested by Yann E. MORIN)
Notes:
- with this solution for .br2-external.in.openssl exactly one alternative/ external openssl library can be provided (previously more than one additional entry could be provided inside the choice)
--- package/libopenssl/Config.in | 4 ---- package/libressl/Config.in | 4 ---- package/openssl/Config.in | 19 ++++++++++++++----- 3 files changed, 14 insertions(+), 13 deletions(-)
package/libopenssl/Config.in +0 -4
@@ -1,5 +1,3 @@ -if BR2_PACKAGE_LIBOPENSSL - # 4xx PowerPC cores seem to have trouble with openssl's ASM # optimizations config BR2_PACKAGE_LIBOPENSSL_TARGET_ARCH_LINUX_PPC
@@ -132,5 +130,3 @@ config BR2_PACKAGE_LIBOPENSSL_DYNAMIC_ENGINE config BR2_PACKAGE_LIBOPENSSL_ENABLE_COMP bool "enable compression" default y - -endif # BR2_PACKAGE_LIBOPENSSL
package/libressl/Config.in +0 -4
@@ -1,9 +1,5 @@ -if BR2_PACKAGE_LIBRESSL - config BR2_PACKAGE_LIBRESSL_BIN bool "openssl binary" help Install the openssl binary to the target file system. This is a command line tool for doing various cryptographic stuff. - -endif
package/openssl/Config.in +14 -5
@@ -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,12 +42,23 @@ config BR2_PACKAGE_LIBRESSL http://www.libressl.org/ +config BR2_PACKAGE_OPENSSL_EXTERNAL + bool "from an external tree" + depends on "$(BR2_EXTERNAL)" != "" + +endchoice + +if BR2_PACKAGE_LIBOPENSSL +source "package/libopenssl/Config.in" +endif + +if BR2_PACKAGE_LIBRESSL source "package/libressl/Config.in" +endif -# openssl from br2-external trees, if any +if BR2_PACKAGE_OPENSSL_EXTERNAL source "$(BASE_DIR)/.br2-external.in.openssl" - -endchoice +endif config BR2_PACKAGE_HAS_OPENSSL bool
Signature · 6 lines
2.45.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 3 lines · Peter Seiderer via buildroot
- escape TOPDIR,
BASE_DIRandCONFIG_DIRusage to force to not exapnd at configure time (but at make time), needed for upcoming kconfig update (see upstream commit [1])
Same is needed for 'ARCH' usage in toolchain/toolchain-external/toolchain-external-bootlin/Config.in.options and toolchain/toolchain-external/toolchain-external-custom/Config.in.options (and support/scripts/gen-bootlin-toolchains)..., additional patch will follow with
next patch set iteration...
Regards,
Peter
Quoted 35 lines
Signed-off-by Peter Seiderer <[email protected]>---
Changes v1 -> v2:
- new patch (moved escape fixes from 'support/kconfig: reference environment variables directly (remove 'option env=')' to this extra/preliminary patch)--- Config.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Config.in +2
-2@@ -197,7 +197,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 +211,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
Config.in endchoice · line 675
Quoted 8 lines
Config.in +1
-1@@ -669,7 +669,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
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot