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 samples/crypto/aes_cbc/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
Comment thread
nordicjm marked this conversation as resolved.
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/aes_ccm/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/aes_ctr/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/aes_gcm/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/chachapoly/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/ecdh/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
51 changes: 51 additions & 0 deletions samples/crypto/ecdh/boards/nrf5340dk_nrf5340_cpuapp_ns.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/delete-node/ &boot_partition;
/delete-node/ &slot0_partition;
/delete-node/ &slot1_partition;
/delete-node/ &storage_partition;

/delete-node/ &tfm_its_partition;
/delete-node/ &tfm_otp_partition;
/delete-node/ &tfm_ps_partition;

&flash0 {
partitions {
slot0_s_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "image-0-secure";
reg = <0x0 0x40000>;
};

slot0_ns_partition: partition@40000 {
compatible = "zephyr,mapped-partition";
label = "image-0-nonsecure";
reg = <0x40000 0xb8000>;
};

tfm_storage_partition: partition@f8000 {
compatible = "zephyr,mapped-partition";
label = "tfm-storage";
reg = <0xf8000 DT_SIZE_K(32)>;
ranges = <0x0 0xf8000 DT_SIZE_K(32)>;
#address-cells = <1>;
#size-cells = <1>;

tfm_its_partition: partition@0 {
compatible = "zephyr,mapped-partition";
label = "tfm-its";
reg = <0x0 DT_SIZE_K(8)>;
};

tfm_otp_partition: partition@2000 {
compatible = "zephyr,mapped-partition";
label = "tfm-otp";
reg = <0x2000 DT_SIZE_K(8)>;
};

tfm_ps_partition: partition@4000 {
compatible = "zephyr,mapped-partition";
label = "tfm-ps";
reg = <0x4000 DT_SIZE_K(16)>;
};
};
};
};
2 changes: 1 addition & 1 deletion samples/crypto/ecdsa/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#

config PARTITION_MANAGER
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)

source "share/sysbuild/Kconfig"
Loading
Loading