From 60c693e0fe1c6e702c6119b29dc7e6f6bb8fd93f Mon Sep 17 00:00:00 2001 From: Kinjal Pravinbhai Patel Date: Tue, 28 Jul 2015 18:12:15 +0530 Subject: [PATCH] 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 Acked-by: Anirudha Sarangi --- lib/bsp/standalone/data/standalone.tcl | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/bsp/standalone/data/standalone.tcl b/lib/bsp/standalone/data/standalone.tcl index 84aedf02..151688e1 100644 --- a/lib/bsp/standalone/data/standalone.tcl +++ b/lib/bsp/standalone/data/standalone.tcl @@ -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 *]] {