blob: 50cf0b49a23480a88006403227694cff349bf9c4 [file] [log] [blame]
# Copyright 2021 The Fuchsia Authors
#
# Use of this source code is governed by a MIT-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/MIT
import("//build/cpp/library_headers.gni")
import("//build/toolchain/toolchain_environment.gni")
if (toolchain_environment == "kernel.phys") {
source_set("code-patches") {
sources = [ "code-patches.cc" ]
deps = [
"//zircon/kernel/arch/arm64/phys:arch-phys-info",
"//zircon/kernel/lib/code-patching",
"//zircon/kernel/phys:handoff",
"//zircon/kernel/phys:symbolize",
]
public_deps = [ ":headers" ]
}
}
# //zircon/kernel/lib/code-patching:headers has this in public_deps because
# <lib/code-patching/code-patches.h> uses <arch/code-patches/case-id.h>.
library_headers("headers") {
headers = [ "arch/code-patches/case-id.h" ]
}