| # 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/config/fuchsia/rules.gni") |
| |
| driver_module("intel-i2c") { |
| configs += [ |
| "//build/config:all_source", |
| "//build/config/fuchsia:enable_zircon_asserts", |
| ] |
| configs += [ "//build/unification/config:zircon-migrated" ] |
| sources = [ |
| "intel-i2c-controller.cc", |
| "intel-i2c-subordinate.cc", |
| ] |
| deps = [ |
| "//sdk/banjo/ddk.protocol.i2c", |
| "//sdk/banjo/ddk.protocol.i2cimpl", |
| "//sdk/banjo/ddk.protocol.pci", |
| "//sdk/fidl/fuchsia.hardware.i2c:fuchsia.hardware.i2c_c", |
| "//src/devices/lib/driver", |
| "//src/devices/lib/mmio", |
| "//src/devices/pci/lib/device-protocol-pci", |
| "//src/lib/ddk", |
| |
| # TODO(fxb/38132): Migrate to the new bind rules and delete the below |
| "//src/lib/ddk:ddk-deprecated-binding-headers", |
| "//zircon/public/lib/fit", |
| "//zircon/public/lib/sync", |
| "//zircon/public/lib/zircon-internal", |
| ] |
| |
| # TODO(fxbug.dev/58161): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-unused-function" ] |
| } |