diff mbox series

[LEDE-DEV,09/12] uboot-at91: fix DTC command not found.

Message ID f3dc4c884ac3c5a0f5c186a8d588d15cc87f946a.1522686802.git.sandeepsheriker.mallikarjun@microchip.com
State Accepted
Delegated to: John Crispin
Headers show
Series [LEDE-DEV,01/12] at91bootstrap:update to v3.8.10 | expand

Commit Message

Sandeep Sheriker April 2, 2018, 4:34 p.m. UTC
fixed DTC command not found error while compling uboot-at91. The fix
is to set DTC PATH in uboot-at91 MAKE command.

Signed-off-by: Sandeep Sheriker Mallikarjun <sandeepsheriker.mallikarjun@microchip.com>
---
 package/boot/uboot-at91/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile
index 994201e..73a2d62 100644
--- a/package/boot/uboot-at91/Makefile
+++ b/package/boot/uboot-at91/Makefile
@@ -16,6 +16,7 @@  PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33
 
 include $(INCLUDE_DIR)/u-boot.mk
 include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/kernel.mk
 
 define U-Boot/Default
   BUILD_TARGET:=at91
@@ -107,8 +108,9 @@  UBOOT_TARGETS := \
 define Build/Compile
   +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
      CROSS_COMPILE=$(TARGET_CROSS) \
+	 DTC=$(LINUX_DIR)/scripts/dtc/dtc \
      KCFLAGS="$(filter-out -fstack-protector \
-      -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft"
+      -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" 
 endef
 
 $(eval $(call BuildPackage/U-Boot))