Skip to content

PythonConsole: select the Python console at compile time - #19

Open
lestarch-autobot wants to merge 2 commits into
fprime-community:mainfrom
lestarch-autobot:pr-491
Open

lestarch-autobot wants to merge 2 commits into
fprime-community:mainfrom
lestarch-autobot:pr-491

Conversation

@lestarch-autobot

@lestarch-autobot lestarch-autobot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Breaking: requires the F Prime compile-time OSAL selection change, not yet in nasa/fprime devel. Do not merge before it lands; this PR will not build against devel. Draft until then.

Framework change: nasa/fprime#6456

Change

  • Each OSAL implementation ships a selection header (config/<Service>Selection.hpp) naming its concrete type; Os::<Service> becomes Os::<Service>Common<Selected::<Service>>.
  • The link-time delegate factories (getDelegate) are removed.
  • Unit tests that depend on a particular implementation register only when the build selects it.

Testing

Built against the framework branch above where a toolchain was available; see that PR for results.

AI Usage

AI Used: y. Implemented by Devin (AI) under direction and review of @LeStarch.

lestarch-autobot and others added 2 commits December 1, 2026 22:00
Os::Console is now Os::ConsoleCommon<Os::Selected::Console> (nasa/fprime
OSAL common types). Supply selection/ConsoleSelection.hpp as a
configuration header, drop the link-time delegate factory, and depend on
Os/Interfaces/ConsoleInterface.hpp. Name the modules FprimePython
already uses.

Co-authored-by: M Starch <LeStarch@googlemail.com>
The framework now makes each Os package depend on its chosen implementation; WHOLE_ARCHIVE is no longer needed.

Co-authored-by: M Starch <LeStarch@googlemail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants