blob: 55685b9ec1da718e7b8c1ba0f1b8a8fef16ad54a [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.
# for 'platform_enable_user_pci'
import("//src/devices/bus/drivers/pci/pci.gni")
if (current_cpu == "x64") {
zircon_cpu = "x86"
} else if (current_cpu != "") {
zircon_cpu = current_cpu
}
source_set("bad-syscall") {
configs += [ "//build/unification/config:zircon-migrated" ]
testonly = true
sources = [
"bad-syscall.cc",
"syscall.S",
]
include_dirs = [ "//zircon/kernel/arch/$zircon_cpu/include" ]
deps = [
"//sdk/lib/fdio",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/syscalls-headers",
]
if (platform_enable_user_pci) {
defines = [ "ENABLE_USER_PCI" ]
}
}