32 lines
787 B
Plaintext
32 lines
787 B
Plaintext
|
|
# Use a strange __EMPTY_PATH_, empty string can't be passed as an arg.
|
||
|
|
path_to_bins = "__EMPTY_PATH_"
|
||
|
|
if (host == "llvm") {
|
||
|
|
path_to_bins = llvm_bin_path
|
||
|
|
}
|
||
|
|
|
||
|
|
devtree_compile_script_args = [
|
||
|
|
rebase_path("//firmware/$target_arch/$target_board.odt", root_build_dir),
|
||
|
|
rebase_path("$root_out_dir/firmware/$target_board.obt", root_build_dir),
|
||
|
|
"$target_arch",
|
||
|
|
"$target_board",
|
||
|
|
"$host",
|
||
|
|
"$path_to_bins",
|
||
|
|
]
|
||
|
|
|
||
|
|
action("devtree_compile") {
|
||
|
|
script = "//build/kernel/devtree_compile.py"
|
||
|
|
inputs = [ "//firmware/$target_arch/$target_board.odt" ]
|
||
|
|
outputs = [
|
||
|
|
"$root_out_dir/firmware/$target_board.obt",
|
||
|
|
"$root_out_dir/firmware/$target_board.obto",
|
||
|
|
]
|
||
|
|
args = devtree_compile_script_args
|
||
|
|
}
|
||
|
|
|
||
|
|
group("bootarm64") {
|
||
|
|
deps = [
|
||
|
|
":devtree_compile",
|
||
|
|
"rawImage:rawImage",
|
||
|
|
]
|
||
|
|
}
|