bsp: added support for 32bit bsp for A53
This patch modifies standalone bsp tcl to generate 32bit/64bit a53 bsp by keeping compiler check in the tcl to copy the appropriate source file while generating standalone bsp Signed-off-by: Kinjal Pravinbhai Patel <patelki@xilinx.com> Acked-by: Anirudha Sarangi <anirudh@xilinx.com>
This commit is contained in:
parent
e1dd360db8
commit
60c693e0fe
1 changed files with 10 additions and 3 deletions
|
@ -96,10 +96,17 @@ proc generate {os_handle} {
|
|||
}
|
||||
"psu_cortexa53" {
|
||||
set procdrv [hsi::get_sw_processor]
|
||||
set ccdir "./src/cortexa53/64bit/gcc"
|
||||
set compiler [get_property CONFIG.compiler $procdrv]
|
||||
if {[string compare -nocase $compiler "arm-none-eabi-gcc"] == 0} {
|
||||
set ccdir "./src/cortexa53/32bit/gcc"
|
||||
set cortexa53srcdir1 "./src/cortexa53/32bit"
|
||||
} else {
|
||||
set ccdir "./src/cortexa53/64bit/gcc"
|
||||
set cortexa53srcdir1 "./src/cortexa53/64bit"
|
||||
}
|
||||
|
||||
set includedir "./src/cortexa53/includes_ps"
|
||||
set cortexa53srcdir64 "./src/cortexa53/64bit"
|
||||
foreach entry [glob -nocomplain [file join $cortexa53srcdir64 *]] {
|
||||
foreach entry [glob -nocomplain [file join $cortexa53srcdir1 *]] {
|
||||
file copy -force $entry "./src/"
|
||||
}
|
||||
foreach entry [glob -nocomplain [file join $ccdir *]] {
|
||||
|
|
Loading…
Add table
Reference in a new issue