From b6aa8be915f76f04bf924ddf629db7851e126875 Mon Sep 17 00:00:00 2001 From: Sarat Chand Savitala Date: Tue, 17 Feb 2015 00:38:30 +0530 Subject: [PATCH] sw_apps:zynqmp_fsbl: Change to copy ps init files in FSBL This change is to handle the PS init files copying. Signed-off-by: Sarat Chand Savitala --- lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl | 25 +++++++------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl b/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl index 65fab521..92ba7f88 100755 --- a/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl +++ b/lib/sw_apps/zynqmp_fsbl/data/zynqmp_fsbl.tcl @@ -95,28 +95,19 @@ proc check_stdout_hw {} { } proc swapp_generate {} { + # generate/copy ps init files + ::hsi::utils::generate_psinit #delete unnecessary files (only pss_init.c & pss_init.h are needed for FSBL) - set file "pss_init.html" - if { [file exists $file] } { - file delete -force $file - } - set file "pss_init.tcl" - if { [file exists $file] } { - file delete -force $file - } + set files(0) "pss_init.html" + set files(1) "pss_init.tcl" + set files(2) "pss_init_gpl.c" + set files(3) "pss_init_gpl.h" - set file "pss_init_gpl.c" - if { [file exists $file] } { - file delete -force $file + foreach init_file [array get files] { + file delete -force $init_file } - - set file "pss_init_gpl.h" - if { [file exists $file] } { - file delete -force $file - } - } proc swapp_get_linker_constraints {} {