Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 1 | GRPC_VER = '1.3.0' |
| 2 | |
Yi Tseng | 59ef170 | 2017-10-05 23:33:22 -0700 | [diff] [blame] | 3 | remote_jar ( |
| 4 | name = 'thrift', |
| 5 | out = 'thrift-0.10.0.jar', |
| 6 | url = 'mvn:org.apache.thrift:libthrift:jar:0.10.0', |
| 7 | sha1 = '3201c5a6d85d3f030bae5a520abaaf81ef7df037', |
| 8 | maven_coords = 'org.apache.thrift:libthrift:jar:NON-OSGI:0.10.0', |
| 9 | visibility = [ 'PUBLIC' ], |
| 10 | ) |
| 11 | |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 12 | COMPILE_DEPS = [ |
| 13 | '//lib:CORE_DEPS', |
| 14 | '//lib:minimal-json', |
| 15 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
| 16 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 17 | '//drivers/default:onos-drivers-default', |
Carmelo Cascone | ba74023 | 2017-09-06 21:52:08 +0200 | [diff] [blame] | 18 | '//drivers/p4runtime:onos-drivers-p4runtime', |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 19 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 20 | '//lib:grpc-netty-' + GRPC_VER, |
Yi Tseng | 59ef170 | 2017-10-05 23:33:22 -0700 | [diff] [blame] | 21 | ':thrift', |
| 22 | '//providers/general/device:onos-providers-general-device', |
| 23 | '//incubator/api:onos-incubator-api', |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 24 | ] |
| 25 | |
| 26 | BUNDLES = [ |
| 27 | ':onos-drivers-barefoot', |
| 28 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
Yi Tseng | 59ef170 | 2017-10-05 23:33:22 -0700 | [diff] [blame] | 29 | ':thrift', |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 30 | ] |
| 31 | |
| 32 | osgi_jar( |
| 33 | deps = COMPILE_DEPS, |
| 34 | ) |
| 35 | |
| 36 | onos_app ( |
| 37 | app_name = 'org.onosproject.drivers.barefoot', |
Carmelo Cascone | ba74023 | 2017-09-06 21:52:08 +0200 | [diff] [blame] | 38 | title = 'Barefoot Drivers', |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 39 | category = 'Drivers', |
| 40 | url = 'http://onosproject.org', |
Carmelo Cascone | ba74023 | 2017-09-06 21:52:08 +0200 | [diff] [blame] | 41 | description = 'Adds support for Barefoot-based devices', |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 42 | included_bundles = BUNDLES, |
| 43 | required_apps = [ |
Andrea Campanella | bf1301d | 2017-08-07 18:33:52 +0200 | [diff] [blame] | 44 | 'org.onosproject.drivers.p4runtime' |
| 45 | ], |
| 46 | ) |