Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform: imx93_a55: handle linker additions at SOF level #9372

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/platform/imx93_a55/linker/data-sections.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
SECTION_PROLOGUE(.static_uuid_entries,,)
{
*(*.static_uuids)
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

SECTION_PROLOGUE(.static_log_entries,,)
{
*(*.static_log*)
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

SECTION_PROLOGUE(.fw_metadata,,)
{
KEEP (*(*.fw_metadata))
. = ALIGN(16);
} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
3 changes: 3 additions & 0 deletions src/platform/imx93_a55/linker/rwdata.ld
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_trace_ctx_start = ABSOLUTE(.);
*(.trace_ctx)
_trace_ctx_end = ABSOLUTE(.);
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ manifest:

- name: zephyr
repo-path: zephyr
revision: 689d1edee1d57f052b1d4572d67618c0b0e2b8a4
revision: dc5f1bfb3f2eee3e3775175232d508660f5d6efe
remote: zephyrproject

# Import some projects listed in zephyr/west.yml@revision
Expand Down
8 changes: 8 additions & 0 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,14 @@ if (CONFIG_SOC_MIMX9352_A55)
${SOF_SRC_PATH}/schedule/zephyr_ll.c
)

# SOF-specific linker script additions
zephyr_linker_sources(RWDATA
${sof_top_dir}/src/platform/imx93_a55/linker/rwdata.ld
)
zephyr_linker_sources(DATA_SECTIONS
${sof_top_dir}/src/platform/imx93_a55/linker/data-sections.ld
)

set(PLATFORM "imx93_a55")
endif()

Expand Down