Skip to content

Commit 3808366

Browse files
committed
lmp/bb-build: only use the sstate-cache mirror when it is necessary
Our build can be divided into two steps: 1 - build only using the sstate-cache 2 - build everything else missing On the step [1] we run bitbake for setscene only tasks and obvious this one is the only one that uses and reads the sstate-cache mirror. The step [2] will have 0% hit of cache available because everything has already been accelerated in the step [1]. In the step [2] everything will be build from scratch and the local sstate-cache will be populated with the new artifacts. This change will improve and significantly reduce the load generated on the sstate-mirror http server by our CI builds. Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
1 parent d6e6b3e commit 3808366

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lmp/bb-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ fi
7878
# Setscene (cache), failures not critical
7979
status "Run bitbake (setscene tasks only)"
8080
bitbake -DD --setscene-only --continue ${IMAGE} || true
81+
# we have now everything from the mirror so we don't need that anymore
82+
echo 'SSTATE_MIRRORS = ""' >> conf/local.conf
8183

8284
# add trap to do some pending operations on exit
8385
trap finish TERM INT EXIT

0 commit comments

Comments
 (0)