Skip to content

Commit

Permalink
silabs changes, flashable changes
Browse files Browse the repository at this point in the history
  • Loading branch information
feasel0 committed Aug 19, 2024
1 parent 03023dc commit 2473a8a
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions build/toolchain/flashable_executable.gni
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ template("gen_flashing_script") {
template("flashable_executable") {
executable_target = "$target_name.executable"

# if (!defined(invoker.output_dir)) {
# invoker.output_dir = root_out_dir
# }
if (!defined(invoker.output_dir)) {
invoker.output_dir = root_out_dir
}

if (defined(invoker.flashing_script_name)) {
# Generating the flashing script is the final target.
Expand Down Expand Up @@ -116,8 +116,7 @@ template("flashable_executable") {

# Invoker can stop this template from creating the flashbundle.txt by setting flashbundle_name to empty string.
if (flashbundle_name != "") {
#write_runtime_deps = "${invoker.output_dir}/${flashbundle_name}"
write_runtime_deps = "${root_out_dir}/${flashbundle_name}"
write_runtime_deps = "${invoker.output_dir}/${flashbundle_name}"
}
}

Expand All @@ -132,10 +131,8 @@ template("flashable_executable") {
objcopy = invoker.objcopy

objcopy_convert(image_target) {
#conversion_input = "${invoker.output_dir}/${invoker.output_name}"
#conversion_output = "${invoker.output_dir}/${image_name}"
conversion_input = "${root_out_dir}/${invoker.output_name}"
conversion_output = "${root_out_dir}/${image_name}"
conversion_input = "${invoker.output_dir}/${invoker.output_name}"
conversion_output = "${invoker.output_dir}/${image_name}"
conversion_target_format = image_format
deps = [ ":$executable_target" ]
}
Expand All @@ -151,9 +148,8 @@ template("flashable_executable") {
gen_flashing_script("$target_name.flashing") {
flashing_script_generator = invoker.flashing_script_generator
flashing_script_inputs = invoker.flashing_script_inputs
# flashing_script_name =
# "${invoker.output_dir}/${invoker.flashing_script_name}"
flashing_script_name = "$root_out_dir/${invoker.flashing_script_name}"
flashing_script_name =
"${invoker.output_dir}/${invoker.flashing_script_name}"
if (defined(invoker.flashing_options)) {
flashing_options = invoker.flashing_options
} else {
Expand All @@ -167,8 +163,7 @@ template("flashable_executable") {

flashing_options += [
"--application",
#rebase_path(image_name, invoker.output_dir, invoker.output_dir),
rebase_path(image_name, root_out_dir, root_out_dir),
rebase_path(image_name, invoker.output_dir, invoker.output_dir),
]
data_deps = [ ":$image_target" ]
}
Expand Down

0 comments on commit 2473a8a

Please sign in to comment.