From 15e8e7ed939ce5f6e95ff3dc8bf68242cadfca12 Mon Sep 17 00:00:00 2001 From: Appana Durga Kedareswara rao Date: Fri, 29 Jul 2022 12:18:40 +0530 Subject: meta-xilinx-standalone-experimental: recipes-core: meta: files: dt-processor.sh: Add relative path support for system device-tree and domain file With the existing dt-processor.sh fails if relative paths of system-top.dts or domains yaml have been provided, this commit fixes this issue. Signed-off-by: Appana Durga Kedareswara rao Signed-off-by: Mark Hatle --- .../recipes-core/meta/files/dt-processor.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'meta-xilinx-standalone-experimental') diff --git a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh index c1f076d8..aa4696d2 100755 --- a/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh +++ b/meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh @@ -34,8 +34,8 @@ usage() { cat < Location of the build conf directory - -s Full path to system DTB - -d Full path to domain file (.yml/.dts) + -s Path to system DTB + -d Path to domain file (.yml/.dts) [-o ] Generate overlay dts [-e ] Apply a partial overlay [-m ] zynqmp or versal @@ -77,6 +77,11 @@ parse_args() { if [ -z "$pdi_path" ]; then pdi_path=$(dirname ${system_dtb}) fi + system_dtb=$(realpath ${system_dtb}) + if [ "$domain_file" ]; then + domain_file=$(realpath ${domain_file}) + fi + } detect_machine() { -- cgit v1.2.3-54-g00ecf