diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-08-11 23:29:52 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-08-28 19:01:55 +0100 |
commit | 14ce999924012b99c61b336527d1bc224823b78a (patch) | |
tree | 6165fbb689affc235d1bacc2f185351657a22d1b /include | |
parent | 8686a9a085d4313a0107a3e4378b3762c8293570 (diff) | |
download | upstream-14ce999924012b99c61b336527d1bc224823b78a.tar.gz upstream-14ce999924012b99c61b336527d1bc224823b78a.tar.bz2 upstream-14ce999924012b99c61b336527d1bc224823b78a.zip |
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 <daniel@makrotopia.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/trusted-firmware-a.mk | 3 |
1 files changed, 3 insertions, 0 deletions
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) |