Skip to content

Conversation

@aescolar
Copy link
Member

@aescolar aescolar commented Nov 11, 2024

boards native: Deprecate CONFIG_NATIVE_APPLICATION

This option is used in tree only by native_posix, which is deprecated
and being replaced by native_sim. But may be used also in out of tree
targets.
As part of the native_posix deprecation, and therefore the lack of
testing this feature would have in the future, we are also deprecating
this option.

boards native_sim: Deprecate CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT

This option existed only to make the transition from native_posix to
native_sim easier. As native_posix is going to be removed in v4.2
we deprecate this option now, so it will also be removed.

We also switch this option to default to false already now.

& add to release notes and migration guide

@aescolar aescolar changed the title Natapp deprc boards native_sim: Deprecate CONFIG_NATIVE_APPLICATION & CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT Nov 11, 2024
@aescolar aescolar added this to the v4.1.0 milestone Nov 11, 2024
@aescolar aescolar marked this pull request as ready for review November 11, 2024 15:42
@zephyrbot zephyrbot added Release Notes To be mentioned in the release notes area: native port Host native arch port (native_sim) area: Kconfig labels Nov 11, 2024
@aescolar aescolar assigned kartben and unassigned dkalowsk and mmahadevan108 Nov 11, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
use anymore on the :kconfig:option:`CONFIG_BOARD_NATIVE_POSIX` option (:github:`81232`).
use the :kconfig:option:`CONFIG_BOARD_NATIVE_POSIX` option anymore (:github:`81232`).

Comment on lines 116 to 117
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* :kconfig:option:`CONFIG_NATIVE_APPLICATION` has been deprecated. Out of tree boards which
use this option should migrate to use the native_simulator as their runner (:github:`81232`).
* :kconfig:option:`CONFIG_NATIVE_APPLICATION` has been deprecated. Out-of-tree boards using
this option should migrate to the native_simulator runner (:github:81232).

kartben
kartben previously approved these changes Nov 18, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

The Kconfig guidelines state that we should not use default n. I'm fine with leaving it as is

Copy link
Member Author

Choose a reason for hiding this comment

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

removed default :)

This option is used in tree only by native_posix, which is deprecated
and being replaced by native_sim. But may be used also in out of tree
targets.
As part of the native_posix deprecation, and therefore the lack of
testing this feature would have in the future, we are also deprecating
this option.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
This option existed only to make the transition from native_posix to
native_sim easier. As native_posix is going to be removed in v4.2
we deprecate this option now, so it will also be removed.

We also switch this option to default to false already now.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
Mention that CONFIG_NATIVE_APPLICATION &
CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT have been deprecated.

Signed-off-by: Alberto Escolar Piedras <[email protected]>
@aescolar
Copy link
Member Author

3 new pushes since last:

  1. removed default kconfig as requested by @rugeGerritsen
  2. rebase on top of main without changes
  3. added a link in the migration guide with an example of how to convert a board from being based on NATIVE_APPLICATION to NATIVE_LIBRARY

@nashif nashif merged commit d703d90 into zephyrproject-rtos:main Nov 20, 2024
25 checks passed
@aescolar aescolar deleted the natapp_deprc branch November 20, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Kconfig area: native port Host native arch port (native_sim) Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants