Skip build-info if it does not exist 69/21469/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 31 May 2019 11:34:10 +0000 (13:34 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 31 May 2019 11:34:10 +0000 (13:34 +0200)
This fixes https://gerrit.automotivelinux.org/gerrit/#/c/AGL/meta-agl-demo/+/21462/ .

Change-Id: I5b00fe9ee35299bf0938c606c6acd9fcfa2af1ae
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-run-test-rsync-changeid.sh

index 9c218f9..033ca8c 100644 (file)
@@ -39,9 +39,13 @@ echo "tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-}"
 #    cp -avL tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-} tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB}
 #fi
 
-BUILD_INFO=build-info
+if [ -e tmp/deploy/images/${TARGETMACHINE}/build-info ] ; then
+      cp -avL tmp/deploy/images/${TARGETMACHINE}/build-info ${DEST}/
+      cp -avL tmp/deploy/images/${TARGETMACHINE}/build-info ${DEST2}/
+fi
+
 # copy files to $DEST (only if variable is non-empty)
-for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT BUILD_INFO; do
+for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do
     FILE=$(eval echo \$${i})
     if [ -n "$FILE" ]; then
       cp -avL tmp/deploy/images/${TARGETMACHINE}/${FILE} ${DEST}/