aboutsummaryrefslogtreecommitdiffstats
path: root/utils/invalidate_sstate.sh
blob: 347e00e48bb28fc47bd1561cd24fd0ea7e6141d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

# This script will call a couple of bitbake targets to clean up the sstate
# (Yocto cache) for some projects.
# Calling this script before each build allows to work around some limitations
# of using the external_src / repo / gerrit workflow.

top_repo_dir=$(dirname $(dirname $(dirname $(readlink -f $0))))

if [ $# -eq 0 ]; then
  cd $top_repo_dir/build
else
  cd $1
fi


bitbake -c cleansstate virtual/kernel
bitbake -c cleansstate u-boot
bitbake -c cleansstate bcm43340-mod
bitbake -c cleansstate edison-image