blob: 82b12c8fb80072a1011a45dcbd17ab0e5b8253e4 [file] [log] [blame]
# Hypervisor specific code.
source_set("src") {
sources = [
"alloc.c",
"api.c",
"cpio.c",
"cpu.c",
"fdt_handler.c",
"load.c",
"main.c",
"mm.c",
"vm.c",
]
deps = [
":common",
":fdt",
":memiter",
]
if (is_debug) {
deps += [ ":common_debug" ]
}
}
# Code that is not specific to a certain image so can be shared.
source_set("common") {
sources = [
"std.c",
]
}
# Debug code that is not specific to a certain image so can be shared.
source_set("common_debug") {
sources = [
"dlog.c",
]
deps = [
":common",
"//src/arch/${arch}:putchar",
]
}
source_set("fdt") {
sources = [
"fdt.c",
]
deps = [
":common",
":common_debug",
]
}
source_set("memiter") {
sources = [
"memiter.c",
]
}
executable("unit_tests") {
testonly = true
sources = [
"fdt_test.cc",
]
deps = [
":fdt",
"//third_party:gtest_main",
]
}