Carmelo Cascone | 776be38 | 2018-12-12 19:03:57 -0800 | [diff] [blame] | 1 | all: basic int constants |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 2 | |
| 3 | basic: basic.p4 |
CyberHasH | 4c527e3 | 2019-10-05 02:37:50 +0800 | [diff] [blame] | 4 | @./bmv2-compile.sh "basic" "" |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 5 | |
Jonghwan Hyun | 4a9a671 | 2017-11-13 14:43:55 -0800 | [diff] [blame] | 6 | int: int.p4 |
CyberHasH | 4c527e3 | 2019-10-05 02:37:50 +0800 | [diff] [blame] | 7 | @./bmv2-compile.sh "int" "-DTARGET_BMV2" |
Jonghwan Hyun | 4a9a671 | 2017-11-13 14:43:55 -0800 | [diff] [blame] | 8 | |
Carmelo Cascone | 776be38 | 2018-12-12 19:03:57 -0800 | [diff] [blame] | 9 | constants: |
CyberHasH | 4c527e3 | 2019-10-05 02:37:50 +0800 | [diff] [blame] | 10 | docker run -v $(ONOS_ROOT):/onos -w /onos/tools/dev/bin \ |
| 11 | --entrypoint ./onos-gen-p4-constants opennetworking/p4mn:stable \ |
| 12 | -o /onos/pipelines/basic/src/main/java/org/onosproject/pipelines/basic/BasicConstants.java \ |
| 13 | basic /onos/pipelines/basic/src/main/resources/p4c-out/bmv2/basic_p4info.txt |
Carmelo Cascone | 776be38 | 2018-12-12 19:03:57 -0800 | [diff] [blame] | 14 | |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 15 | clean: |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 16 | rm -rf p4c-out/bmv2/* |