From c764e021d87e77bba5281c44edbeeb49792387c2 Mon Sep 17 00:00:00 2001 From: Adithya Baglody Date: Wed, 19 Sep 2018 11:28:27 +0530 Subject: [PATCH] CMakeLists.txt: Updated the rule for shared memory alignment. Due to the new changes for the subsys/app_memory we need to have the script for smem run before any elf is created. This is needed because the compiled code will have references to certain linker variables that will be created by gen_app_partitions.py. Signed-off-by: Adithya Baglody --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2be9b44319b19c..5ec15dd169c985 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1029,7 +1029,7 @@ if(CONFIG_CPU_HAS_MPU AND CONFIG_USERSPACE) add_custom_target( ${APP_SMEM_DEP} ALL DEPENDS app - DEPENDS ${ALIGN_SIZING_DEP} + kernel ) add_custom_command( @@ -1057,6 +1057,7 @@ if(CONFIG_CPU_HAS_MPU AND CONFIG_USERSPACE) DEPENDS linker_app_sizing.cmd offsets_h + ${APP_SMEM_DEP} ) set_property(TARGET