blob: a83bc0f2da4c82e03f7dcf2192303e7129a1749d [file] [log] [blame]
Jonghwan Hyuned478dc2018-08-06 15:35:18 +09001all: fabric fabric-spgw fabric-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 Cascone1e8843f2018-07-19 19:01:12 +020012fabric-full:
Carmelo Cascone79a3a312018-08-16 17:14:43 -070013 @./bmv2-compile.sh "fabric-full" "-DWITH_MULTICAST -DWITH_IPV6 -DWITH_SPGW \
14 -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK"
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020015
16constants:
17 onos-gen-p4-constants \
18 -o $(ONOS_ROOT)/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \
19 fabric p4c-out/fabric-full/bmv2/default/p4info.txt
20
Yi Tsengbe342052017-11-03 10:21:23 -070021clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020022 rm -rf p4c-out/*/bmv2