blob: 30369a4e00ba47c42756b1f1fe1fc50fbcde385b [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.
##########################################
# Though under //zircon, this build file #
# is meant to be used in the Fuchsia GN #
# build. #
# See fxbug.dev/36139. #
##########################################
# for 'platform_enable_user_pci'
import("//src/devices/bus/drivers/pci/pci.gni")
assert(!defined(zx) || zx != "/",
"This file can only be used in the Fuchsia GN build.")
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" ]
}
}