From 9efeaa8f17e67f866039b5adbfe9538c32cbe49f Mon Sep 17 00:00:00 2001 From: Peter Crosthwaite Date: Thu, 12 Mar 2015 01:54:38 -0700 Subject: [PATCH] zynq_fsbl: Auto-populate -mcpu argument FSBL has R5 specific behaviours so -mcpu must be passed to the build. Automatically do this on app generation. Signed-off-by: Peter Crosthwaite --- lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl b/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl index 34e26f2d..21845126 100755 --- a/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl +++ b/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl @@ -109,6 +109,14 @@ proc swapp_generate {} { foreach init_file [array get files] { file delete -force $init_file } + + set proc_instance [get_sw_processor]; + set hw_processor [common::get_property HW_INSTANCE $proc_instance] + set proc_type [common::get_property IP_NAME [get_cells $hw_processor]]; + + if { $proc_type == "psu_cortexr5" } { + set_property -name {APP_COMPILER_FLAGS} -value {-mcpu=cortex-r5} -objects [current_sw_design ] + } } proc swapp_get_linker_constraints {} {