Skip to content

Commit

Permalink
[buster]: enable rwcache for build image build
Browse files Browse the repository at this point in the history
Signed-off-by: Guohan Lu <lguohan@gmail.com>
  • Loading branch information
lguohan committed Apr 20, 2020
1 parent 8d7591a commit 4712082
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jenkins/broadcom/buildimage-brcm-buster/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ pipeline {
git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $(realpath --relative-to=. $(cut -d" " -f2 .git))" > .git'
make configure PLATFORM=broadcom
make SONIC_CONFIG_BUILD_JOBS=1 INSTALL_DEBUG_TOOLS=y target/sonic-broadcom.bin
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rwcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/broadcom"
make SONIC_CONFIG_BUILD_JOBS=1 INSTALL_DEBUG_TOOLS=y $CACHE_OPTIONS target/sonic-broadcom.bin
# make SONIC_CONFIG_BUILD_JOBS=1 target/sonic-aboot-broadcom.swi
# make SONIC_CONFIG_BUILD_JOBS=1 target/sonic-broadcom.raw
# make SONIC_CONFIG_BUILD_JOBS=1 target/docker-syncd-brcm-rpc.gz target/docker-ptf-brcm.gz target/docker-saiserver-brcm.gz
Expand Down
3 changes: 2 additions & 1 deletion jenkins/vs/buildimage-vs-image-buster/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ make configure PLATFORM=vs
sudo bash -c "echo 1 > /proc/sys/vm/compact_memory"
make SONIC_CONFIG_BUILD_JOBS=1 target/sonic-vs.img.gz
CACHE_OPTIONS="SONIC_DPKG_CACHE_METHOD=rwcache SONIC_DPKG_CACHE_SOURCE=/nfs/dpkg_cache/vs"
make SONIC_CONFIG_BUILD_JOBS=1 $CACHE_OPTIONS target/sonic-vs.img.gz
rm -rf ../target
mv target ../
Expand Down

0 comments on commit 4712082

Please sign in to comment.