diff options
author | Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> | 2022-07-29 12:18:40 +0530 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2022-07-29 10:17:38 -0700 |
commit | 866a5ba1976f70b559c3fe08dfb1dbac9b8dfe61 (patch) | |
tree | bc5e94542f399c9ab75961df476a1c417ce32ed3 /meta-xilinx-standalone-experimental/recipes-core | |
parent | e7a95bd6c08c1ecdabefd9a0399def9726b37037 (diff) | |
download | meta-xilinx-866a5ba1976f70b559c3fe08dfb1dbac9b8dfe61.tar.gz |
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 <appana.durga.kedareswara.rao@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
(cherry picked from commit 15e8e7ed939ce5f6e95ff3dc8bf68242cadfca12)
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-experimental/recipes-core')
-rwxr-xr-x | meta-xilinx-standalone-experimental/recipes-core/meta/files/dt-processor.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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() { | |||
34 | cat <<EOF | 34 | cat <<EOF |
35 | $0 | 35 | $0 |
36 | -c <config_dir> Location of the build conf directory | 36 | -c <config_dir> Location of the build conf directory |
37 | -s <system_dtb> Full path to system DTB | 37 | -s <system_dtb> Path to system DTB |
38 | -d <domain_file> Full path to domain file (.yml/.dts) | 38 | -d <domain_file> Path to domain file (.yml/.dts) |
39 | [-o <overlay_dtb>] Generate overlay dts | 39 | [-o <overlay_dtb>] Generate overlay dts |
40 | [-e <external_fpga>] Apply a partial overlay | 40 | [-e <external_fpga>] Apply a partial overlay |
41 | [-m <machine>] zynqmp or versal | 41 | [-m <machine>] zynqmp or versal |
@@ -77,6 +77,11 @@ parse_args() { | |||
77 | if [ -z "$pdi_path" ]; then | 77 | if [ -z "$pdi_path" ]; then |
78 | pdi_path=$(dirname ${system_dtb}) | 78 | pdi_path=$(dirname ${system_dtb}) |
79 | fi | 79 | fi |
80 | system_dtb=$(realpath ${system_dtb}) | ||
81 | if [ "$domain_file" ]; then | ||
82 | domain_file=$(realpath ${domain_file}) | ||
83 | fi | ||
84 | |||
80 | } | 85 | } |
81 | 86 | ||
82 | detect_machine() { | 87 | detect_machine() { |