Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 1 | COMPILE_DEPS = CORE_DEPS + KRYO + JACKSON + [ |
| 2 | "//core/store/serializers:onos-core-serializers", |
| 3 | "//drivers/p4runtime:onos-drivers-p4runtime", |
| 4 | "//pipelines/basic:onos-pipelines-basic", |
| 5 | "//protocols/p4runtime/api:onos-protocols-p4runtime-api", |
| 6 | "//protocols/p4runtime/model:onos-protocols-p4runtime-model", |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame^] | 7 | "//deps:io_grpc_grpc_api_context", |
| 8 | "//deps:io_grpc_grpc_netty", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 9 | "@minimal_json//jar", |
| 10 | # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api", |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame^] | 11 | #"//deps:libthrift", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | BUNDLES = [ |
| 15 | ":onos-drivers-bmv2", |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame^] | 16 | # "//deps:libthrift", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 17 | # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api", |
| 18 | ] |
| 19 | |
| 20 | osgi_jar( |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 21 | # FIXME: enable building other classes as soon as we implement BUILD for |
| 22 | # protocols/bmv2 (based on Thrift) |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 23 | srcs = [ |
| 24 | "src/main/java/org/onosproject/drivers/bmv2/Bmv2DriversLoader.java", |
| 25 | "src/main/java/org/onosproject/drivers/bmv2/Bmv2PipelineProgrammable.java", |
| 26 | ], |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 27 | resources = glob(["src/main/resources/**"]), |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 28 | resources_root = "src/main/resources", |
| 29 | deps = COMPILE_DEPS, |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 30 | ) |
| 31 | |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 32 | onos_app( |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 33 | app_name = "org.onosproject.drivers.bmv2", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 34 | category = "Drivers", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 35 | description = "Adds support for BMv2 devices.", |
| 36 | included_bundles = BUNDLES, |
| 37 | required_apps = [ |
Carmelo Cascone | 1678b0c | 2019-02-06 17:21:25 -0800 | [diff] [blame] | 38 | "org.onosproject.drivers.stratum", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 39 | "org.onosproject.drivers.p4runtime", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 40 | "org.onosproject.pipelines.basic", |
| 41 | ], |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 42 | title = "BMv2 Drivers", |
| 43 | url = "http://onosproject.org", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 44 | ) |