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

boards/native/doc: Update architecture description #78993

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

aescolar
Copy link
Member

@aescolar aescolar commented Sep 25, 2024

The architecture description was quite out of date in some parts, specially those which changed with the introduction of the native simulator.
Let's update it.

Link to rendered docs (when completed)
https://builds.zephyrproject.io/zephyr/pr/78993/docs/boards/native/doc/arch_soc.html

jori-nordic
jori-nordic previously approved these changes Sep 25, 2024
can be resolved inside that library will be resolved. And that, after, all these library symbols,
except a selected few marked with an special annotation, will be hidden from further linking.
In this way, the runner link stage will not link to or conflict with any of these hidden symbols,
neither from the runner itself or from other embedded CPUs libraries.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what do you mean exactly by "embedded CPU libraries"? The pre-linked lib that has the embedded context, or some other library

Copy link
Member Author

@aescolar aescolar Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean "The pre-linked lib that has the embedded context" :)
I rephrased it a bit hoping it will be less ambiguous.

But from the runner context only the symbols from the embedded context annotated with the
``NATIVE_SIMULATOR_IF`` macro will be linkable.

From Zephyr's build system it is possible to request a file to be build in the runner context by
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be built


* Set up the Zephyr build to produce an static library for the host architecture to be later
used with the native simulator build and linked with the native simulator runner.
* Provides a thin adaptation between the API the Zephyr kernel expects from an architecture
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Provide" to match "Set up"

theob-pro
theob-pro previously approved these changes Sep 25, 2024
The architecture description was quite out of date in some parts,
specially those which changed with the introduction of the native
simulator.
Let's update it.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
@aescolar
Copy link
Member Author

Thanks for the reviews so far @jori-nordic & @theob-pro . I updated it based on @jori-nordic feedback.

@fabiobaltieri fabiobaltieri merged commit d67d64d into zephyrproject-rtos:main Sep 27, 2024
23 checks passed
@aescolar aescolar deleted the arch_soc_docs branch September 27, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: native port Host native arch port (native_sim)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants