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

DNM: Testing PSA init in PRE_KERNEL_1 #20066

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
09b1df5
scripts: ncs_west_helpers: Update revert SHA workaround
anangl Jan 2, 2025
312c24e
manifest: Update zephyr and mcuboot
anangl Dec 30, 2024
68a82b9
checkpatch: Remove --ignore BRACES statement
anangl Dec 30, 2024
6c919a6
bluetooth: rpc: remove unnecessary source
gmarull Jan 2, 2025
1288090
doc: upmerge fixes
gmarull Jan 2, 2025
4538f68
doc: zephyr: add missing Doxygen input folder
gmarull Jan 8, 2025
79f39f0
doc: adjust doxyrunner/doxybridge settings
gmarull Dec 9, 2024
c4207b4
doc: doxygen: change standalone docsets layout
gmarull Dec 9, 2024
2eaf8e9
samples: suit: use CONFIG_SOC_NRF54H20_GENERATE_BICR
gmarull Nov 28, 2024
1057490
dts: bindings: Adapt nordic,bt-hci-sdc to recent upstream changes
anangl Jan 7, 2025
9788969
esb: kconfig: Fix ESB_DYNAMIC_INTERRUPTS dependencies
anangl Jan 8, 2025
218f4b0
bluetooth: rpc: Remove dependency on BT_DRIVERS
anangl Jan 8, 2025
4398afa
boards: thingy91x: Update discharge current limit for npm1300
anangl Jan 9, 2025
8061cd4
net: lib: hostap_crypto: Remove cmake entries for deleted files
anangl Jan 9, 2025
7356418
bluetooth: controller: Kconfig: Adapt to upstream Zephyr changes
anangl Jan 10, 2025
af7ccb0
treewide: Adapt to upstream Zephyr changes related to BT_CTLR
anangl Jan 11, 2025
8d73b1e
tests: nrfx_integration_test: Kconfig: Adapt to upstream Zephyr changes
anangl Jan 10, 2025
ac54ac9
zigbee: osif: Replace net_pkt_set_txtime with net_pkt_set_timestamp_ns
anangl Jan 11, 2025
d75b2dc
samples: zigbee: Disable CDC_ACM logging when CDC_ACM is used for shell
anangl Jan 11, 2025
e7ac5be
samples: Rename cdc_acm_uart node label to board_cdc_acm_uart
anangl Jan 11, 2025
8de4856
samples: direction_finding: Remove unnecessary configuration entries
anangl Jan 13, 2025
2ebad6d
Kconfig.nrf: Add NRF_SECURITY_ENABLER
anangl Jan 14, 2025
7e27f06
samples: bluetooth: Update to no longer use deprecated adv resume
sean-madigan Nov 20, 2024
4dc63a9
treewide: Remove redefinitions of SEC_PER_HOUR and SEC_PER_DAY
anangl Jan 14, 2025
36f611d
treewide: Synchronize wifi_credentials and wifi_mgmt_ext with upstream
rado17 Dec 4, 2024
edf7ade
openthread: Add default file system configuration
maciejbaczmanski Jan 16, 2025
c526edc
tests: benchmarks: idle_spim_loopback: Enable dma_fast_region for spi120
anangl Jan 16, 2025
6947d77
samples: bluetooth: Set CONFIG_BT_SMP_SC_PAIR_ONLY=n when needed
anangl Jan 16, 2025
3bed0a2
suit: Increase the default number of mbedTLS keys
tomchy Jan 16, 2025
3914954
Bluetooth: Mesh: adapting configuration parameters
alxelax Jan 15, 2025
e0aa493
samples: matter: remove `zephyr,priority` phandle
maciejbaczmanski Jan 16, 2025
3ae2537
net: lib: hostap_crypto: Remove legacy crypto
krish2718 Jan 15, 2025
4b19729
net: lib: hostap_crypto: Fix 54L/TF-M build
krish2718 Jan 15, 2025
deece82
treewide: Update after removal of CONFIG_NET_SOCKETS_POSIX_NAMES
anangl Jan 20, 2025
539cf3f
samples: suit: smp_transfer: Use PRNG entropy
Vge0rge Dec 4, 2024
6bfd624
suit: Use legacy PRNG in recovery app
tomchy Jan 17, 2025
d5b1a03
net: lib: Switch to zsock_* API
rlubos Jan 21, 2025
e3cb521
bluetooth: mesh: PSA requires RNG enabled
m-alperen-sener Jan 20, 2025
9d6e927
samples: bluetooth: mesh: Update mesh sample configs for MBEDTLS PSA
m-alperen-sener Jan 20, 2025
df8408d
scripts: quarantine: nRF52832 is added for mesh light ctrl sample
m-alperen-sener Jan 21, 2025
504c1ea
suit: Enable crypto in BT variant
tomchy Jan 21, 2025
70f5a01
samples: lwm2m_client: Enable ZVFS event fd
juhaylinen Jan 21, 2025
298d57c
net: lib: lwm2m_client_utils: Use zsock_* API
juhaylinen Jan 21, 2025
dd23b04
applications: serial_lte_modem: Enable POSIX APIs
anangl Jan 21, 2025
2062d06
applications: nrf_desktop: Rename cdc-acm-uart node
mkapala-nordic Jan 21, 2025
e0776d0
tests: bluetooth: mesh: add persistante storage selection
m-alperen-sener Jan 21, 2025
4a4070f
applications: asset_tracker_v2: Enable POSIX APIs in LWM2M configurat…
anangl Jan 22, 2025
a661037
application: asset_tracker_v2: Enable ZVFS event fd
anangl Jan 22, 2025
71d7518
samples: cellular: Enable POSIX APIs in relevant samples
anangl Jan 22, 2025
9997eb8
samples: nrf_rpc: protocols_serialization: Fix configurations
anangl Jan 22, 2025
9c67028
bluetooth: Remove references to BT_TINYCRYPT_ECC
anangl Jan 22, 2025
2a4a78e
quarantine: add revision values to nrf91 an nr54h entires
PerMac Jan 22, 2025
484f1d6
applications: nrf5340_audio: Upmerge fixes
alexsven Jan 20, 2025
f79a747
samples: matter: Add workaround for building Matter Lock
ArekBalysNordic Jan 22, 2025
5f8a56a
suit: Fix warnings in unit tests
tomchy Jan 23, 2025
9184028
samples: Aligned ram0x overlays in Multicore Tests/Matter samples
ArekBalysNordic Nov 26, 2024
f660b97
manifest: crypto: Add SYS_INIT of psa_crypto_init() in PRE_KERNEL_1
frkv Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .checkpatch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
--min-conf-desc-length=1
--typedefsfile=scripts/checkpatch/typedefsfile

--ignore BRACES
--ignore PRINTK_WITHOUT_KERN_LEVEL
--ignore SPLIT_STRING
--ignore VOLATILE
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ jobs:
for docset in "${DOXYGEN[@]}"; do
OUTDIR=doc/_build/html-doxygen/$docset-apis
mv doc/_build/html/$docset "$OUTDIR"
mv doc/_build/html/$docset/html "$OUTDIR"
# Populate custom.properties, tags.yml
cp doc/_zoomin/$docset.apis.custom.properties "$OUTDIR/custom.properties"
Expand Down
3 changes: 0 additions & 3 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@
/include/net/download_client* @nrfconnect/ncs-modem
/include/net/downloader* @nrfconnect/ncs-modem
/include/net/nrf_cloud_* @nrfconnect/ncs-nrf-cloud
/include/net/wifi_credentials.h @nrfconnect/ncs-cia
/include/nfc/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-si-muffin
/include/nrf_compress/ @nordicjm
/include/nrf_rpc/ @nrfconnect/ncs-co-drivers @nrfconnect/ncs-si-muffin
Expand Down Expand Up @@ -758,7 +757,6 @@
/subsys/net/lib/nrf_cloud/ @nrfconnect/ncs-nrf-cloud
/subsys/net/lib/nrf_provisioning/ @nrfconnect/ncs-iot-oulu
/subsys/net/lib/zzhc/ @junqingzou
/subsys/net/lib/wifi_credentials/ @nrfconnect/ncs-cia
/subsys/net/lib/softap_wifi_provision/ @nrfconnect/ncs-cia
/subsys/net/openthread/ @nrfconnect/ncs-co-networking @nrfconnect/ncs-thread
/subsys/net/openthread/rpc/ @nrfconnect/ncs-protocols-serialization
Expand Down Expand Up @@ -867,7 +865,6 @@
/tests/subsys/net/lib/mqtt_helper/ @nrfconnect/ncs-cia
/tests/subsys/net/lib/nrf_cloud/ @nrfconnect/ncs-nrf-cloud
/tests/subsys/net/lib/nrf_provisioning/ @nrfconnect/ncs-iot-oulu
/tests/subsys/net/lib/wifi_credentials*/ @nrfconnect/ncs-cia
/tests/subsys/net/openthread/rpc/ @nrfconnect/ncs-protocols-serialization
/tests/subsys/nfc/rpc/ @nrfconnect/ncs-protocols-serialization
/tests/subsys/nrf_compress/ @nordicjm
Expand Down
6 changes: 6 additions & 0 deletions Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ config FLASH_SIZE
default 1524
endif

config NRF_SECURITY_ENABLER
def_bool y
imply NRF_SECURITY if BT_CRYPTO || BT_HOST_CRYPTO || BT_MESH_USES_MBEDTLS_PSA || BT_FAST_PAIR_CRYPTO_PSA
imply ENTROPY_GENERATOR if BOARD_NATIVE_SIM
imply PSA_WANT_GENERATE_RANDOM if BT_HOST_CRYPTO_PRNG
depends on !SOC_NRF5340_CPUNET

rsource "samples/Kconfig"
rsource "subsys/Kconfig"
Expand Down
3 changes: 3 additions & 0 deletions applications/asset_tracker_v2/overlay-lwm2m.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ CONFIG_LWM2M_RW_JSON_SUPPORT=n
CONFIG_LWM2M_SECURITY_INSTANCE_COUNT=3
CONFIG_COAP_INIT_ACK_TIMEOUT_MS=4000
CONFIG_BASE64=y
CONFIG_POSIX_API=y
CONFIG_ZVFS_EVENTFD=y
CONFIG_ZVFS_EVENTFD_MAX=2

# Transmission buffers.
CONFIG_LWM2M_ENGINE_MAX_OBSERVER=5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_NUS=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_SMP=y
CONFIG_BT_CTLR=y
CONFIG_BT_CTLR_RX_BUFFERS=10
CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_BUF_ACL_TX_SIZE=251
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static void adv_start(void)

err = bt_le_adv_start(
BT_LE_ADV_PARAM(
BT_LE_ADV_OPT_CONNECTABLE,
BT_LE_ADV_OPT_CONN,
BT_GAP_ADV_SLOW_INT_MIN,
BT_GAP_ADV_SLOW_INT_MAX,
NULL),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
};
};

/* Set IPC thread priority to the highest value to not collide with other threads. */
&ipc0 {
zephyr,priority = <0 PRIO_COOP>;
};

/* Disable unused peripherals to reduce power consumption */
&adc {
status = "disabled";
Expand Down
5 changes: 0 additions & 5 deletions applications/matter_weather_station/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@
};
};

/* Set IPC thread priority to the highest value to not collide with other threads. */
&ipc0 {
zephyr,priority = <0 PRIO_COOP>;
};

&i2c1 {
bme688@76 {
compatible = "bosch,bme680";
Expand Down
18 changes: 0 additions & 18 deletions applications/nrf5340_audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,24 +39,6 @@ config TRANSPORT_CIS
endchoice

#----------------------------------------------------------------------------#
if (TRANSPORT_BIS && AUDIO_DEV = 1)
rsource "broadcast_sink/Kconfig.defaults"
endif # TRANSPORT_BIS && AUDIO_DEV = 1

if (TRANSPORT_BIS && AUDIO_DEV = 2)
rsource "broadcast_source/Kconfig.defaults"
endif # TRANSPORT_BIS && AUDIO_DEV = 2

if (TRANSPORT_CIS && AUDIO_DEV = 1)
rsource "unicast_server/Kconfig.defaults"
endif # TRANSPORT_CIS && AUDIO_DEV = 1

if (TRANSPORT_CIS && AUDIO_DEV = 2)
rsource "unicast_client/Kconfig.defaults"
endif # TRANSPORT_CIS && AUDIO_DEV = 2



rsource "Kconfig.defaults"
rsource "src/audio/Kconfig"
rsource "src/bluetooth/Kconfig"
Expand Down
109 changes: 0 additions & 109 deletions applications/nrf5340_audio/broadcast_sink/Kconfig.defaults

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_TRANSPORT_BIS=y

## ACL related configs ##
CONFIG_BT_OBSERVER=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_SMP=y
CONFIG_BT_AUDIO=y
CONFIG_BT_GATT_DYNAMIC_DB=y
CONFIG_BT_GATT_CACHING=n

CONFIG_SETTINGS=y
CONFIG_BT_SETTINGS=y
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_NVS=y

CONFIG_BT_BUF_ACL_TX_COUNT=18

CONFIG_BT_CAP_ACCEPTOR=y
CONFIG_BT_CSIP_SET_MEMBER=y
CONFIG_BT_CAP_ACCEPTOR_SET_MEMBER=y
CONFIG_BT_GAP_PERIPHERAL_PREF_PARAMS=y
CONFIG_BT_VCP_VOL_REND=y

CONFIG_BT_PERIPHERAL_PREF_MIN_INT=64
CONFIG_BT_PERIPHERAL_PREF_MAX_INT=69
CONFIG_BT_PERIPHERAL_PREF_LATENCY=0
CONFIG_BT_PERIPHERAL_PREF_TIMEOUT=200

# Generic Audio Sink - 0x0840
CONFIG_BT_DEVICE_APPEARANCE=2112
CONFIG_BT_PER_ADV_SYNC_MAX=2

## ISO related configs ##
CONFIG_BT_BAP_BROADCAST_SNK_STREAM_COUNT=2
CONFIG_BT_BAP_BROADCAST_SNK_COUNT=2
CONFIG_BT_ISO_MAX_CHAN=2
CONFIG_BT_ISO_MAX_BIG=2

CONFIG_BT_PER_ADV_SYNC_TRANSFER_RECEIVER=y

## PACS related configs ##
CONFIG_BT_PAC_SNK_NOTIFIABLE=y
CONFIG_BT_PAC_SNK=y
CONFIG_BT_PAC_SRC_NOTIFIABLE=y
CONFIG_BT_PAC_SRC=y

## Audio related configs ##
CONFIG_AUDIO_MUTE=n
CONFIG_AUDIO_TEST_TONE=n

CONFIG_BT_ISO_SYNC_RECEIVER=y
CONFIG_BT_BAP_SCAN_DELEGATOR=y
CONFIG_BT_BAP_BROADCAST_SINK=y

## LC3 related configs ##
CONFIG_LC3_DEC_CHAN_MAX=1



Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright (c) 2025 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_TRANSPORT_BIS=y

CONFIG_BT_CAP_INITIATOR=y
CONFIG_BT_AUDIO=y

CONFIG_BT_DEVICE_APPEARANCE=2181

CONFIG_BT_ISO_BROADCASTER=y

CONFIG_BT_BAP_BROADCAST_SOURCE=y

CONFIG_BT_ISO_TX_BUF_COUNT=2

CONFIG_BT_BAP_BROADCAST_SRC_STREAM_COUNT=2

CONFIG_BT_ISO_MAX_CHAN=2

CONFIG_BT_ISO_MAX_BIG=2

CONFIG_LC3_ENC_CHAN_MAX=2
CONFIG_ENTROPY_GENERATOR=y
1 change: 1 addition & 0 deletions applications/nrf5340_audio/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CONFIG_STACK_USAGE=y
CONFIG_THREAD_RUNTIME_STATS=y
CONFIG_STACK_SENTINEL=y
CONFIG_INIT_STACKS=y
CONFIG_BT=y

# Uart driver
CONFIG_SERIAL=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,21 @@
CONFIG_BLE_ACL_EXT_ADV_INT_MIN, CONFIG_BLE_ACL_EXT_ADV_INT_MAX, NULL)

#define LE_AUDIO_EXTENDED_ADV_CONN_NAME \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONNECTABLE | \
BT_LE_ADV_OPT_USE_NAME, \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_USE_NAME, \
CONFIG_BLE_ACL_EXT_ADV_INT_MIN, CONFIG_BLE_ACL_EXT_ADV_INT_MAX, NULL)

#define LE_AUDIO_EXTENDED_ADV_CONN_NAME_FILTER \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONNECTABLE | \
BT_LE_ADV_OPT_USE_NAME | BT_LE_ADV_OPT_FILTER_CONN, \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_USE_NAME | \
BT_LE_ADV_OPT_FILTER_CONN, \
CONFIG_BLE_ACL_EXT_ADV_INT_MIN, CONFIG_BLE_ACL_EXT_ADV_INT_MAX, NULL)

#define LE_AUDIO_PERIODIC_ADV \
BT_LE_PER_ADV_PARAM(CONFIG_BLE_ACL_PER_ADV_INT_MIN, CONFIG_BLE_ACL_PER_ADV_INT_MAX, \
BT_LE_PER_ADV_OPT_NONE)

#define BT_LE_ADV_FAST_CONN \
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE, BT_GAP_ADV_FAST_INT_MIN_1, \
BT_GAP_ADV_FAST_INT_MAX_1, NULL)
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN, BT_GAP_ADV_FAST_INT_MIN_1, BT_GAP_ADV_FAST_INT_MAX_1, \
NULL)

/* Broadcast name can be max 32 bytes long, so this will be the limit for both.
* Add one for '\0' at the end.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static void smp_adv(void)
{
int ret;

ret = bt_le_adv_start(BT_LE_ADV_CONN, ad_peer, ARRAY_SIZE(ad_peer), sd_peer,
ret = bt_le_adv_start(BT_LE_ADV_CONN_FAST_2, ad_peer, ARRAY_SIZE(ad_peer), sd_peer,
ARRAY_SIZE(sd_peer));
if (ret) {
LOG_ERR("SMP_SVR Advertising failed to start (ret %d)", ret);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void bt_mgmt_broadcast_code_ptr_get(uint8_t **broadcast_code_ptr)
void bt_mgmt_scan_delegator_init(void)
{
if (!scan_dlg_cb_registered) {
bt_bap_scan_delegator_register_cb(&scan_delegator_cbs);
bt_bap_scan_delegator_register(&scan_delegator_cbs);
scan_dlg_cb_registered = true;
}

Expand Down
Loading
Loading