🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

sonic-build

by @rustiqly

Build SONiC (Software for Open Networking in the Cloud) switch images from sonic-buildimage. Use when building VS/ASIC images, configuring build parallelism/...

Versionv1.1.0
Installs2
πŸ’‘ Examples

cd sonic-buildimage
make init
make configure PLATFORM=vs   # or broadcom, mellanox, etc.
make SONIC_BUILD_JOBS=4 target/sonic-vs.img.gz

For dev builds (skip tests): add BUILD_SKIP_TEST=y.

βš™οΈ Configuration

All knobs in rules/config. Override in rules/config.user (gitignored, persists across rebases).

Key Knobs

| Knob | Default | Recommended | Effect | |------|---------|-------------|--------| | SONIC_CONFIG_BUILD_JOBS | 1 | 4 | Parallel top-level package builds | | SONIC_CONFIG_MAKE_JOBS | $(nproc) | default | Compiler threads per package | | BUILD_SKIP_TEST | n | y (dev) | Skip unit tests | | SONIC_BUILD_MEMORY | unset | 24g | Docker --memory β€” contains OOM in container | | SONIC_DPKG_CACHE_METHOD | none | rwcache | Cache .deb packages for incremental builds | | DEFAULT_BUILD_LOG_TIMESTAMP | none | simple | Timestamps in build logs | | SONIC_CONFIG_USE_NATIVE_DOCKERD_FOR_BUILD | unset | y | Host Docker daemon instead of DinD |

Recommended rules/config.user

SONIC_CONFIG_BUILD_JOBS = 4
BUILD_SKIP_TEST = y
SONIC_BUILD_MEMORY = 24g
DEFAULT_BUILD_LOG_TIMESTAMP = simple

View on ClawHub
TERMINAL
clawhub install sonic-build

πŸ§ͺ Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

πŸ” Can't find the right skill?

Search 60,000+ AI agent skills β€” free, no login needed.

Search Skills β†’