From 14ce999924012b99c61b336527d1bc224823b78a Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 11 Aug 2022 23:29:52 +0200 Subject: trusted-firmware-a.mk: pass DTC path similar to u-boot.mk Instead of relying on dtc being provided by the build host use the dtc from $(LINUX_DIR) similar to how it's done also in u-boot.mk. For this to work kernel.mk now needs to be included before trusted-firmware-a.mk, add this include to all affected packages. Signed-off-by: Daniel Golle --- include/trusted-firmware-a.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/trusted-firmware-a.mk') diff --git a/include/trusted-firmware-a.mk b/include/trusted-firmware-a.mk index d95250452b..46fc52b15e 100644 --- a/include/trusted-firmware-a.mk +++ b/include/trusted-firmware-a.mk @@ -72,10 +72,13 @@ define Build/Configure/Trusted-Firmware-A $(INSTALL_DIR) $(STAGING_DIR)/usr/include endef +DTC=$(wildcard $(LINUX_DIR)/scripts/dtc/dtc) + define Build/Compile/Trusted-Firmware-A +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CROSS_COMPILE=$(TARGET_CROSS) \ OPENSSL_DIR=$(STAGING_DIR_HOST) \ + $(if $(DTC),DTC="$(DTC)") \ PLAT=$(PLAT) \ BUILD_STRING="OpenWrt v$(PKG_VERSION)-$(PKG_RELEASE) ($(VARIANT))" \ $(TFA_MAKE_FLAGS) -- cgit v1.2.3