From 592dee49fa05feeb34ed82f1c2b24109afc2a614 Mon Sep 17 00:00:00 2001 From: Sarat Chand Savitala Date: Wed, 24 Dec 2014 18:16:46 +0530 Subject: [PATCH] sw_apps:zynq_fsbl: Changes to remove unnecessary ps init files from FSBL This change in FSBL is done to remove unnecessary ps init files in FSBl application project. Only ps7_init.c and ps7_init.h are required files in FSBL project. Presence of ps7_init_gpl files lead to linker errors. Hence removed those and all other unnecessary files. Signed-off-by: Sarat Chand Savitala --- lib/sw_apps/zynq_fsbl/data/zynq_fsbl.tcl | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/lib/sw_apps/zynq_fsbl/data/zynq_fsbl.tcl b/lib/sw_apps/zynq_fsbl/data/zynq_fsbl.tcl index 4a899b29..1dbff9ff 100755 --- a/lib/sw_apps/zynq_fsbl/data/zynq_fsbl.tcl +++ b/lib/sw_apps/zynq_fsbl/data/zynq_fsbl.tcl @@ -69,7 +69,29 @@ proc check_stdout_hw {} { proc swapp_generate {} { # generate/copy ps init files - ::hsm::utils::generate_psinit + ::hsi::utils::generate_psinit + + #delete unnecessary files (only ps7_init.c & ps7_init.h are needed for FSBL) + set file "ps7_init.html" + if { [file exists $file] } { + file delete -force $file + } + + set file "ps7_init.tcl" + if { [file exists $file] } { + file delete -force $file + } + + set file "ps7_init_gpl.c" + if { [file exists $file] } { + file delete -force $file + } + + set file "ps7_init_gpl.h" + if { [file exists $file] } { + file delete -force $file + } + } proc swapp_get_linker_constraints {} {