blob: 11cdba97fefb22eed39b27477f3a43a0dfb76eab [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 Moro5a2de712019-09-24 14:34:07 -070010 @./bmv2-compile.sh "fabric-bng" "-DWITH_BNG -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 Moro5a2de712019-09-24 14:34:07 -070021 -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK"
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020022
23constants:
pierfbc71d92020-06-03 21:42:50 +020024ifndef ONOS_ROOT
25 $(error ONOS_ROOT is undefined)
26endif
Carmelo Cascone4d8785b2019-05-31 17:11:26 -070027 docker run -v $(ONOS_ROOT):/onos -w /onos/tools/dev/bin \
28 --entrypoint ./onos-gen-p4-constants opennetworking/p4mn:stable \
Carmelo Casconeb1f5cfd2020-12-04 16:54:24 -080029 -o /onos/pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \
Carmelo Cascone356ab8b2019-09-25 01:02:53 -070030 fabric /onos/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-full/bmv2/default/p4info.txt
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020031
Yi Tsengbe342052017-11-03 10:21:23 -070032clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020033 rm -rf p4c-out/*/bmv2