blob: b9d6f519b54a6ef557a5954e10fd859bdd7f5dc8 [file] [log] [blame]
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/bazel/drivers/bazel_driver_package.gni")
import("//build/bazel/wrappers.gni")
import("//build/bind/bind.gni")
driver_bind_rules("aml_i2c_bind") {
rules = "meta/aml_i2c.bind"
bind_output = "aml-i2c.bindbc"
tests = "meta/bind_tests.json"
deps = [
"//src/devices/bind/fuchsia.amlogic.platform",
"//src/devices/bind/fuchsia.devicetree",
"//src/devices/bind/fuchsia.gpio",
"//src/devices/bind/fuchsia.platform",
]
}
# Note: Don't add additional bazel tests into this group as it will introduce
# more bazel actions into build graph. Instead, add them into
# //src:bazel_tests
group("tests") {
testonly = true
deps = [ ":aml_i2c_bind_test" ]
}
bazel_driver_package("bazel_package") {
bazel_target = "//src/devices/i2c/drivers/aml-i2c:aml-i2c"
package_name = "aml-i2c"
inputs = [
"aml-i2c.cc",
"aml-i2c.h",
"aml-i2c-regs.h",
]
}