diff options
author | Mark Hatle <mark.hatle@amd.com> | 2024-08-15 09:15:19 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@amd.com> | 2024-08-16 09:54:55 -0500 |
commit | b5c6386b1a09b0e12a2d17bbd22a212caefa15c6 (patch) | |
tree | f630bdc3ea14db03b7a61bda0469b686cd8802e8 /meta-xilinx-standalone-sdt | |
parent | e3de5e4e3078b06e1bb866990d4bca7645ca6ec4 (diff) | |
download | meta-xilinx-b5c6386b1a09b0e12a2d17bbd22a212caefa15c6.tar.gz |
sdt-artifacts: Only copy if the SDT_FILE_NAME is defined
This resolves an issue when SDT_FILE_NAME is not set that results in:
cp: cannot copy a directory, '.../tmp/work/.../sdt-artifacts/2024.2//image', into itself, '.../tmp/work/.../sdt-artifacts/2024.2/image/usr/share/sdt/zynqmp-generic/image'
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-standalone-sdt')
-rw-r--r-- | meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts_2024.2.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts_2024.2.bb b/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts_2024.2.bb index 18834cbb..f822bb7c 100644 --- a/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts_2024.2.bb +++ b/meta-xilinx-standalone-sdt/recipes-bsp/sdt-artifacts/sdt-artifacts_2024.2.bb | |||
@@ -88,7 +88,7 @@ do_compile[noexec] = "1" | |||
88 | 88 | ||
89 | do_install() { | 89 | do_install() { |
90 | 90 | ||
91 | if [ -d ${S}/${SDT_FILE_NAME} ]; then | 91 | if [ -n ${SDT_FILE_NAME} -a -d ${S}/${SDT_FILE_NAME} ]; then |
92 | install -d ${D}${datadir}/sdt/${SDT_MACHINE}/${SDT_FILE_NAME} | 92 | install -d ${D}${datadir}/sdt/${SDT_MACHINE}/${SDT_FILE_NAME} |
93 | cp --preserve=mode,timestamps -R ${S}/${SDT_FILE_NAME}/* ${D}${datadir}/sdt/${SDT_MACHINE}/${SDT_FILE_NAME} | 93 | cp --preserve=mode,timestamps -R ${S}/${SDT_FILE_NAME}/* ${D}${datadir}/sdt/${SDT_MACHINE}/${SDT_FILE_NAME} |
94 | else | 94 | else |