Skip to contentSkip to conversation

fdt: Report libfdt error to stderr

PATCH New Simon Glass 1 participant 2 messages Jun 1, 2017 – Jun 2, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fdt: Report libfdt error to stderr

This error needs to go to stderr otherwise it will not be reported by buildman. Fix it.

---

 Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Makefile +7 -6
index 89e0451a49..c13937c3a8 100644
@@ -1357,12 +1357,13 @@ $(timestamp_h): $(srctree)/Makefile FORCE
 
 checkbinman: tools
 	@if ! ( echo 'import libfdt' | ( PYTHONPATH=tools python )); then \
-		echo '*** binman needs the Python libfdt library. Either '; \
-		echo '*** install it on your system, or try:'; \
-		echo '***'; \
-		echo '*** sudo apt-get install swig libpython-dev'; \
-		echo '***'; \
-		echo '*** to have U-Boot build its own version.'; \
+		echo >&2; \
+		echo >&2 '*** binman needs the Python libfdt library.'; \
+		echo >&2 '*** Either install it on your system, or try:'; \
+		echo >&2 '***'; \
+		echo >&2 '*** sudo apt-get install swig libpython-dev'; \
+		echo >&2 '***'; \
+		echo >&2 '*** to have U-Boot build its own version.'; \
 		false; \
 	fi
 
Signature · 1 line
2.13.0.219.gdb65acc882-goog
#1 lore raw

PATCH 1/1 fdt: Report libfdt error to stderr

Hi,

Quoted 34 lines · Simon Glass

This error needs to go to stderr otherwise it will not be reported by buildman. Fix it.

---

 Makefile | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
Makefile +7 -7
index 89e0451a49..c13937c3a8 100644
@@ -1357,12 +1357,13 @@ $(timestamp_h): $(srctree)/Makefile FORCE
 
 checkbinman: tools
        @if ! ( echo 'import libfdt' | ( PYTHONPATH=tools python )); then \
-               echo '*** binman needs the Python libfdt library. Either '; \
-               echo '*** install it on your system, or try:'; \
-               echo '***'; \
-               echo '*** sudo apt-get install swig libpython-dev'; \
-               echo '***'; \
-               echo '*** to have U-Boot build its own version.'; \
+               echo >&2; \
+               echo >&2 '*** binman needs the Python libfdt library.'; \
+               echo >&2 '*** Either install it on your system, or try:'; \
+               echo >&2 '***'; \
+               echo >&2 '*** sudo apt-get install swig libpython-dev'; \
+               echo >&2 '***'; \
+               echo >&2 '*** to have U-Boot build its own version.'; \
                false; \
        fi
 
--
Quoted 2 lines

2.13.0.219.gdb65acc882-goog

I have squashed this into 'fdt: Makefile: Build python libfdt library if needed' since it fixes up that patch.

Applied to u-boot-fdt.