Repository navigation
Conversation
The XTOS build preprocessed <platform>.x.in into the firmware linker script. Commit d07ac09 ("build: remove obvioux XTOS-only files") removed that step with src/arch/xtensa/CMakeLists.txt, and Zephyr links with the SoC linker scripts, so nothing uses the i.MX8, i.MX8M, i.MX8ULP, Rembrandt and ACP 7.0 scripts any more. Remove them. The i.MX8M CM7 and i.MX95 linker/data-sections.ld snippets are used by zephyr/CMakeLists.txt and are kept. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
lgirdwood
marked this pull request as ready for review
November 23, 2026 22:10
lgirdwood
requested review from
bhiregoudar,
dbaluta,
kv2019i,
lbetlej,
mmaka1,
plbossart and
sunilkumardommati
as code owners
November 23, 2026 22:10
PR 11529: test resultsRun date: 2026-11-23 22:40 UTC Tested commit: afb59fd9b608119861ef6c7e821c79069a439802 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove the five XTOS linker scripts that are still in
src/kernel/platform(2,773 lines). This is the second part of the platform header cleanup in #11517 step 1, after #11528.Patch
platform: remove the XTOS linker scripts.<platform>.x.ininto the firmware linker script. d07ac09 removed that step together withsrc/arch/xtensa/CMakeLists.txt, and Zephyr links with the SoC linker scripts.imx8.x.in,imx8m.x.in,imx8ulp.x.in,amd/rembrandt/rembrandt.x.inoramd/acp_7_0/acp_7_0.x.in, and no CMake, Python or shell file mentions them.linker/data-sections.ldsnippets are used byzephyr/CMakeLists.txtand are kept.These scripts were the only users of some of the XTOS memory layout macros in the platform
memory.hheaders:IRAM_*,SDRAM0_SIZE,SRAM1_SIZE;UUID_ENTRY_ELF_*,LOG_ENTRY_ELF_*,EXT_MANIFEST_ELF_*;SOF_MEM_VECT_*,SOF_MEM_RESET_*,SOF_MEM_VECBASE_LIT_SIZE;HEAP_BUF_ALIGNMENT.The next part removes them together with the other unused platform macros.
Functional change
None.
Testing
Run on 05904db (current main) and at the tip.
Firmware builds, each from scratch at both base and tip:
os_linux_overlay.conf;llext_relocatable.conf, PTL and TGL withdebug_stream_overlay.conf.All pass.
Objects: about 10,750 objects, LLEXT modules and ELF files hashed in each build. The only ones that differ are those that embed the source hash or git version:
init.c,ext_manifest.c, eachplatform.c, and the final images. A few objects appear on only one side; they are all in the acp_6_0 and acp_7_0 builds that fail anyway, where which objects get compiled before the failure varies between runs.Dependencies: the set of SOF headers the builds depend on (
ninja -t deps) is unchanged.Platforms that already fail on main:
ninja -k 0error sets are unchanged.check_kernel_includes.py --sources --strict: passes.Documentation: builds with no warnings.
The host builds (library, testbench, tools, cmocka, ztest) and the xt-clang builds don't use these files, so they were not re-run.
🤖 Generated with Claude Code