blob: 508bb1dee92a912d3d97a78c729f47d730d4c84e [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:
10 @./bmv2-compile.sh "fabric-int" "-DWITH_INT"
11
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020012fabric-full:
Jonghwan Hyuned478dc2018-08-06 15:35:18 +090013 @./bmv2-compile.sh "fabric-full" "-DWITH_MULTICAST -DWITH_IPV6 -DWITH_SPGW -DWITH_INT"
Carmelo Cascone1e8843f2018-07-19 19:01:12 +020014
15constants:
16 onos-gen-p4-constants \
17 -o $(ONOS_ROOT)/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \
18 fabric p4c-out/fabric-full/bmv2/default/p4info.txt
19
Yi Tsengbe342052017-11-03 10:21:23 -070020clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020021 rm -rf p4c-out/*/bmv2