extensions.cmake: don't leak absolute paths in snippets-*.ld comment
Make headers look like this instead: /* From ${ZEPHYR_BASE}/arch/common/isr_tables.ld: */ Besides being shorter and more "private", this makes the content of snippets-*.ld files the same no matter who built them and where. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
8b9b7e7c8a
commit
d1b4da96e1
1 changed files with 3 additions and 1 deletions
|
@ -835,7 +835,9 @@ function(zephyr_linker_sources location)
|
||||||
|
|
||||||
# Append the file contents to the relevant destination file.
|
# Append the file contents to the relevant destination file.
|
||||||
file(READ ${path} snippet)
|
file(READ ${path} snippet)
|
||||||
file(APPEND ${snippet_path} "\n/* From ${path}: */\n" "${snippet}\n")
|
file(RELATIVE_PATH relpath ${ZEPHYR_BASE} ${path})
|
||||||
|
file(APPEND ${snippet_path}
|
||||||
|
"\n/* From \${ZEPHYR_BASE}/${relpath}: */\n" "${snippet}\n")
|
||||||
endforeach()
|
endforeach()
|
||||||
endfunction(zephyr_linker_sources)
|
endfunction(zephyr_linker_sources)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue