From f1e39da158b350d770a3691de4df72346d6a8098 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 8 Oct 2018 20:24:32 +0200 Subject: dtc: use the improved ptx/in-path macro It can now handle path variables that are not yet exported. Signed-off-by: Michael Olbrich --- rules/dtc.make | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules/dtc.make b/rules/dtc.make index 22a05e7e6..ed74b371d 100644 --- a/rules/dtc.make +++ b/rules/dtc.make @@ -18,12 +18,14 @@ PACKAGES-$(PTXCONF_DTC) += dtc DTC_VERSION := 1.0.0 DTC_LICENSE := ignore +DTC_OFTREE_DTS_PATH := $(call remove_quotes,$(PTXCONF_DTC_OFTREE_DTS_PATH)) + # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- ptx/dtb = $(notdir $(basename $(strip $(1)))).dtb -ptx/dts = $(shell p=$(PTXCONF_DTC_OFTREE_DTS_PATH) ptxd_in_path p "$(strip $(1))" && echo "$${ptxd_reply}") +ptx/dts = $(call ptx/in-path,DTC_OFTREE_DTS_PATH,$(strip $(1))) ifdef PTXCONF_DTC_OFTREE_DTS # Note: this must match the magic in ptxd_make_dts_dtb -- cgit v1.2.3