The dtc is located in the build dir not the source dir of the kernel.

Signed-off-by: Michael Olbrich <[email protected]>
---
 rules/post/ptxd_make_world_dtbo.make | 3 ++-
 scripts/lib/ptxd_make_world_dtb.sh   | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/rules/post/ptxd_make_world_dtbo.make 
b/rules/post/ptxd_make_world_dtbo.make
index 61babc653660..e484f35c59b5 100644
--- a/rules/post/ptxd_make_world_dtbo.make
+++ b/rules/post/ptxd_make_world_dtbo.make
@@ -11,7 +11,8 @@ world/dtbo/env = \
        pkg_dtso_path="$($(1)_DTSO_PATH)" \
        pkg_dtso="$($(1)_DTSO)" \
        pkg_dtbo_dir="$($(1)_DTBO_DIR)" \
-       pkg_kernel_src="$($(1)_KERNEL_DIR)" \
+       pkg_kernel_dir="$($(1)_KERNEL_DIR)" \
+       pkg_kernel_build_dir="$($(1)_KERNEL_DIR)" \
        pkg_arch="$(GENERIC_KERNEL_ARCH)"
 
 world/dtbo = \
diff --git a/scripts/lib/ptxd_make_world_dtb.sh 
b/scripts/lib/ptxd_make_world_dtb.sh
index f78d2f885114..f2eee99e4a95 100644
--- a/scripts/lib/ptxd_make_world_dtb.sh
+++ b/scripts/lib/ptxd_make_world_dtb.sh
@@ -12,9 +12,10 @@ ptxd_make_dtb() {
     dts="${dtb_source}"
     dtb="${dtb_target}"
 
-    dtb_kernel_dir="${pkg_kernel_src:-${pkg_dir}}"
+    dtb_kernel_dir="${pkg_kernel_dir:-${pkg_dir}}"
+    dtb_kernel_build_dir="${pkg_kernel_build_dir:-${pkg_build_dir}}"
 
-    dtc="${dtb_kernel_dir}/scripts/dtc/dtc"
+    dtc="${dtb_kernel_build_dir}/scripts/dtc/dtc"
     if [ ! -x "${dtc}" ]; then
        dtc=dtc
     fi
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to