blob: c6a6d76ba7ab7ceb8ab4a0cacd7be56dc3bc686a [file] [log] [blame]
Carmelo Cascone04098db2018-01-30 18:10:32 -08001P4_SRC_DIR=$(ONOS_ROOT)/pipelines/fabric/src/main/resources
2
3MAVERICKS_CPU_PORT=320
Carmelo Cascone0fbc9082018-02-11 13:02:37 -08004MONTARA_CPU_PORT=192
Carmelo Cascone04098db2018-01-30 18:10:32 -08005
6MAVERICKS_OPTIONS=-DCPU_PORT=$(MAVERICKS_CPU_PORT)
Carmelo Cascone0fbc9082018-02-11 13:02:37 -08007MONTARA_OPTIONS=-DCPU_PORT=$(MONTARA_CPU_PORT)
Carmelo Cascone04098db2018-01-30 18:10:32 -08008
Carmelo Cascone04098db2018-01-30 18:10:32 -08009fabric-tofino:
Carmelo Casconea14a5d32018-05-30 16:56:04 -070010 ./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
11 "" fabric
Carmelo Cascone04098db2018-01-30 18:10:32 -080012
13fabric-spgw-tofino:
Carmelo Casconea14a5d32018-05-30 16:56:04 -070014 ./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
15 "-DWITH_SPGW" fabric-spgw
Carmelo Cascone04098db2018-01-30 18:10:32 -080016
Carmelo Casconee2c568f2018-03-24 15:03:40 -070017fabric-spgw-int-tofino: fabric-spgw-int-1-tofino fabric-spgw-int-2-tofino
18
19fabric-spgw-int-1-tofino:
Carmelo Casconea14a5d32018-05-30 16:56:04 -070020 ./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
21 "-DWITH_SPGW -DWITH_INT_TRANSIT -DINT_SWITCH_ID=100" fabric-spgw-int-1
Carmelo Casconee2c568f2018-03-24 15:03:40 -070022
23fabric-spgw-int-2-tofino:
Carmelo Casconea14a5d32018-05-30 16:56:04 -070024 ./fabric-compile.sh "$(P4_SRC_DIR)" "$(MAVERICKS_OPTIONS)" "$(MONTARA_OPTIONS)" \
25 "-DWITH_SPGW -DWITH_INT_TRANSIT -DINT_SWITCH_ID=200" fabric-spgw-int-2
Carmelo Cascone04888222018-03-19 22:18:12 -070026
Carmelo Cascone04098db2018-01-30 18:10:32 -080027clean:
28 rm -rf p4c-out/*