Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/build/version/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Use in code
===========

To use the version information in application code, the version file must be included, then the
fields can be freely used. The include file name is :file:`app_version.h` (no path is needed), the
fields can be freely used. The include file name is :file:`app_version.h` (use ``#include <zephyr/app_version.h>``), the
following defines are available:

+-----------------------------+-------------------+------------------------------------------------------+---------------------------+
Expand Down
4 changes: 2 additions & 2 deletions soc/silabs/silabs_s2/soc_image_properties.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <zephyr/kernel.h>

#if defined __has_include
#if __has_include("app_version.h")
#include "app_version.h"
#if __has_include(<zephyr/app_version.h>)
#include <zephyr/app_version.h>
#define SOC_IMAGE_VERSION APPVERSION
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion subsys/shell/modules/app_version_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "app_version.h"
#include <zephyr/app_version.h>
#include <zephyr/shell/shell.h>

static int cmd_app_version_string(const struct shell *sh)
Expand Down
3 changes: 1 addition & 2 deletions tests/cmake/app_version/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

#include <zephyr/ztest.h>
#include <zephyr/kernel_version.h>

#include "app_version.h"
#include <zephyr/app_version.h>

ZTEST(app_version, test_basic_ints)
{
Expand Down
Loading