From 878f39c18e84727f4bc3d9073ae6d54d918da156 Mon Sep 17 00:00:00 2001 From: Andy Gross Date: Tue, 1 May 2018 01:10:26 -0500 Subject: [PATCH] makefile: Fix dependencies for privileged stacks This patch fixes the dependency chain for priviliged stack generation. This fixes a problem when compiling after making significant changes that would shift the privileged stack area. Signed-off-by: Andy Gross --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 61c49f32c2..52430a9566 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -709,7 +709,7 @@ if(CONFIG_ARM AND CONFIG_USERSPACE) ${GPERF} -C --output-file ${PRIV_STACKS_OUTPUT_SRC_PRE} ${PRIV_STACKS} - DEPENDS priv_stacks + DEPENDS priv_stacks ${PRIV_STACKS} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) add_custom_target(priv_stacks_output_src_pre DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PRIV_STACKS_OUTPUT_SRC_PRE}) @@ -727,7 +727,7 @@ if(CONFIG_ARM AND CONFIG_USERSPACE) -o ${PRIV_STACKS_OUTPUT_SRC} -p "struct _k_priv_stack_map" $<$:--verbose> - DEPENDS priv_stacks_output_src_pre + DEPENDS priv_stacks_output_src_pre ${PRIV_STACKS_OUTPUT_SRC_PRE} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) add_custom_target(priv_stacks_output_src DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PRIV_STACKS_OUTPUT_SRC})