blob: 9c27e0914b9575c84ce0c61022b2ba144df6a39a [file] [log] [blame]
Carmelo Casconeb1936bd2017-12-12 14:42:27 -08001GRPC_VER = '1.3.1'
Carmelo Cascone59f57de2017-07-11 19:55:09 -04002
Andrea Campanella241896c2017-05-10 13:11:04 -07003COMPILE_DEPS = [
4 '//lib:CORE_DEPS',
Ray Milkey446f4462017-08-17 15:36:01 -07005 '//lib:minimal-json',
Esin Karaman971fb7f2017-12-28 13:44:52 +00006 '//lib:KRYO',
7 '//lib:JACKSON',
8 '//lib:libthrift',
Carmelo Cascone59f57de2017-07-11 19:55:09 -04009 '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
Carmelo Cascone87892e22017-11-13 16:01:29 -080010 '//protocols/p4runtime/model:onos-protocols-p4runtime-model',
Esin Karaman971fb7f2017-12-28 13:44:52 +000011 '//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api',
Carmelo Casconea62ac3d2017-08-30 03:19:00 +020012 '//drivers/p4runtime:onos-drivers-p4runtime',
Carmelo Casconedda88d02017-07-19 22:42:01 -040013 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
14 '//lib:grpc-netty-' + GRPC_VER,
Carmelo Casconeca94bcf2017-10-27 14:16:59 -070015 '//pipelines/basic:onos-pipelines-basic',
Esin Karaman971fb7f2017-12-28 13:44:52 +000016 '//core/store/serializers:onos-core-serializers',
Andrea Campanella241896c2017-05-10 13:11:04 -070017]
18
19BUNDLES = [
20 ':onos-drivers-bmv2',
Esin Karaman971fb7f2017-12-28 13:44:52 +000021 '//lib:libthrift',
22 '//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api',
Carmelo Casconedda88d02017-07-19 22:42:01 -040023]
Andrea Campanella241896c2017-05-10 13:11:04 -070024
Carmelo Casconedda88d02017-07-19 22:42:01 -040025osgi_jar(
Andrea Campanella241896c2017-05-10 13:11:04 -070026 deps = COMPILE_DEPS,
Esin Karaman971fb7f2017-12-28 13:44:52 +000027 resources_root = 'src/main/resources',
28 resources = glob(['src/main/resources/**']),
Andrea Campanella241896c2017-05-10 13:11:04 -070029)
30
31onos_app (
32 app_name = 'org.onosproject.drivers.bmv2',
Thomas Vachuskab0029682017-08-23 17:55:53 -070033 title = 'BMv2 Drivers',
Andrea Campanella241896c2017-05-10 13:11:04 -070034 category = 'Drivers',
35 url = 'http://onosproject.org',
Thomas Vachuskab0029682017-08-23 17:55:53 -070036 description = 'Adds support for BMv2 P4 devices.',
Andrea Campanella241896c2017-05-10 13:11:04 -070037 included_bundles = BUNDLES,
Andrea Campanella378e21a2017-06-07 12:09:59 +020038 required_apps = [
Carmelo Casconeef826f92017-09-05 19:43:35 +020039 'org.onosproject.drivers.p4runtime',
Andrea Campanellabf9e5ce2017-12-06 14:26:36 +010040 'org.onosproject.drivers.gnmi',
Carmelo Casconeca94bcf2017-10-27 14:16:59 -070041 'org.onosproject.pipelines.basic',
Andrea Campanella378e21a2017-06-07 12:09:59 +020042 ],
Carmelo Cascone87892e22017-11-13 16:01:29 -080043)