-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[examples] Aligned nrfconnect examples to the NCS 2.7.0 version
The new nRF Connect SDK 2.7.0 version introduced significant changes in the build system that resulted in a requirement to refactor all examples suported by nrfconnect platform.
- Loading branch information
1 parent
5461466
commit 0eb1cf2
Showing
244 changed files
with
3,715 additions
and
2,134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# This script checks is sysbuild is used to build the target. If not, it prints the fatal error | ||
# message, as the nRF Connect examples do not support deprecated child-image approach anymore. | ||
|
||
if (NOT SYSBUILD) | ||
message(FATAL_ERROR " ###################################################################################\n" | ||
" # This example does not support child-image approach anymore. #\n" | ||
" # The nRF Connect SDK platform marked child-image approach as deprecated #\n" | ||
" # and it is recommended to use the new sysbuild solution. #\n" | ||
" # #\n" | ||
" # To build this application with sysbuild support enabled, #\n" | ||
" # you have to add --sysbuild flag to the build command, for example: #\n" | ||
" # #\n" | ||
" # west build -b <your_board_name> --sysbuild nameIt was moved to support sysbuild #\n" | ||
" ###################################################################################\n") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# | ||
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
#### Radio core selection | ||
config NRF_DEFAULT_IPC_RADIO | ||
default y | ||
|
||
# Enable IEEE802.15.4 serialization to network core | ||
config NETCORE_IPC_RADIO_IEEE802154 | ||
default y if (SOC_SERIES_NRF53X) && !WIFI_NRF700X | ||
|
||
# Enable Bluetooth serialization to network core | ||
config NETCORE_IPC_RADIO_BT_HCI_IPC | ||
default y if SOC_SERIES_NRF53X | ||
|
||
if BOOTLOADER_MCUBOOT | ||
|
||
#### DFU multi-image support | ||
config DFU_MULTI_IMAGE_PACKAGE_BUILD | ||
default y | ||
|
||
config DFU_MULTI_IMAGE_PACKAGE_APP | ||
default y | ||
|
||
config PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY | ||
default y | ||
|
||
#### DFU network core configuration | ||
if SOC_SERIES_NRF53X | ||
|
||
config MCUBOOT_UPDATEABLE_IMAGES | ||
default 2 | ||
|
||
choice MCUBOOT_MODE | ||
default MCUBOOT_MODE_OVERWRITE_ONLY | ||
endchoice | ||
|
||
choice BOOT_SIGNATURE_TYPE | ||
default BOOT_SIGNATURE_TYPE_RSA | ||
endchoice | ||
|
||
config SECURE_BOOT_NETCORE | ||
default y | ||
|
||
config NETCORE_APP_UPDATE | ||
default y | ||
|
||
config DFU_MULTI_IMAGE_PACKAGE_NET | ||
default y | ||
|
||
endif # SOC_SERIES_NRF53X | ||
endif # BOOTLOADER_MCUBOOT | ||
|
||
source "${ZEPHYR_BASE}/share/sysbuild/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
examples/all-clusters-app/nrfconnect/child_image/hci_ipc/prj.conf
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
examples/all-clusters-app/nrfconnect/child_image/hci_ipc/prj_dfu.conf
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
examples/all-clusters-app/nrfconnect/child_image/hci_ipc/prj_release.conf
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
examples/all-clusters-app/nrfconnect/child_image/mcuboot/boards/nrf52840dk_nrf52840.overlay
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...ll-clusters-app/nrfconnect/child_image/mcuboot/boards/nrf52840dk_nrf52840_release.overlay
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
...s/all-clusters-app/nrfconnect/child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp.overlay
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...usters-app/nrfconnect/child_image/mcuboot/boards/nrf5340dk_nrf5340_cpuapp_release.overlay
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...s/all-clusters-app/nrfconnect/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp.overlay
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...usters-app/nrfconnect/child_image/mcuboot/boards/nrf7002dk_nrf5340_cpuapp_release.overlay
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.