summaryrefslogtreecommitdiff
path: root/recipes/images/files/library
diff options
context:
space:
mode:
authorMax Krummenacher <max.oss.09@gmail.com>2015-10-20 13:07:23 +0200
committerMax Krummenacher <max.oss.09@gmail.com>2015-10-28 09:31:27 +0100
commit59f0507817c86e84239265a1c0b95d519e467b17 (patch)
treec201eb1bd1b922e9036432113c6c0d268240c94a /recipes/images/files/library
parent4c49bd46708dd552d6471e24657ebcbf1c4f44bd (diff)
update.sh: delete intermediate files after use
Diffstat (limited to 'recipes/images/files/library')
-rwxr-xr-xrecipes/images/files/library/imx6/update.sh6
-rwxr-xr-xrecipes/images/files/library/tegra/update.sh4
2 files changed, 10 insertions, 0 deletions
diff --git a/recipes/images/files/library/imx6/update.sh b/recipes/images/files/library/imx6/update.sh
index f6b832d..5c3ecae 100755
--- a/recipes/images/files/library/imx6/update.sh
+++ b/recipes/images/files/library/imx6/update.sh
@@ -271,9 +271,15 @@ sudo $LOCPATH/genext3fs.sh -d rootfs -b ${EXT_SIZE} ${BINARIES}/${IMAGEFILE} ||
#copy to $OUT_DIR
sudo cp ${BINARIES}/${U_BOOT_BINARY} ${BINARIES}/${U_BOOT_BINARY_IT} ${BINARIES}/uImage ${BINARIES}/mbr.bin ${BINARIES}/boot.vfat \
${BINARIES}/${IMAGEFILE} ${BINARIES}/flash*.img ${BINARIES}/versions.txt "$OUT_DIR"
+#cleanup intermediate files
+sudo rm ${BINARIES}/mbr.bin ${BINARIES}/boot.vfat ${BINARIES}/${IMAGEFILE} ${BINARIES}/versions.txt
+
if [ "$SPLIT" -ge 1 ] ; then
sudo split -a 2 -b `expr 64 \* 1024 \* 1024` --numeric-suffixes=10 "$OUT_DIR/root.ext3" "$OUT_DIR/root.ext3-"
fi
sync
+echo "Successfully copied data to target folder."
+echo ""
+
Flash
diff --git a/recipes/images/files/library/tegra/update.sh b/recipes/images/files/library/tegra/update.sh
index 10b11ef..dfe531f 100755
--- a/recipes/images/files/library/tegra/update.sh
+++ b/recipes/images/files/library/tegra/update.sh
@@ -400,13 +400,17 @@ fi
OUT_DIR=`readlink -f $OUT_DIR`
cd ${BINARIES}
sudo cp ${CBOOT_IMAGE} ${KERNEL_IMAGETYPE} ${EMMC_PARTS} ${IMAGEFILE}* flash*.img versions.txt "$OUT_DIR"
+#cleanup intermediate files
+sudo rm ${CBOOT_IMAGE} ${EMMC_PARTS} ${IMAGEFILE}* versions.txt
cd ..
+
if [ "${IMAGEFILE}" = "root.ext3" ] ; then
if [ "$SPLIT" -ge 1 ] ; then
sudo split -a 2 -b `expr 64 \* 1024 \* 1024` --numeric-suffixes=10 "$OUT_DIR/root.ext3" "$OUT_DIR/root.ext3-"
fi
fi
sync
+
echo "Successfully copied data to target folder."
echo ""