| GRPC_VER = '1.3.1' |
| |
| COMPILE_DEPS = [ |
| '//lib:CORE_DEPS', |
| '//lib:minimal-json', |
| '//lib:KRYO', |
| '//lib:JACKSON', |
| '//lib:libthrift', |
| '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| '//protocols/p4runtime/model:onos-protocols-p4runtime-model', |
| '//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api', |
| '//drivers/p4runtime:onos-drivers-p4runtime', |
| '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| '//lib:grpc-netty-' + GRPC_VER, |
| '//pipelines/basic:onos-pipelines-basic', |
| '//core/store/serializers:onos-core-serializers', |
| ] |
| |
| BUNDLES = [ |
| ':onos-drivers-bmv2', |
| '//lib:libthrift', |
| '//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api', |
| ] |
| |
| osgi_jar( |
| deps = COMPILE_DEPS, |
| resources_root = 'src/main/resources', |
| resources = glob(['src/main/resources/**']), |
| ) |
| |
| onos_app ( |
| app_name = 'org.onosproject.drivers.bmv2', |
| title = 'BMv2 Drivers', |
| category = 'Drivers', |
| url = 'http://onosproject.org', |
| description = 'Adds support for BMv2 P4 devices.', |
| included_bundles = BUNDLES, |
| required_apps = [ |
| 'org.onosproject.drivers.p4runtime', |
| 'org.onosproject.drivers.gnmi', |
| 'org.onosproject.pipelines.basic', |
| ], |
| ) |