[build] add support for 2 stage rootfs build (#15924)

This adds optimization for the SONiC image build by splitting the final build step into two stages. It allows running the first stage in parallel, improving build time.

The optimization is enabled via new rules/config flag ENABLE_RFS_SPLIT_BUILD (disabled by default)

- Why I did it
To improve a build time.

- How I did it
Added a logic to run build_debian.sh in two stages, transferring the progress via a new build artifact.

- How to verify it
make ENABLE_RFS_SPLIT_BUILD=y SONIC_BUILD_JOBS=32 target/<IMAGE_NAME>.bin

Signed-off-by: Yakiv Huryk <yhuryk@nvidia.com>
This commit is contained in:
Yakiv Huryk
2023-10-11 09:33:17 +03:00
committed by GitHub
parent 7059f42385
commit 6cb8893180
4 changed files with 177 additions and 23 deletions

View File

@@ -143,7 +143,6 @@ SONIC_DBG_DOCKERS += $(2)
endef
###############################################################################
## Utility functions
###############################################################################