Skip to content

Commit

Permalink
Add EFS Purge check to buildspecs.
Browse files Browse the repository at this point in the history
  • Loading branch information
nateglims committed Jan 9, 2024
1 parent 45f22e4 commit 5ece697
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source-repo/kas/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ phases:
commands:
- chown -R yoctouser /sstate-cache
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/meta-aws-demo/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- git clone https://github.com/aws4embeddedlinux/meta-aws-demos -b v0.0.1
Expand Down
6 changes: 6 additions & 0 deletions source-repo/nxp-imx/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/poky-ami/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/poky/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ phases:
- chown -R yoctouser /downloads
- chmod 755 /sstate-cache
- chmod 755 /downloads
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
- echo Build started on `date`
Expand Down
6 changes: 6 additions & 0 deletions source-repo/renesas/build.buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ phases:
- chmod 755 /sstate-cache
- chmod 755 /downloads
- chmod 755 build.sh
- |
if [[ -n "$PURGE_EFS" ]] ; then
echo "Starting EFS purge."
rm -rvf /downloads/*
rm -rvf /sstate-cache/*
fi
build:
commands:
# BB_ENV_EXTRAWHITE is still used in Dunfell release and was renamed afterwards to BB_ENV_PASSTHROUGH_ADDITIONS
Expand Down

0 comments on commit 5ece697

Please sign in to comment.