blob: a4cb462ccb5a969dd38a2a84d86811edea10bf81 [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/config/fuchsia/rules.gni")
driver_module("aml-rawnand") {
deps = [
":common",
"//src/devices/lib/driver",
]
}
bind_rules("aml-rawnand-bind") {
rules = "aml-rawnand.bind"
output = "aml-rawnand-bind.h"
tests = "bind-tests.json"
deps = [
"//src/devices/bind/amlogic.platform",
"//src/devices/bind/fuchsia.platform",
]
}
source_set("common") {
configs += [ "//build/config:all_source" ]
sources = [
"aml-rawnand.cc",
"onfi.cc",
]
public_deps = [
":aml-rawnand-bind",
"//sdk/banjo/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_banjo_cpp",
"//sdk/banjo/fuchsia.hardware.rawnand",
"//sdk/fidl/fuchsia.hardware.nand:fuchsia.hardware.nand_c",
"//src/devices/bus/lib/device-protocol-pdev",
"//src/devices/bus/lib/device-protocol-platform-device",
"//src/devices/lib/amlogic",
"//src/devices/lib/mmio",
"//src/lib/ddk",
"//src/lib/ddktl",
"//zircon/public/lib/fbl",
"//zircon/public/lib/sync",
"//zircon/public/lib/zx",
"//zircon/system/ulib/fzl",
]
}
group("tests") {
testonly = true
deps = [
":aml-rawnand-bind_test",
"tests",
]
}