blob: 60571d19d954b637034aa2569a9016ac7e31512f [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")
if (is_kernel) {
source_set("code-patches") {
sources = [ "code-patches.cc" ]
public_deps = [ ":headers" ]
deps = [
"//zircon/kernel/arch/x86/retpoline:headers",
"//zircon/kernel/arch/x86/user-copy",
"//zircon/kernel/lib/arch",
"//zircon/kernel/lib/boot-options",
"//zircon/kernel/lib/code-patching",
"//zircon/kernel/lib/ktl",
"//zircon/kernel/lib/libc/string/arch/x86:headers",
"//zircon/system/ulib/hwreg",
]
}
}
library_headers("headers") {
headers = [ "arch/code-patches/case-id.h" ]
public_deps = [ "//zircon/kernel/lib/code-patching:headers" ]
}