From 2e13c372f1419f08dab7797b244681f889dd9bcf Mon Sep 17 00:00:00 2001 From: Michal Hanus Date: Mon, 14 Apr 2025 22:04:32 +0200 Subject: nrfdemo --- .../subsys/partition_manager/cmake_install.cmake | 39 ++++++++++++++++++++++ .../nrf/subsys/partition_manager/pm.yml.libmodem | 22 ++++++++++++ .../nrf/subsys/partition_manager/pm.yml.mcuboot | 2 ++ .../nrf/subsys/partition_manager/pm.yml.trustzone | 10 ++++++ 4 files changed, 73 insertions(+) create mode 100644 nrfdemo/build/modules/nrf/subsys/partition_manager/cmake_install.cmake create mode 100644 nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem create mode 100644 nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.mcuboot create mode 100644 nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone (limited to 'nrfdemo/build/modules/nrf/subsys/partition_manager') diff --git a/nrfdemo/build/modules/nrf/subsys/partition_manager/cmake_install.cmake b/nrfdemo/build/modules/nrf/subsys/partition_manager/cmake_install.cmake new file mode 100644 index 0000000..2c92751 --- /dev/null +++ b/nrfdemo/build/modules/nrf/subsys/partition_manager/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /home/mike/Documents/ncs/v2.7.0/nrf/subsys/partition_manager + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "TRUE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/home/mike/ncs/toolchains/e9dba88316/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-objdump") +endif() + diff --git a/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem new file mode 100644 index 0000000..43c8a78 --- /dev/null +++ b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.libmodem @@ -0,0 +1,22 @@ +nrf_modem_lib_sram: + span: [nrf_modem_lib_ctrl, nrf_modem_lib_tx, nrf_modem_lib_rx, nrf_modem_lib_trace] +nrf_modem_lib_ctrl: + placement: {after: [tfm_sram, spm_sram, start]} + size: 0x4e8 + region: sram_primary + inside: sram_nonsecure +nrf_modem_lib_tx: + placement: {after: [nrf_modem_lib_ctrl]} + size: 8320 + region: sram_primary + inside: sram_nonsecure +nrf_modem_lib_rx: + placement: {after: [nrf_modem_lib_tx]} + size: 8192 + region: sram_primary + inside: sram_nonsecure +nrf_modem_lib_trace: + placement: {after: [nrf_modem_lib_rx]} + size: 0 + region: sram_primary + inside: sram_nonsecure diff --git a/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.mcuboot b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.mcuboot new file mode 100644 index 0000000..05a0b0e --- /dev/null +++ b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.mcuboot @@ -0,0 +1,2 @@ +mcuboot_sram: + span: sram_secure diff --git a/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone new file mode 100644 index 0000000..02dd880 --- /dev/null +++ b/nrfdemo/build/modules/nrf/subsys/partition_manager/pm.yml.trustzone @@ -0,0 +1,10 @@ +# Create a span for the RAM to be configured as SECURE by TF-M. +sram_secure: + region: sram_primary + span: + - pcd_sram +sram_nonsecure: + region: sram_primary + span: + - sram_primary + - rpmsg_nrf53_sram -- cgit v1.2.3