All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: Update minimum dtc version to 1.4.3
@ 2017-09-15 17:15 Tom Rini
  2017-09-15 17:33 ` Stephen Warren
  2017-09-22 14:20 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 29+ messages in thread
From: Tom Rini @ 2017-09-15 17:15 UTC (permalink / raw)
  To: u-boot

With support for overlays and calling the -@ flag to dtc we need to have
at least 1.4.3 available now.

Cc: Simon Glass <sjg@chromium.org>
Reported-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
Simon, please make sure to grab this one too with Pantelis' series,
thanks!
---
 Makefile               | 4 ++--
 scripts/dtc-version.sh | 7 ++++---
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index 8250b3409a68..e058e9854b7b 100644
--- a/Makefile
+++ b/Makefile
@@ -1448,8 +1448,8 @@ System.map:	u-boot
 		@$(call SYSTEM_MAP,$<) > $@
 
 checkdtc:
-	@if test $(call dtc-version) -lt 0104; then \
-		echo '*** Your dtc is too old, please upgrade to dtc 1.4 or newer'; \
+	@if test $(call dtc-version) -lt 010403; then \
+		echo '*** Your dtc is too old, please upgrade to dtc 1.4.3 or newer'; \
 		false; \
 	fi
 
diff --git a/scripts/dtc-version.sh b/scripts/dtc-version.sh
index e8c94d390baa..0744c39eb04c 100755
--- a/scripts/dtc-version.sh
+++ b/scripts/dtc-version.sh
@@ -2,8 +2,8 @@
 #
 # dtc-version dtc-command
 #
-# Prints the dtc version of `dtc-command' in a canonical 4-digit form
-# such as `0222' for binutils 2.22
+# Prints the dtc version of `dtc-command' in a canonical 6-digit form
+# such as `010404'  for dtc 1.4.4
 #
 
 dtc="$*"
@@ -16,5 +16,6 @@ fi
 
 MAJOR=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 1)
 MINOR=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 2)
+PATCH=$($dtc -v | head -1 | awk '{print $NF}' | cut -d . -f 3 | cut -d - -f 1)
 
-printf "%02d%02d\\n" $MAJOR $MINOR
+printf "%02d%02d%02d\\n" $MAJOR $MINOR $PATCH
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2017-09-25  8:34 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-15 17:15 [U-Boot] [PATCH] Makefile: Update minimum dtc version to 1.4.3 Tom Rini
2017-09-15 17:33 ` Stephen Warren
2017-09-15 17:41   ` Tom Rini
2017-09-22 14:20 ` [U-Boot] " Tom Rini
2017-09-23 10:39   ` Marek Vasut
2017-09-23 12:56     ` Tom Rini
2017-09-23 13:04       ` Marek Vasut
2017-09-23 16:10         ` Tom Rini
2017-09-23 17:36           ` Marek Vasut
2017-09-24  1:49           ` Bin Meng
2017-09-24  2:07             ` Robert Nelson
2017-09-24  3:22               ` Tom Rini
2017-09-24  8:28                 ` Marek Vasut
2017-09-24 11:36                   ` Tom Rini
2017-09-24 12:07                     ` Marek Vasut
2017-09-24 12:26                       ` Łukasz Majewski
2017-09-24 12:52                       ` Tom Rini
2017-09-24 13:05                         ` Marek Vasut
2017-09-25  2:14                           ` Simon Glass
2017-09-25  8:34                             ` Marek Vasut
2017-09-23 17:05       ` Tom Rini
2017-09-23 17:33         ` Marek Vasut
2017-09-23 17:37           ` Tom Rini
2017-09-23 17:43             ` Marek Vasut
2017-09-23 17:53               ` Tom Rini
2017-09-24  6:41                 ` Heinrich Schuchardt
2017-09-24 11:20                   ` Łukasz Majewski
2017-09-24 12:50                   ` Tom Rini
2017-09-24 19:08                 ` Vagrant Cascadian

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.