From 6d1cc7f29d044edc1b7c9995dcd13fea1d9dd76f Mon Sep 17 00:00:00 2001 From: Harini Katakam Date: Wed, 9 Sep 2015 11:25:30 +0530 Subject: [PATCH] lwip_echo_server: Display error when selecting 32 bit A53 compiler Update tcl to show an error message when lwip_echo_server is selected from the sw apps when using 32 bit A53 compiler. Signed-off-by: Harini Katakam Acked-by: Anirudha Sarangi --- .../lwip_echo_server/data/lwip_echo_server.tcl | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/sw_apps/lwip_echo_server/data/lwip_echo_server.tcl b/lib/sw_apps/lwip_echo_server/data/lwip_echo_server.tcl index bbb820cd..35417b32 100755 --- a/lib/sw_apps/lwip_echo_server/data/lwip_echo_server.tcl +++ b/lib/sw_apps/lwip_echo_server/data/lwip_echo_server.tcl @@ -142,6 +142,19 @@ proc swapp_is_supported_sw {} { # make sure we are using standalone OS check_standalone_os; + set sw_processor [hsi::get_sw_processor] + set processor [hsi::get_cells -hier [common::get_property HW_INSTANCE $sw_processor]] + set processor_type [common::get_property IP_NAME $processor] + + if {$processor_type == "psu_cortexa53"} { + set procdrv [hsi::get_sw_processor] + set compiler [::common::get_property CONFIG.compiler $procdrv] + if {[string compare -nocase $compiler "arm-none-eabi-gcc"] == 0} { + error "ERROR: lwip library does not support 32 bit A53 compiler"; + return; + } + } + # check for stdout being set check_stdout_sw;