aboutsummaryrefslogtreecommitdiff
path: root/ledge
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2019-12-12 13:21:57 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2019-12-12 13:43:59 +0300
commite3cb3ff6ab389353d529f346e1b61ddc15b12708 (patch)
treec34b6ba070f6d39ebefe4eba600a3cb368b4bfe0 /ledge
parentcf8f0f7b0414018d906d340335594708242fb27a (diff)
ledge-oe: clean up build artifacts
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Change-Id: I79a50341cd54f06ca54d1a37c97fc21ce7ea8eb9
Diffstat (limited to 'ledge')
-rwxr-xr-xledge/oe/builders.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/ledge/oe/builders.sh b/ledge/oe/builders.sh
index 4ef07025..270e3baa 100755
--- a/ledge/oe/builders.sh
+++ b/ledge/oe/builders.sh
@@ -127,6 +127,12 @@ for rootfs in $(find ${DEPLOY_DIR_IMAGE} -type f -name *.rootfs.wic); do
done
pigz -9 ledge-kernel-uefi-certs.ext4
+# Convert bl*.bin symlinks to local files
+find . -type l -name "bl*.bin" -exec cp --remove-destination \$\(readlink {}\) {} \;
+
+# Clean up not needed build artifacts
+rm -rf Image-ledge* Image*mainline* modules-*-mainline* \
+ *.env *.conf *.manifest *.json *.wks
# Create MD5SUMS file
find ${DEPLOY_DIR_IMAGE} -type f | xargs md5sum > MD5SUMS.txt