cmake: disable privilege stack generation for arc
Currently, ARC will not use privilege stack generation. Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
a970b5fd32
commit
5a0ba2faa5
|
@ -527,7 +527,9 @@ if(CONFIG_CPU_HAS_MPU AND CONFIG_USERSPACE)
|
||||||
if(CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT AND CONFIG_APPLICATION_MEMORY)
|
if(CONFIG_MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT AND CONFIG_APPLICATION_MEMORY)
|
||||||
set(ALIGN_SIZING_DEP app_sizing_prebuilt linker_app_sizing_script)
|
set(ALIGN_SIZING_DEP app_sizing_prebuilt linker_app_sizing_script)
|
||||||
endif()
|
endif()
|
||||||
|
if(CONFIG_ARM)
|
||||||
set(PRIV_STACK_DEP priv_stacks_prebuilt)
|
set(PRIV_STACK_DEP priv_stacks_prebuilt)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(construct_add_custom_command_for_linker_pass linker_output_name output_variable)
|
function(construct_add_custom_command_for_linker_pass linker_output_name output_variable)
|
||||||
|
@ -928,6 +930,7 @@ if(CONFIG_CPU_HAS_MPU AND CONFIG_USERSPACE)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CONFIG_ARM)
|
||||||
construct_add_custom_command_for_linker_pass(linker_priv_stacks custom_command)
|
construct_add_custom_command_for_linker_pass(linker_priv_stacks custom_command)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
${custom_command}
|
${custom_command}
|
||||||
|
@ -952,6 +955,7 @@ if(CONFIG_CPU_HAS_MPU AND CONFIG_USERSPACE)
|
||||||
target_link_libraries(priv_stacks_prebuilt ${TOPT} ${PROJECT_BINARY_DIR}/linker_priv_stacks.cmd ${zephyr_lnk})
|
target_link_libraries(priv_stacks_prebuilt ${TOPT} ${PROJECT_BINARY_DIR}/linker_priv_stacks.cmd ${zephyr_lnk})
|
||||||
set_property(TARGET priv_stacks_prebuilt PROPERTY LINK_DEPENDS ${PROJECT_BINARY_DIR}/linker_priv_stacks.cmd)
|
set_property(TARGET priv_stacks_prebuilt PROPERTY LINK_DEPENDS ${PROJECT_BINARY_DIR}/linker_priv_stacks.cmd)
|
||||||
add_dependencies( priv_stacks_prebuilt ${ALIGN_SIZING_DEP} linker_priv_stacks_script offsets)
|
add_dependencies( priv_stacks_prebuilt ${ALIGN_SIZING_DEP} linker_priv_stacks_script offsets)
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue