Building a Simulator Image

SDN Policy Offload Reference Pipeline User Guide (UG1668)

Document ID
UG1668
Release Date
2024-02-15
Revision
1.1 English

To build a simulator image, do the following within the container:

  1. Change directory to the main folder for build scripts:
    cd /sw/nic
  2. Clean the build directory:
    ARCH=x86_64 ./tools/build.sh --p4_program sdn_policy_offload --clean
  3. Build the simulator image:
    ARCH=x86_64 ./tools/build.sh --p4_program sdn_policy_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
                          sdn_policy_offload
                          sdn_policy_offload
    --clean:              cleaning target and build directories (optional)
    --create-sim-target:  build the rudra target sim