blob: 4daca7229920b387e1f10f476ac2bce2392414e1 [file] [log] [blame]
Carmelo Cascone5a8a6502018-09-16 13:52:45 -07001all: fabric fabric-spgw fabric-int fabric-spgw-int fabric-full constants
Yi Tsengbe342052017-11-03 10:21:23 -07002
Carmelo Cascone228092b2018-06-15 20:41:10 +02003fabric:
4 @./bmv2-compile.sh "fabric" ""
Yi Tseng1d842672017-11-28 16:06:52 -08005
Carmelo Cascone228092b2018-06-15 20:41:10 +02006fabric-spgw:
7 @./bmv2-compile.sh "fabric-spgw" "-DWITH_SPGW"
Carmelo Casconeb81f4be2018-01-16 23:24:01 -08008
Jonghwan Hyuned478dc2018-08-06 15:35:18 +09009fabric-int:
Carmelo Cascone79a3a312018-08-16 17:14:43 -070010 @./bmv2-compile.sh "fabric-int" "-DWITH_INT_SOURCE -DWITH_INT_TRANSIT"
Jonghwan Hyuned478dc2018-08-06 15:35:18 +090011
Carmelo Cascone5a8a6502018-09-16 13:52:45 -070012fabric-spgw-int:
13 @./bmv2-compile.sh "fabric-spgw-int" "-DWITH_SPGW -DWITH_INT_SOURCE -DWITH_INT_TRANSIT"
14
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020015fabric-full:
Carmelo Casconeb5324e72018-11-25 02:26:32 -080016 @./bmv2-compile.sh "fabric-full" " -DWITH_MULTICAST -DWITH_IPV6 \
17 -DWITH_SIMPLE_NEXT -DWITH_HASHED_NEXT -DWITH_SPGW \
Carmelo Cascone79a3a312018-08-16 17:14:43 -070018 -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK"
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020019
20constants:
21 onos-gen-p4-constants \
22 -o $(ONOS_ROOT)/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \
23 fabric p4c-out/fabric-full/bmv2/default/p4info.txt
24
Yi Tsengbe342052017-11-03 10:21:23 -070025clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020026 rm -rf p4c-out/*/bmv2