From d4b5ab6478f15f175f1aca766d460b98088142da Mon Sep 17 00:00:00 2001 From: Adithya Baglody Date: Tue, 18 Sep 2018 11:52:52 +0530 Subject: [PATCH] CMakeLists.txt: Set application shared memory dependency The scripts for app_smem need to be ready before the script for privilaged stack is run. This is needed because there is a small possibility that the stacks get aligned (due to app_smem) after privilaged stack script is run. This causes the gperf to create an incorrect hash. Signed-off-by: Adithya Baglody --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index aff3e489f35..2be9b44319b 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 ${PRIV_STACK_DEP} + DEPENDS ${ALIGN_SIZING_DEP} ) add_custom_command( @@ -1095,7 +1095,7 @@ if(CONFIG_ARM) add_custom_target( linker_priv_stacks_script DEPENDS - ${ALIGN_SIZING_DEP} + ${ALIGN_SIZING_DEP} ${APP_SMEM_DEP} linker_priv_stacks.cmd offsets_h )