To build a simulator image, do the following within the container:
- Change directory to the main folder for build
scripts:
cd /sw/nic
- Clean the build
directory:
ARCH=x86_64 ./tools/build.sh --p4_program flow_offload --clean
- Build the simulator
image:
ARCH=x86_64 ./tools/build.sh --p4_program flow_offload
The full syntax for the tools/build.sh command is:
# tools/build.sh --help
ARCH=<architecture> --p4_program <p4_program> [--clean] [--create-sim-target]
Architectures: aarch64
x86_64 (default)
--p4_program: hello_world
flow_offload
classic_host_offload
classic_rtr flow_offload
flow_ha
flow_offload
sdn_policy_offload
--clean: cleaning target and build directories (optional)
--create-sim-target: build the rudra target sim