blob: 5cf6f456ae7690c09cce51364d7ce950096cefa9 [file] [log] [blame]
Carmelo Cascone41644362018-08-09 16:56:43 -07001COMPILE_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",
7 "@io_grpc_grpc_java//core",
8 "@io_grpc_grpc_java//netty",
9 "@minimal_json//jar",
10 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
11 #"//lib:libthrift",
12]
13
14BUNDLES = [
15 ":onos-drivers-bmv2",
16 # "//lib:libthrift",
17 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
18]
19
20osgi_jar(
Carmelo Cascone41644362018-08-09 16:56:43 -070021 # FIXME: enable building other classes as soon as we implement BUILD for
22 # protocols/bmv2 (based on Thrift)
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070023 srcs = [
24 "src/main/java/org/onosproject/drivers/bmv2/Bmv2DriversLoader.java",
25 "src/main/java/org/onosproject/drivers/bmv2/Bmv2PipelineProgrammable.java",
26 ],
Carmelo Cascone41644362018-08-09 16:56:43 -070027 resources = glob(["src/main/resources/**"]),
Ray Milkey05d609a2018-08-15 10:27:58 -070028 resources_root = "src/main/resources",
29 deps = COMPILE_DEPS,
Carmelo Cascone41644362018-08-09 16:56:43 -070030)
31
Ray Milkey05d609a2018-08-15 10:27:58 -070032onos_app(
Carmelo Cascone41644362018-08-09 16:56:43 -070033 app_name = "org.onosproject.drivers.bmv2",
Carmelo Cascone41644362018-08-09 16:56:43 -070034 category = "Drivers",
Carmelo Cascone41644362018-08-09 16:56:43 -070035 description = "Adds support for BMv2 devices.",
36 included_bundles = BUNDLES,
37 required_apps = [
Carmelo Cascone0f0abee2019-02-06 17:21:25 -080038 "org.onosproject.drivers.stratum",
Carmelo Cascone41644362018-08-09 16:56:43 -070039 "org.onosproject.drivers.p4runtime",
Carmelo Cascone41644362018-08-09 16:56:43 -070040 "org.onosproject.pipelines.basic",
41 ],
Ray Milkey05d609a2018-08-15 10:27:58 -070042 title = "BMv2 Drivers",
43 url = "http://onosproject.org",
Carmelo Cascone41644362018-08-09 16:56:43 -070044)