mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
feat(build): support aligned embedded binary data
Allow callers to align embedded binary start symbols for DMA-capable assets.
This commit is contained in:
@@ -74,6 +74,9 @@ append_line(".data")
|
||||
append_line("#if !defined (__APPLE__) && !defined (__linux__)")
|
||||
append_line(".section .rodata.embedded")
|
||||
append_line("#endif")
|
||||
if(DEFINED DATA_ALIGNMENT)
|
||||
append_line(".balign ${DATA_ALIGNMENT}")
|
||||
endif()
|
||||
make_and_append_identifier("${varname}")
|
||||
make_and_append_identifier("_binary_${varname}_start" "for objcopy compatibility")
|
||||
append("${data}")
|
||||
|
||||
Reference in New Issue
Block a user