imx6: use $PATH to locate dtc binary
authorLuka Perkov <luka@openwrt.org>
Mon, 15 Jul 2013 23:18:37 +0000 (23:18 +0000)
committerLuka Perkov <luka@openwrt.org>
Mon, 15 Jul 2013 23:18:37 +0000 (23:18 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37362

target/linux/imx6/image/Makefile

index 975328f00335748e5aaa33085e57a61c28ce4f98..04a446d98f6193190dffed04b715afe9df6be7ec 100644 (file)
@@ -16,7 +16,7 @@ define mkfit
                -v 'OpenWrt Linux-$(LINUX_VERSION)' \
                -d $(LINUX_DIR)/arch/arm/boot/dts/$(1).dtb -k $(LINUX_DIR)/arch/arm/boot/zImage \
                -o $(KDIR)/$(1)-uImage.its
-       mkimage -B $(LINUX_DIR)/scripts/dtc/dtc -f $(KDIR)/$(1)-uImage.its $(BIN_DIR)/openwrt-$(1)-uImage.itb
+       PATH=$(LINUX_DIR)/scripts/dtc:$(PATH) mkimage -f $(KDIR)/$(1)-uImage.its $(BIN_DIR)/openwrt-$(1)-uImage.itb
 endef
 
 # emit FIT images, DTB's and generic zImage