Apps: ZynqMP R5: specify full linker script option
authorWendy Liang <jliang@xilinx.com>
Tue, 16 Aug 2016 04:48:39 +0000 (21:48 -0700)
committerWendy Liang <jliang@xilinx.com>
Thu, 13 Oct 2016 05:01:49 +0000 (22:01 -0700)
Instead of just specifying the linker script, specify the
system machine specific linker option.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
apps/system/generic/machine/zynqmp_r5/CMakeLists.txt

index d7a5775b86c01936eaf263b2d258cae5ce862ea3..61393189e5105bfed460d2630549320a5ac9d42d 100644 (file)
@@ -7,7 +7,7 @@ else (WITH_REMOTEPROC_MASTER)
   set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld")
 endif (WITH_REMOTEPROC_MASTER)
 
   set (_linker_script "${CMAKE_CURRENT_SOURCE_DIR}/linker_remote.ld")
 endif (WITH_REMOTEPROC_MASTER)
 
-set_property (GLOBAL PROPERTY APP_LINKER_SCRIPT "${_linker_script}")
+set_property (GLOBAL PROPERTY APP_LINKER_OPT "-T\"${_linker_script}\"")
 
 find_library(LIBXIL_LIB NAMES xil PATHS ${CMAKE_FIND_ROOT_PATH})
 get_filename_component(LIBXIL_LIB_DIR ${LIBXIL_LIB} DIRECTORY)
 
 find_library(LIBXIL_LIB NAMES xil PATHS ${CMAKE_FIND_ROOT_PATH})
 get_filename_component(LIBXIL_LIB_DIR ${LIBXIL_LIB} DIRECTORY)