aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot
diff options
context:
space:
mode:
authorYutang Jiang <yutang.jiang@nxp.com>2016-10-19 19:20:21 +0800
committerJohn Crispin <john@phrozen.org>2016-10-26 12:37:46 +0200
commite7dc511e640b00f4ec381248c317cb6370bd798e (patch)
tree137537dac223341368500f314196d4213a2dfab9 /package/boot
parentd140648622639c4508f715dbd2d72088bdb49c81 (diff)
downloadupstream-e7dc511e640b00f4ec381248c317cb6370bd798e.tar.gz
upstream-e7dc511e640b00f4ec381248c317cb6370bd798e.tar.bz2
upstream-e7dc511e640b00f4ec381248c317cb6370bd798e.zip
uboot-zynq: fix compile error for be short of dtc
While enable zynq uboot: CONFIG_PACKAGE_uboot-zynq-zc702 CONFIG_PACKAGE_uboot-zynq-zed CONFIG_PACKAGE_uboot-zynq-zybo make will arise dtc error: ./scripts/dtc-version.sh: line 17: dtc: command not found ./scripts/dtc-version.sh: line 18: dtc: command not found *** Your dtc is too old, please upgrade to dtc 1.4 or newer make[4]: *** [checkdtc] Error 1 Pass the kernel dtc to uboot for compile. Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
Diffstat (limited to 'package/boot')
-rw-r--r--package/boot/uboot-zynq/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/boot/uboot-zynq/Makefile b/package/boot/uboot-zynq/Makefile
index 412415bfc6..a6e4f0a715 100644
--- a/package/boot/uboot-zynq/Makefile
+++ b/package/boot/uboot-zynq/Makefile
@@ -6,6 +6,7 @@
#
include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
PKG_NAME:=u-boot
PKG_VERSION:=2016.03
@@ -81,7 +82,7 @@ endef
define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
- CROSS_COMPILE=$(TARGET_CROSS)
+ CROSS_COMPILE=$(TARGET_CROSS) DTC=$(LINUX_DIR)/scripts/dtc/dtc
endef
define Package/uboot/install/default