Skip to content

Commit

Permalink
[nrf fromtree] cmake: clear llvm bintool gapfill property
Browse files Browse the repository at this point in the history
The llvm-objcopy doesn't support a gap-fill argument, therefore clear
the property to remove the error:
> llvm-objcopy: error: unknown argument '--gap-fill'

Signed-off-by: Torsten Rasmussen <[email protected]>
(cherry picked from commit 71fd4d9c98c7fe0845b70693e8daea46c6646b80)
  • Loading branch information
tejlmand committed Dec 3, 2024
1 parent 7bd58cf commit 04742e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmake/bintools/llvm/target_bintools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,8 @@ set_property(TARGET bintools PROPERTY elfconvert_flag_section_remove "--remove-s
set_property(TARGET bintools PROPERTY elfconvert_flag_section_only "--only-section=")
set_property(TARGET bintools PROPERTY elfconvert_flag_section_rename "--rename-section;")

# Note, placing a ';' at the end results in the following param to be a list,
# and hence space separated.
# Thus the command line argument becomes:
# `--gap-file <value>` instead of `--gap-fill<value>` (The latter would result in an error)
set_property(TARGET bintools PROPERTY elfconvert_flag_gapfill "--gap-fill;")
# llvm-objcopy doesn't support gap fill argument.
set_property(TARGET bintools PROPERTY elfconvert_flag_gapfill "")
set_property(TARGET bintools PROPERTY elfconvert_flag_srec_len "--srec-len=")

set_property(TARGET bintools PROPERTY elfconvert_flag_infile "")
Expand Down

0 comments on commit 04742e7

Please sign in to comment.