Skip to content

Commit 4c76188

Browse files
committed
Add deletion of eventual old petalinux project
Signed-off-by: Holotronic <producer@holotronic.dk>
1 parent 7a0edc4 commit 4c76188

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

HW/VivadoProjects/make_mpsoc_boot.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ case $1 in
3939
;;
4040
esac
4141

42+
# Delete any old project artifacts folder
43+
PRJ_DIR_CREATED=./"$1"-mk-2019.1
44+
[ -d "$PRJ_DIR_CREATED" ] && rm -r "$PRJ_DIR_CREATED"
45+
4246
petalinux-create -t project -s "$1"-mk-2019.1.bsp
4347
cd "$1"-mk-2019.1
4448
time petalinux-config --get-hw-description=../"$1"_"$BOARD_PART"_created/"$1"_"$BOARD_PART".sdk --silentconfig

0 commit comments

Comments
 (0)