blob: 2760bf0c3e9548fa8cea7cc51da4adfc64c82127 [file] [log] [blame]
Carmelo Cascone1e8843f2018-07-19 19:01:12 +02001all: fabric fabric-spgw 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 Cascone1e8843f2018-07-19 19:01:12 +02009fabric-full:
10 @./bmv2-compile.sh "fabric-full" "-DWITH_MULTICAST -DWITH_IPV6 -DWITH_SPGW"
11
12constants:
13 onos-gen-p4-constants \
14 -o $(ONOS_ROOT)/pipelines/fabric/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \
15 fabric p4c-out/fabric-full/bmv2/default/p4info.txt
16
Yi Tsengbe342052017-11-03 10:21:23 -070017clean:
Carmelo Cascone228092b2018-06-15 20:41:10 +020018 rm -rf p4c-out/*/bmv2