aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-06-04 13:13:29 -0400
committerTom Rini <trini@konsulko.com>2017-06-04 13:13:29 -0400
commitdd31be21bf8117df054f9ad072784bfc4df9e76f (patch)
tree39e0aa6d3f51070940ca599d67cec3a65fa3eceb /scripts
parent5cafcbab580bac6c7f44ca4a164c422b7e1ecf20 (diff)
parent99ed4a2e979150879fb70aea71898709536375d3 (diff)
downloadu-boot-dd31be21bf8117df054f9ad072784bfc4df9e76f.zip
u-boot-dd31be21bf8117df054f9ad072784bfc4df9e76f.tar.gz
u-boot-dd31be21bf8117df054f9ad072784bfc4df9e76f.tar.bz2
Merge git://git.denx.de/u-boot-fdt
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.spl17
1 files changed, 13 insertions, 4 deletions
diff --git a/scripts/Makefile.spl b/scripts/Makefile.spl
index 135706f..ac3c2c7 100644
--- a/scripts/Makefile.spl
+++ b/scripts/Makefile.spl
@@ -257,14 +257,12 @@ PHONY += dts_dir
dts_dir:
$(shell [ -d $(obj)/dts ] || mkdir -p $(obj)/dts)
-include/generated/dt-structs.h: $(obj)/$(SPL_BIN).dtb dts_dir dtoc
+include/generated/dt-structs.h: $(obj)/$(SPL_BIN).dtb dts_dir checkdtoc
$(call if_changed,dtoch)
-$(obj)/dts/dt-platdata.c: $(obj)/$(SPL_BIN).dtb dts_dir dtoc
+$(obj)/dts/dt-platdata.c: $(obj)/$(SPL_BIN).dtb dts_dir checkdtoc
$(call if_changed,dtocc)
-dtoc: #$(objtree)/tools/_libfdt.so
-
ifdef CONFIG_SAMSUNG
ifdef CONFIG_VAR_SIZE_SPL
VAR_SIZE_PARAM = --vs
@@ -357,6 +355,17 @@ ifneq ($(cmd_files),)
include $(cmd_files)
endif
+checkdtoc: tools
+ @if ! ( echo 'import libfdt' | ( PYTHONPATH=tools python )); then \
+ echo '*** dtoc 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.'; \
+ false; \
+ fi
+
PHONY += FORCE
FORCE: