From ba15b8e0929c1f53d2fa13ecf843ee6d7a01c52d Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 11 Nov 2024 16:17:01 +0100 Subject: [PATCH 1/3] 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. Signed-off-by: Alberto Escolar Piedras --- Kconfig.zephyr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 77821c359c79f..51ef697f9c530 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -470,9 +470,11 @@ config NATIVE_APPLICATION default y if ARCH_POSIX depends on !NATIVE_LIBRARY select NATIVE_BUILD + select DEPRECATED help Build as a native application that can run on the host and using - resources and libraries provided by the host. + resources and libraries provided by the host. This option is deprecated + and will be removed in Zephyr v4.3 config NATIVE_LIBRARY bool From 3243da21133749b1b86d9660e4c0d85b16739894 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 11 Nov 2024 16:20:01 +0100 Subject: [PATCH 2/3] 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. Signed-off-by: Alberto Escolar Piedras --- boards/native/native_sim/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boards/native/native_sim/Kconfig b/boards/native/native_sim/Kconfig index c2610e840e784..fc84adda149f9 100644 --- a/boards/native/native_sim/Kconfig +++ b/boards/native/native_sim/Kconfig @@ -18,12 +18,13 @@ comment "Native Simular (Single Core) options" config NATIVE_SIM_NATIVE_POSIX_COMPAT bool "Pretend to be a native_posix board" - default y + select DEPRECATED help When this option is set the native_sim board will pretend to be a native_posix board from kconfig point of view, to allow using it directly with code which was meant for the native_posix board and checks for the macro CONFIG_BOARD_NATIVE_POSIX, or requires other kconfig options which depend on it. + This option is deprecated and will be removed in Zephyr v4.3 config NATIVE_SIM_SLOWDOWN_TO_REAL_TIME bool "Slow down execution to real time" From b85382d235997312969efb23689389af0bc61414 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 11 Nov 2024 16:29:54 +0100 Subject: [PATCH 3/3] doc: 4.1 release & migration guide: Add native deprecation Mention that CONFIG_NATIVE_APPLICATION & CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT have been deprecated. Signed-off-by: Alberto Escolar Piedras --- doc/releases/migration-guide-4.1.rst | 9 +++++++++ doc/releases/release-notes-4.1.rst | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/doc/releases/migration-guide-4.1.rst b/doc/releases/migration-guide-4.1.rst index 8712b6cc9a987..04eabfdcd340d 100644 --- a/doc/releases/migration-guide-4.1.rst +++ b/doc/releases/migration-guide-4.1.rst @@ -115,3 +115,12 @@ Modem Architectures ************* + +* native/POSIX + + * :kconfig:option:`CONFIG_NATIVE_APPLICATION` has been deprecated. Out-of-tree boards using this + option should migrate to the native_simulator runner (:github:`81232`). + For an example of how this was done with a board in-tree check :github:`61481`. + * For the native_sim target :kconfig:option:`CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT` has been + switched to ``n`` by default, and this option has been deprecated. Ensure your code does not + use the :kconfig:option:`CONFIG_BOARD_NATIVE_POSIX` option anymore (:github:`81232`). diff --git a/doc/releases/release-notes-4.1.rst b/doc/releases/release-notes-4.1.rst index 40b3dfedfed5a..dff3f100c2c51 100644 --- a/doc/releases/release-notes-4.1.rst +++ b/doc/releases/release-notes-4.1.rst @@ -43,6 +43,12 @@ Architectures * Xtensa +* native/POSIX + + * :kconfig:option:`CONFIG_NATIVE_APPLICATION` has been deprecated. + * For the native_sim target :kconfig:option:`CONFIG_NATIVE_SIM_NATIVE_POSIX_COMPAT` has been + switched to ``n`` by default, and this option has been deprecated. + Kernel ******