Update buildroot to 2020.02.7 (#923)
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
committed by
Stefan Agner
parent
f9c29ef209
commit
e43d4cd632
@@ -11,20 +11,27 @@
|
||||
# package, and more.
|
||||
#
|
||||
|
||||
define KCONFIG_ENABLE_OPT # (option, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(2)
|
||||
echo '$(1)=y' >> $(2)
|
||||
# KCONFIG_DOT_CONFIG ([file])
|
||||
# Returns the path to the .config file that should be used, which will
|
||||
# be $(1) if provided, or the current package .config file otherwise.
|
||||
KCONFIG_DOT_CONFIG = $(strip \
|
||||
$(if $(strip $(1)), $(1), \
|
||||
$($(PKG)_BUILDDIR)/$($(PKG)_KCONFIG_DOTCONFIG) \
|
||||
) \
|
||||
)
|
||||
|
||||
# KCONFIG_MUNGE_DOT_CONFIG (option, newline [, file])
|
||||
define KCONFIG_MUNGE_DOT_CONFIG
|
||||
$(SED) "/\\<$(strip $(1))\\>/d" $(call KCONFIG_DOT_CONFIG,$(3))
|
||||
echo '$(strip $(2))' >> $(call KCONFIG_DOT_CONFIG,$(3))
|
||||
endef
|
||||
|
||||
define KCONFIG_SET_OPT # (option, value, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(3)
|
||||
echo '$(1)=$(2)' >> $(3)
|
||||
endef
|
||||
|
||||
define KCONFIG_DISABLE_OPT # (option, file)
|
||||
$(SED) "/\\<$(1)\\>/d" $(2)
|
||||
echo '# $(1) is not set' >> $(2)
|
||||
endef
|
||||
# KCONFIG_ENABLE_OPT (option [, file])
|
||||
KCONFIG_ENABLE_OPT = $(call KCONFIG_MUNGE_DOT_CONFIG, $(1), $(1)=y, $(2))
|
||||
# KCONFIG_SET_OPT (option, value [, file])
|
||||
KCONFIG_SET_OPT = $(call KCONFIG_MUNGE_DOT_CONFIG, $(1), $(1)=$(2), $(3))
|
||||
# KCONFIG_DISABLE_OPT (option [, file])
|
||||
KCONFIG_DISABLE_OPT = $(call KCONFIG_MUNGE_DOT_CONFIG, $(1), $(SHARP_SIGN) $(1) is not set, $(2))
|
||||
|
||||
# Helper functions to determine the name of a package and its
|
||||
# directory from its makefile directory, using the $(MAKEFILE_LIST)
|
||||
|
||||
Reference in New Issue
Block a user