blob: c6a6d76ba7ab7ceb8ab4a0cacd7be56dc3bc686a [file] [log] [blame]
P4_SRC_DIR=$(ONOS_ROOT)/pipelines/fabric/src/main/resources
MAVERICKS_CPU_PORT=320
MONTARA_CPU_PORT=192
MAVERICKS_OPTIONS=-DCPU_PORT=$(MAVERICKS_CPU_PORT)
MONTARA_OPTIONS=-DCPU_PORT=$(MONTARA_CPU_PORT)
fabric-tofino:
./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
"" fabric
fabric-spgw-tofino:
./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
"-DWITH_SPGW" fabric-spgw
fabric-spgw-int-tofino: fabric-spgw-int-1-tofino fabric-spgw-int-2-tofino
fabric-spgw-int-1-tofino:
./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
"-DWITH_SPGW -DWITH_INT_TRANSIT -DINT_SWITCH_ID=100" fabric-spgw-int-1
fabric-spgw-int-2-tofino:
./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
"-DWITH_SPGW -DWITH_INT_TRANSIT -DINT_SWITCH_ID=200" fabric-spgw-int-2
clean:
rm -rf p4c-out/*