Skip to content

Commit

Permalink
CMakeLists.txt: Updated the rule for shared memory alignment.
Browse files Browse the repository at this point in the history
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 <adithya.nagaraj.baglody@intel.com>
  • Loading branch information
AdithyaBaglody authored and nashif committed Sep 20, 2018
1 parent ae92f2b commit c764e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c764e02

Please sign in to comment.