Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 1 | BMV2_CPU_PORT=255 |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 2 | |
Carmelo Cascone | b531b68 | 2018-01-30 17:55:56 -0800 | [diff] [blame] | 3 | BMV2_OPTIONS=-DTARGET_BMV2 -DCPU_PORT=$(BMV2_CPU_PORT) |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 4 | |
Carmelo Cascone | b531b68 | 2018-01-30 17:55:56 -0800 | [diff] [blame] | 5 | all: bmv2 bmv2-spgw |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 6 | |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 7 | bmv2: makedir |
| 8 | p4c-bm2-ss --arch v1model -o p4c-out/bmv2/fabric.json \ |
| 9 | $(BMV2_OPTIONS) \ |
| 10 | --p4runtime-file p4c-out/bmv2/fabric.p4info \ |
| 11 | --p4runtime-format text fabric.p4 |
Yi Tseng | 1d84267 | 2017-11-28 16:06:52 -0800 | [diff] [blame] | 12 | |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 13 | bmv2-spgw: makedir |
| 14 | p4c-bm2-ss --arch v1model -o p4c-out/bmv2/fabric-spgw.json \ |
| 15 | $(BMV2_OPTIONS) -DWITH_SPGW \ |
| 16 | --p4runtime-file p4c-out/bmv2/fabric-spgw.p4info \ |
| 17 | --p4runtime-format text fabric.p4 |
| 18 | |
| 19 | makedir: |
| 20 | mkdir -p p4c-out/bmv2 |
Carmelo Cascone | b81f4be | 2018-01-16 23:24:01 -0800 | [diff] [blame] | 21 | |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 22 | clean: |
Carmelo Cascone | 6af4e17 | 2018-06-15 16:01:30 +0200 | [diff] [blame] | 23 | rm -rf p4c-out/bmv2/* |