blob: 784cc6dbef51fb09c2174285b8c631ef6f15f824 [file] [log] [blame]
Carmelo Cascone7d54994b2019-06-25 18:20:02 -07001all: fabric fabric-spgw fabric-bng 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
Carmelo Cascone4d8785b2019-05-31 17:11:26 -07009fabric-bng:
Daniele Moro7c3a0022019-07-12 13:38:34 -070010 @./bmv2-compile.sh "fabric-bng" "-DWITH_BNG -DWITH_DOUBLE_VLAN_TERMINATION -DWITHOUT_XCONNECT"
Carmelo Cascone4d8785b2019-05-31 17:11:26 -070011
Jonghwan Hyuned478dc2018-08-06 15:35:18 +090012fabric-int:
Carmelo Cascone79a3a312018-08-16 17:14:43 -070013 @./bmv2-compile.sh "fabric-int" "-DWITH_INT_SOURCE -DWITH_INT_TRANSIT"
Jonghwan Hyuned478dc2018-08-06 15:35:18 +090014
Carmelo Cascone5a8a6502018-09-16 13:52:45 -070015fabric-spgw-int:
16 @./bmv2-compile.sh "fabric-spgw-int" "-DWITH_SPGW -DWITH_INT_SOURCE -DWITH_INT_TRANSIT"
17
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020018fabric-full:
Carmelo Casconeb5324e72018-11-25 02:26:32 -080019 @./bmv2-compile.sh "fabric-full" " -DWITH_MULTICAST -DWITH_IPV6 \
Carmelo Cascone4d8785b2019-05-31 17:11:26 -070020 -DWITH_SIMPLE_NEXT -DWITH_HASHED_NEXT -DWITH_BNG -DWITH_SPGW \
Daniele Moro7c3a0022019-07-12 13:38:34 -070021 -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK -DWITH_DOUBLE_VLAN_TERMINATION"
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020022
23constants:
Carmelo Cascone4d8785b2019-05-31 17:11:26 -070024 docker run -v $(ONOS_ROOT):/onos -w /onos/tools/dev/bin \
25 --entrypoint ./onos-gen-p4-constants opennetworking/p4mn:stable \
Carmelo Cascone356ab8b2019-09-25 01:02:53 -070026 -o /onos/pipelines/fabric/impl/src/main/java/org/onosproject/pipelines/fabric/impl/behaviour/FabricConstants.java \
27 fabric /onos/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-full/bmv2/default/p4info.txt
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020028
Yi Tsengbe342052017-11-03 10:21:23 -070029clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020030 rm -rf p4c-out/*/bmv2