Skip to content

Commit 2c285ee

Browse files
frkvcarlescufi
authored andcommitted
libraries: Change autoconf.h to zephyr/autoconf.h
-During the last Zephyr upmerge the includes changed from autoconf.h to zephyr/autoconf.h which this commit fixes for the following: - TF-M header for IOCTL API - Out-of-tree device nrf device integration for TF-M - HW unique key library (and sysbuild) - lwm2m_carrier (sysbuild) - Bootloader (Partition Manager) - Netboot (Partition Manager) - Lots of Partition Manager yml files Signed-off-by: Frank Audun Kvamtrø <frank.kvamtro@nordicsemi.no>
1 parent 6a3ee4c commit 2c285ee

36 files changed

+41
-50
lines changed

include/hw_unique_key.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ extern "C" {
2626
#include <stdbool.h>
2727

2828
#if defined(__NRF_TFM__)
29-
#include <autoconf.h>
29+
#include <zephyr/autoconf.h>
3030
#endif
3131
#include <zephyr/devicetree.h>
3232

include/tfm/tfm_ioctl_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/* Include core IOCTL services */
2727
#include <tfm_ioctl_core_api.h>
2828

29-
#include <autoconf.h>
29+
#include <zephyr/autoconf.h>
3030

3131
#if CONFIG_FW_INFO
3232
#include <fw_info_bare.h>

lib/bin/lwm2m_carrier/pm.yml.lwm2m_carrier

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
lwm2m_carrier:
44
placement:

lib/hw_unique_key/pm.yml.huk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
# Use the last partition in flash to store the Hardware Unique Key (HUK)
44
# The size of the partition matches the fprotect block size since it will

modules/trusted-firmware-m/tfm_boards/board/RTE_Device.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef __RTE_DEVICE_H
88
#define __RTE_DEVICE_H
99

10-
#include <autoconf.h>
10+
#include <zephyr/autoconf.h>
1111

1212
/* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */
1313
#undef ARRAY_SIZE

modules/trusted-firmware-m/tfm_boards/board/device_cfg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef DEVICE_CFG_H__
88
#define DEVICE_CFG_H__
99

10-
#include <autoconf.h>
10+
#include <zephyr/autoconf.h>
1111

1212
/* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */
1313
#undef ARRAY_SIZE

modules/trusted-firmware-m/tfm_boards/board/nrf_board.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#ifndef NRF_BOARD_H__
88
#define NRF_BOARD_H__
99

10-
#include <autoconf.h>
10+
#include <zephyr/autoconf.h>
1111
#include <zephyr/devicetree.h>
1212

1313
#include <hal/nrf_gpio.h>

modules/trusted-firmware-m/tfm_boards/board/tfm_peripherals_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
extern "C" {
1212
#endif
1313

14-
#include <autoconf.h>
14+
#include <zephyr/autoconf.h>
1515
#include <nrfx.h>
1616

1717
#define TFM_PERIPHERAL_DCNF_SECURE CONFIG_NRF_DCNF_SECURE

modules/trusted-firmware-m/tfm_boards/common/assert.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <pm_config.h>
8-
#include "autoconf.h"
8+
#include "zephyr/autoconf.h"
99
#include "region_defs.h"
1010
#include "utilities.h"
1111

modules/trusted-firmware-m/tfm_boards/common/tfm_hal_platform.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
*/
66

7-
#include <autoconf.h>
7+
#include <zephyr/autoconf.h>
88

99
#if defined(TFM_PARTITION_CRYPTO) && defined(CONFIG_HAS_HW_NRF_CC3XX)
1010
#include <nrf_cc3xx_platform.h>

modules/trusted-firmware-m/tfm_boards/include/zephyr/sys/__assert.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* The functionality will be forwarded to TF-M equivalent of the Zephyr API.
1616
*/
1717

18-
#include <autoconf.h>
18+
#include <zephyr/autoconf.h>
1919
#include "tfm_sp_log.h"
2020
#include "utilities.h"
2121

modules/trusted-firmware-m/tfm_boards/include/zephyr/sys/check.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* The functionality will be forwarded to TF-M equivalent of the Zephyr API.
1616
*/
1717

18-
#include <autoconf.h>
18+
#include <zephyr/autoconf.h>
1919
#include <zephyr/sys/__assert.h>
2020

2121
/* Note:

modules/trusted-firmware-m/tfm_boards/partition/flash_layout.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define __FLASH_LAYOUT_H__
99

1010
#include <pm_config.h>
11-
#include <autoconf.h>
11+
#include <zephyr/autoconf.h>
1212

1313
/* This header file is included from linker scatter file as well, where only a
1414
* limited C constructs are allowed. Therefore it is not possible to include

modules/trusted-firmware-m/tfm_boards/src/tfm_ioctl_ns_api.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <tfm_platform_api.h>
99
#include <tfm_ioctl_api.h>
1010

11-
#include <autoconf.h>
11+
#include <zephyr/autoconf.h>
1212
#include <errno.h>
1313

1414
static int status2err(enum tfm_platform_err_t status, uint32_t result)

samples/bootloader/pm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
b0:
44
size: CONFIG_PM_PARTITION_SIZE_B0_IMAGE

samples/nrf5340/netboot/pm.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
b0n:
44
size: CONFIG_B0N_SIZE

samples/tfm/tfm_secure_peripheral/secure_peripheral_partition/secure_peripheral_partition.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#include "util.h"
2121

22-
#include <autoconf.h>
22+
#include <zephyr/autoconf.h>
2323
#include <zephyr/devicetree.h>
2424

2525
#define BUTTON_PIN DT_GPIO_PIN(DT_NODELABEL(button0), gpios)

scripts/partition_manager/partition_manager.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ The information extracted from devicetree is the alignment value for some partit
420420

421421
.. code-block:: yaml
422422
423-
#include <autoconf.h>
423+
#include <zephyr/autoconf.h>
424424
#include <devicetree_legacy_unfixed.h>
425425
426426
b0:

subsys/nrf_security/tfm/CMakeLists.txt

+6-15
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,7 @@
33
#
44
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
55
#
6-
7-
# This file is nrf_security's entry-point for the TF-M build system
8-
set(BUILD_INSIDE_TFM True)
9-
10-
set(west_root_dir ${CMAKE_CURRENT_LIST_DIR}/../../../..)
11-
12-
set(NRFXLIB_DIR ${west_root_dir}/nrfxlib)
13-
set(NRF_SECURITY_ROOT ${CMAKE_CURRENT_LIST_DIR}/..)
14-
15-
set(ZEPHYR_NRF_MODULE_DIR ${NRF_DIR})
16-
set(ZEPHYR_OBERON_PSA_CRYPTO_MODULE_DIR ${west_root_dir}/modules/crypto/oberon-psa-crypto)
6+
include(${TFM_EXTRA_CONFIG_PATH})
177

188
include(${NRF_SECURITY_ROOT}/cmake/extensions.cmake)
199

@@ -25,7 +15,7 @@ set(mbedtls_target ${MBEDTLS_TARGET_PREFIX}mbedtls)
2515
# Building nrf security for TF-M implies the following:
2616
# - Parse NRF_SECURITY_SETTINGS into CMake variables.
2717
# Variables transferred from Zephyr to nRF Security TF-M build includes:
28-
# - <build>/zephyr/.config
18+
# - <build>/zephyr/.configc
2919
# - GCC_M_CPU
3020
# - ARM_MBEDTLS_PATH
3121
# - autoconf.h
@@ -63,7 +53,7 @@ set(CONFIG_MBEDTLS_MD_C False)
6353
# control of the CryptoCell. Therefore, specifically for building TF-M we
6454
# enable it manually.
6555
if(CONFIG_HAS_HW_NRF_CC3XX)
66-
set(CONFIG_NRF_CC3XX_PLATFORM True)
56+
set(CONFIG_NRF_CC3XX_PLATFORM True)
6757
endif()
6858

6959
# Disable threading for TF-M SPM image
@@ -86,10 +76,11 @@ set(CONFIG_BUILD_WITH_TFM False)
8676
# Enable the MBEDTLS_ENABLE_HEAP configuration since TF-M implements heap in crypto_init.c
8777
set(CONFIG_MBEDTLS_ENABLE_HEAP True)
8878

79+
# Ensure that RNG is not usling legacy code
8980
set(CONFIG_MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG True)
9081

91-
# TF-M build require that PSA Crypto APIs are compiled
92-
set(COMPILE_PSA_APIS True)
82+
# Ensure that PSA core is built inside TF-M image
83+
set(CONFIG_MBEDTLS_PSA_CRYPTO_C True)
9384

9485
if ("${PROJECT_NAME}" STREQUAL "Bootloader")
9586
set(CONFIG_CC3XX_MBEDTLS_RSA_C True)

subsys/partition_manager/pm.yml.emds

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
emds_storage:
44
placement:

subsys/partition_manager/pm.yml.file_system

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
littlefs_storage:
44
placement:

subsys/partition_manager/pm.yml.fmfu

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
fmfu_storage:
44
placement: {before: [end]}

subsys/partition_manager/pm.yml.libmodem

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
nrf_modem_lib_sram:
44
span: [nrf_modem_lib_ctrl, nrf_modem_lib_tx, nrf_modem_lib_rx, nrf_modem_lib_trace]

subsys/partition_manager/pm.yml.mcuboot

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
mcuboot_sram:
44
#ifdef CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM

subsys/partition_manager/pm.yml.memfault

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
memfault_storage:
44
placement:

subsys/partition_manager/pm.yml.modem_trace

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
modem_trace:
44
placement: {before: [end]}

subsys/partition_manager/pm.yml.nvs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
# In nRF54L15 we place the TF-M non-secure storage partitions after the
44
# TF-M non-secure application to avoid splitting the secure/non-secure

subsys/partition_manager/pm.yml.pcd

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
# This block of RAM is used for communicating Network Core firmware update
44
# metadata

subsys/partition_manager/pm.yml.pgps

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
pgps:
44
placement:

subsys/partition_manager/pm.yml.rpmsg_nrf53

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
# This block of RAM is used for IPC
44
rpmsg_nrf53_sram:

subsys/partition_manager/pm.yml.secure_boot_storage

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
provision:
44
size: CONFIG_PM_PARTITION_SIZE_PROVISION

subsys/partition_manager/pm.yml.settings

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
# In nRF54L15 we place the TF-M non-secure storage partitions after the
44
# TF-M non-secure application to avoid splitting the secure/non-secure

subsys/partition_manager/pm.yml.tfm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
tfm_sram:
44
placement: {after: [start]}

subsys/partition_manager/pm.yml.vpr_launcher

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
vpr_launcher:
44
placement: {before: app}

subsys/partition_manager/pm.yml.zboss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <autoconf.h>
1+
#include <zephyr/autoconf.h>
22

33
zboss_nvram:
44
placement:

subsys/suit/cache/src/suit_dfu_cache_internal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <zcbor_decode.h>
1313
#include <zephyr/storage/flash_map.h>
1414
#include <suit_dfu_cache.h>
15-
#include <autoconf.h>
15+
#include <zephyr/autoconf.h>
1616

1717
/* Adding 5 bytes for bstring header and 1 byte for indefinite map header and
1818
* 9 bytes for tstr

0 commit comments

Comments
 (0)