Carmelo Cascone | 7d54994b | 2019-06-25 18:20:02 -0700 | [diff] [blame] | 1 | all: fabric fabric-spgw fabric-bng fabric-int fabric-spgw-int fabric-full constants |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 2 | |
Carmelo Cascone | 228092b | 2018-06-15 20:41:10 +0200 | [diff] [blame] | 3 | fabric: |
| 4 | @./bmv2-compile.sh "fabric" "" |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 5 | |
Carmelo Cascone | 228092b | 2018-06-15 20:41:10 +0200 | [diff] [blame] | 6 | fabric-spgw: |
| 7 | @./bmv2-compile.sh "fabric-spgw" "-DWITH_SPGW" |
Carmelo Cascone | b81f4be | 2018-01-16 23:24:01 -0800 | [diff] [blame] | 8 | |
Carmelo Cascone | 4d8785b | 2019-05-31 17:11:26 -0700 | [diff] [blame] | 9 | fabric-bng: |
Daniele Moro | 5a2de71 | 2019-09-24 14:34:07 -0700 | [diff] [blame] | 10 | @./bmv2-compile.sh "fabric-bng" "-DWITH_BNG -DWITHOUT_XCONNECT" |
Carmelo Cascone | 4d8785b | 2019-05-31 17:11:26 -0700 | [diff] [blame] | 11 | |
Jonghwan Hyun | ed478dc | 2018-08-06 15:35:18 +0900 | [diff] [blame] | 12 | fabric-int: |
Carmelo Cascone | 79a3a31 | 2018-08-16 17:14:43 -0700 | [diff] [blame] | 13 | @./bmv2-compile.sh "fabric-int" "-DWITH_INT_SOURCE -DWITH_INT_TRANSIT" |
Jonghwan Hyun | ed478dc | 2018-08-06 15:35:18 +0900 | [diff] [blame] | 14 | |
Carmelo Cascone | 5a8a650 | 2018-09-16 13:52:45 -0700 | [diff] [blame] | 15 | fabric-spgw-int: |
| 16 | @./bmv2-compile.sh "fabric-spgw-int" "-DWITH_SPGW -DWITH_INT_SOURCE -DWITH_INT_TRANSIT" |
| 17 | |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame] | 18 | fabric-full: |
Carmelo Cascone | b5324e7 | 2018-11-25 02:26:32 -0800 | [diff] [blame] | 19 | @./bmv2-compile.sh "fabric-full" " -DWITH_MULTICAST -DWITH_IPV6 \ |
Carmelo Cascone | 4d8785b | 2019-05-31 17:11:26 -0700 | [diff] [blame] | 20 | -DWITH_SIMPLE_NEXT -DWITH_HASHED_NEXT -DWITH_BNG -DWITH_SPGW \ |
Daniele Moro | 5a2de71 | 2019-09-24 14:34:07 -0700 | [diff] [blame] | 21 | -DWITH_INT_SOURCE -DWITH_INT_TRANSIT -DWITH_INT_SINK" |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame] | 22 | |
| 23 | constants: |
pier | fbc71d9 | 2020-06-03 21:42:50 +0200 | [diff] [blame] | 24 | ifndef ONOS_ROOT |
| 25 | $(error ONOS_ROOT is undefined) |
| 26 | endif |
Carmelo Cascone | 4d8785b | 2019-05-31 17:11:26 -0700 | [diff] [blame] | 27 | docker run -v $(ONOS_ROOT):/onos -w /onos/tools/dev/bin \ |
| 28 | --entrypoint ./onos-gen-p4-constants opennetworking/p4mn:stable \ |
Carmelo Cascone | b1f5cfd | 2020-12-04 16:54:24 -0800 | [diff] [blame] | 29 | -o /onos/pipelines/fabric/api/src/main/java/org/onosproject/pipelines/fabric/FabricConstants.java \ |
Carmelo Cascone | 356ab8b | 2019-09-25 01:02:53 -0700 | [diff] [blame] | 30 | fabric /onos/pipelines/fabric/impl/src/main/resources/p4c-out/fabric-full/bmv2/default/p4info.txt |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame] | 31 | |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 32 | clean: |
Carmelo Cascone | 228092b | 2018-06-15 20:41:10 +0200 | [diff] [blame] | 33 | rm -rf p4c-out/*/bmv2 |