summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2014-01-17 15:26:21 -0600
committerJesse Gilles <jgilles@multitech.com>2014-01-17 15:26:21 -0600
commit19689ac0300b361a6c6b60894f633baf8358027c (patch)
tree205dde039a2b9934552b7d46b8bd81d7e70c3caf
parentfd29980be3965336f349ad2da123e7421e70568e (diff)
corecdp-tftpboot.inc: remove specific files only before making links
-rw-r--r--multitech/recipes/images/corecdp-tftpboot.inc10
1 files changed, 8 insertions, 2 deletions
diff --git a/multitech/recipes/images/corecdp-tftpboot.inc b/multitech/recipes/images/corecdp-tftpboot.inc
index 9acb68d..f27cf6b 100644
--- a/multitech/recipes/images/corecdp-tftpboot.inc
+++ b/multitech/recipes/images/corecdp-tftpboot.inc
@@ -1,9 +1,15 @@
-
# make links to images in TFTPBOOT_DIR for ease of development
do_build_append () {
+ TFTPBOOT_CLEAN="oe_bootstrap.bin oe_bootstrap_pmecc_padded.bin \
+ oe_u-boot.bin oe_uImage.bin oe_rootfs.jffs2 oe_images"
+
if [ -n "${TFTPBOOT_DIR}" ]; then
install -d ${DEPLOY_DIR_IMAGE}
- rm -f ${TFTPBOOT_DIR}/oe_*
+
+ for f in ${TFTPBOOT_CLEAN}; do
+ rm -f ${TFTPBOOT_DIR}/$f
+ done
+
ln -nfs ${DEPLOY_DIR_IMAGE}/at91bootstrap.bin ${TFTPBOOT_DIR}/oe_bootstrap.bin
if [ -f ${DEPLOY_DIR_IMAGE}/at91bootstrap_pmecc_padded.bin ]; then
ln -nfs ${DEPLOY_DIR_IMAGE}/at91bootstrap_pmecc_padded.bin ${TFTPBOOT_DIR}/oe_bootstrap_pmecc_padded.bin