| # Copyright 2020 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/testing/boot_tests/zbi_test_executable.gni") |
| import("//build/zbi/kernel_cmdline.gni") |
| |
| zbi_test_executable("mexec-zbi-test-entry") { |
| sources = [ "mexec-zbi-test-entry.cc" ] |
| include_dirs = [ "//" ] |
| deps = [ |
| ":zbi-test-entry", |
| "//src/bringup/lib/mexec", |
| "//src/zircon/testing/standalone-test", |
| ] |
| } |
| |
| kernel_cmdline("kernel.enable-debugging-syscalls--true") { |
| args = [ "kernel.enable-debugging-syscalls=true" ] |
| } |
| |
| source_set("zbi-test-entry") { |
| testonly = true |
| |
| public = [ "zbi-test-entry.h" ] |
| public_deps = [ "//zircon/system/ulib/zx" ] |
| |
| sources = [ "zbi-test-entry.cc" ] |
| deps = [ |
| "//src/bringup/lib/mexec", |
| "//src/lib/zbitl", |
| "//src/zircon/testing/standalone-test", |
| "//zircon/system/ulib/zx", |
| ] |
| |
| data_deps = [ ":kernel.enable-debugging-syscalls--true" ] |
| } |