Repository navigation
Build the host tools and TensorFlow without the host RTOS headers - #11555
Merged
lgirdwood merged 4 commits intoNov 28, 2026
Merged
Conversation
probe_dma_frame.h is part of the probe ABI, which the sof-probes host tool also uses, but it got MASK() from the RTOS header rtos/bit.h. That made the tool build with the host RTOS headers (posix/include). Write the format field masks as constants. They have the values and the unsigned long long type of the MASK() expressions they replace. Include stdint.h for the uint32_t fields, which came through rtos/bit.h before. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
ext_manifest.h is shared with the smex host tool, and it only uses __packed from sof/compiler_attributes.h, an RTOS header, which made smex build with the host RTOS headers (posix/include). The header already defines __packed when it is not defined, so drop the include. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
smex and sof-probes added the host RTOS headers (posix/include) to their include path, with a TODO to fix it. They only use SOF ABI headers from src/include, which no longer include RTOS headers. Drop the include directory and the TODOs. The sof-logger still needs it: it includes sof/lib/uuid.h and sof/common.h, which use zephyr/sys/util.h. The topology parser is built with the host library for the testbench, so it keeps them too. No functional change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
The TensorFlow Micro library target (tflm_lib), built for the firmware and as an LLEXT module, has the host RTOS headers (posix/include) on its include path. Its sources are TensorFlow Micro, flatbuffers, gemmlowp, ruy, the HiFi NN library and the micro speech example, and none of them includes a header from posix/include (rtos/, sof/ or zephyr/). Drop the include directory. 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 28, 2026 17:02
lgirdwood
requested review from
a team,
dbaluta,
kv2019i,
lbetlej,
mmaka1,
pblaszko,
plbossart and
tmleman
as code owners
November 28, 2026 17:02
PR 11555: test resultsRun date: 2026-11-28 17:21 UTC Tested commit: c23f3f4649f212c8c0e0c95a6c4f9532c3b186ca |
Member
Author
|
CI unrelated |
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.
Part of #11306: reduce the users of the host RTOS headers (
posix/include).posix/includeis the RTOS layer of the host library (libsof.a,CONFIG_LIBRARY), which the testbench and the CMocka unit tests link. Some code that is not part of the host library also adds it to its include path. This removes it from the code that does not need it.Patches
ipc: probe_dma_frame: the probe frame header is shared with thesof-probestool, but it tookMASK()fromrtos/bit.h. The format masks are now constants, with the same values and the sameunsigned long longtype as theMASK()expressions.stdint.his included for theuint32_tfields, which came throughrtos/bit.hbefore.kernel: ext_manifest: the extended manifest header is shared withsmex. It only used__packedfromsof/compiler_attributes.h, and it already defines__packedwhen it is not defined. Drop the include.smex, probes: with that,smexandsof-probesbuild withoutposix/include, as their TODO comments asked.audio: tensorflow: the TensorFlow Micro library target hadposix/includeon its include path. Its sources (TensorFlow Micro, flatbuffers, gemmlowp, ruy, the HiFi NN library and the micro speech example) include no header fromposix/include: nothing includesrtos/,sof/orzephyr/headers.Not in this PR
sof-loggerstill needsposix/include: it includessof/lib/uuid.handsof/common.h, andsof/common.huseszephyr/sys/util.h, which on the host comes fromposix/include.Functional change
None.
Testing
smex,sof-probesandsof-loggerbuild without warnings. The testbench and the tools pass in the SOF CI container.posix/includeprovides.CONFIG_SOF_USERSPACE_PROXY=n;os_linux_overlay.conf;llext_relocatable.conf;app/debug_stream_overlay.conf, and PTL with that overlay and user-space LL.SYS_INIT()order), and the per-function disassembly. No object changes at any commit. The only image difference issof_init()on imx8m_cm7, imx93 and imx95, which embeds the git hash.--strictand--sources;All of the above was run on c04d3f1 (main).
🤖 Generated with Claude Code