sw_apps:zynqmp_fsbl: xilsecure library selection by default

While creating new FSBL+BSP project, made xilsecure library
to be selected by default. This avoids compilation errors
when FSBL project is created.

Signed-off-by: Sarat Chand Savitala <saratcha@xilinx.com>
This commit is contained in:
Sarat Chand Savitala 2015-05-13 10:54:45 +05:30 committed by Nava kishore Manne
parent 0c9ca599cf
commit 2374e5de1c
2 changed files with 13 additions and 6 deletions

View file

@ -41,4 +41,8 @@ END
BEGIN LIBRARY
PARAMETER LIBRARY_NAME = xilffs
END
END
BEGIN LIBRARY
PARAMETER LIBRARY_NAME = xilsecure
END

View file

@ -58,13 +58,16 @@ proc swapp_is_supported_sw {} {
# make sure we are using standalone OS
check_standalone_os;
# make sure xilffs is available
set librarylist [get_libs -filter "NAME==xilffs"];
# make sure xilffs and xilrsa are available
set librarylist_1 [get_libs -filter "NAME==xilffs"];
set librarylist_2 [get_libs -filter "NAME==xilsecure"];
if { [llength $librarylist] == 0 } {
if { [llength $librarylist_1] == 0 && [llength $librarylist_2] == 0 } {
error "This application requires xilffs and xilsecure libraries in the Board Support Package.";
} elseif { [llength $librarylist_1] == 0 } {
error "This application requires xilffs library in the Board Support Package.";
} elseif { [llength $librarylist] > 1} {
error "Multiple xilffs libraries present in the Board Support Package."
} elseif { [llength $librarylist_2] == 0 } {
error "This application requires xilsecure library in the Board Support Package.";
}
}