Temporary fix for device dtb changes until templates are fixed 28/21028/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 12 Apr 2019 19:50:24 +0000 (21:50 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Fri, 12 Apr 2019 19:50:24 +0000 (21:50 +0200)
Change-Id: I95a5c5e3f9d2ea43885de0fefec1cb2faf82fbea
old: uImage-bcm2710-rpi-3-b+vc4+ft5406.dtb
new: bcm2710-rpi-3-b+vc4+ft5406.dtb
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-run-test-rsync-changeid.sh

index 46ed607..8db5f46 100644 (file)
@@ -28,6 +28,16 @@ cd output
 pwd
 ls -alhR tmp/deploy/images
 
+set -x
+
+echo "tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB}"
+echo "tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-}"
+
+# workaround for thud until fixed in templates:
+if [ ! -e tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB} -a -e tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-} ] ; then
+    cp -avL tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"} tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB}
+fi
+
 BUILD_INFO=build-info
 # copy files to $DEST (only if variable is non-empty)
 for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT BUILD_INFO; do
@@ -37,6 +47,7 @@ for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT BUILD_INFO; do
       cp -avL tmp/deploy/images/${TARGETMACHINE}/${FILE} ${DEST2}/
     fi
 done
+set +x
 
 tree $DEST
 ls -alhR $DEST