blob: 3c0389f859e7c9e92c6edeb58f9920b231412cb5 [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/bind/bind.gni")
import("//build/drivers.gni")
driver_bind_rules("max98927_bind") {
rules = "meta/max98927.bind"
tests = "meta/tests.json"
deps = [
"//sdk/fidl/fuchsia.hardware.interrupt:fuchsia.hardware.interrupt_bindlib",
"//src/devices/bind/fuchsia.acpi",
]
}
fuchsia_cc_driver("max98927-driver") {
output_name = "max98927"
configs += [
"//build/config:all_source",
"//build/config/fuchsia:enable_zircon_asserts",
]
sources = [ "max98927.cc" ]
deps = [
":max98927_bind",
"//src/devices/i2c/lib/device-protocol-i2c-channel",
"//src/devices/lib/driver",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/sync",
"//zircon/system/ulib/zx",
]
}
fuchsia_driver_component("max98927") {
component_name = "max98927"
deps = [ ":max98927-driver" ]
info = "meta/max98927-info.json"
manifest = "meta/max98927.cml"
}
fuchsia_driver_package("package") {
package_name = "max98927"
driver_components = [ ":max98927" ]
}
group("tests") {
testonly = true
deps = [ ":max98927_bind_test" ]
}