blob: a9342a6ffd192061fb23bccc881ca66b8d661259 [file] [log] [blame]
Carmelo Cascone776be382018-12-12 19:03:57 -08001all: basic int constants
Carmelo Casconeca94bcf2017-10-27 14:16:59 -07002
3basic: basic.p4
CyberHasH246dadc2019-10-05 02:37:50 +08004 @./bmv2-compile.sh "basic" ""
Carmelo Casconeca94bcf2017-10-27 14:16:59 -07005
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -08006int: int.p4
CyberHasH246dadc2019-10-05 02:37:50 +08007 @./bmv2-compile.sh "int" "-DTARGET_BMV2"
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -08008
Carmelo Cascone776be382018-12-12 19:03:57 -08009constants:
CyberHasH246dadc2019-10-05 02:37:50 +080010 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 Cascone776be382018-12-12 19:03:57 -080014
Carmelo Casconeca94bcf2017-10-27 14:16:59 -070015clean:
Carmelo Cascone6af4e172018-06-15 16:01:30 +020016 rm -rf p4c-out/bmv2/*