Signed-off-by: Roland Hieber <r...@pengutronix.de>
---
 rules/dt-utils.in   | 20 ++++++++++++++++++--
 rules/dt-utils.make |  8 ++++++--
 2 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/rules/dt-utils.in b/rules/dt-utils.in
index 7ce0e579c98c..2ac7383f2ab8 100644
--- a/rules/dt-utils.in
+++ b/rules/dt-utils.in
@@ -1,11 +1,27 @@
 ## SECTION=shell_and_console
 
-config DT_UTILS
+menuconfig DT_UTILS
        tristate
-       prompt "dt-utils"
+       prompt "dt-utils                      "
        select UDEV
        help
          Utilities to work with device trees in Linux userspace:
 
          * barebox-state: access barebox' state storage
          * fdtdump: dump a device tree binary to stdout
+
+if DT_UTILS
+
+config DT_UTILS_STATE_COMPAT
+       bool "ensure state compatibility with older bareboxes"
+       help
+         Previous variants of the state variable set did not contain metadata.
+         The read function in the 'direct' storage backend honors this, but the
+         write function doesn't, which makes an update of the state variable
+         set impossible in this case.
+         When enabling this option, barebox-state will keep the storage in a
+         format that can be read by barebox <= v2016.08.0 when writing
+         variables into a 'direct' storage backend, or fail if this requirement
+         cannot be guaranteed.
+
+endif
diff --git a/rules/dt-utils.make b/rules/dt-utils.make
index ce86738bf614..0c2fe87cddb7 100644
--- a/rules/dt-utils.make
+++ b/rules/dt-utils.make
@@ -14,8 +14,8 @@ PACKAGES-$(PTXCONF_DT_UTILS) += dt-utils
 #
 # Paths and names
 #
-DT_UTILS_VERSION       := 2019.01.0
-DT_UTILS_MD5           := d83ebf99b07fa4516aeaa329afb2a6eb
+DT_UTILS_VERSION       := 2021.03.0
+DT_UTILS_MD5           := acf0b5e3b18e40e6172b67fbad2e52fb
 DT_UTILS               := dt-utils-$(DT_UTILS_VERSION)
 DT_UTILS_SUFFIX                := tar.xz
 DT_UTILS_URL           := 
https://public.pengutronix.de/software/dt-utils/$(DT_UTILS).$(DT_UTILS_SUFFIX)
@@ -31,6 +31,10 @@ DT_UTILS_LICENSE_FILES       := \
 # ----------------------------------------------------------------------------
 
 DT_UTILS_CONF_TOOL := autoconf
+DT_UTILS_CONF_OPT  := \
+       $(CROSS_AUTOCONF_USR) \
+       $(GLOBAL_LARGE_FILE_OPTION) \
+       --$(call ptx/endis, 
PTXCONF_DT_UTILS_STATE_COMPAT)-state-backward-compatibility
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to