Skip to content

Commit 68bf732

Browse files
committed
lmp/bb-build: only use the sstate-cache mirror on the first step
On the fisrt build step we run bitbake for setscene only tasks and obvious this one is the only one that use the reads and use the sstate-cache. The second step will be a 0% hit of available because everything has already been accelerated in the first step. In this second step everything will be build from scratch and the local sstate-cache populadted with the artifacts. This 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 65a53fe commit 68bf732

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
@@ -77,6 +77,8 @@ fi
7777
# Setscene (cache), failures not critical
7878
status "Run bitbake (setscene tasks only)"
7979
bitbake -DD --setscene-only --continue ${IMAGE} || true
80+
# we have now everything from the mirror so we don't need that anymore
81+
echo 'SSTATE_MIRRORS = ""' >> conf/local.conf
8082

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

0 commit comments

Comments
 (0)