From 2645d56b26afc5ea0a2ce37781f32fc2f98c0a4d Mon Sep 17 00:00:00 2001 From: Kinjal Pravinbhai Patel Date: Thu, 23 Jul 2015 12:11:02 +0530 Subject: [PATCH] bsp: a9: chnage in gcc makefile for compiler check Modified cortexa9/gcc/Makefile to keep a correct check of a compiler to update ECC_FLAGS to fix a bug introduced during new version creation of BSP Signed-off-by: Kinjal Pravinbhai Patel Reviewed-by: Anirudha Sarangi --- lib/bsp/standalone/src/changelog.txt | 3 +++ lib/bsp/standalone/src/cortexa9/gcc/Makefile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bsp/standalone/src/changelog.txt b/lib/bsp/standalone/src/changelog.txt index b63afc51..8eadd393 100644 --- a/lib/bsp/standalone/src/changelog.txt +++ b/lib/bsp/standalone/src/changelog.txt @@ -235,4 +235,7 @@ * 5.2 pkp 06/08/15 Modified cortexa9/gcc/translation_table.S to put a check for * XPAR_PS7_DDR_0_S_AXI_BASEADDR to confirm if DDR is present or not and * accordingly generate the translation table + * 5.2 pkp 23/07/15 Modified cortexa9/gcc/Makefile to keep a correct check of a compiler + * to update ECC_FLAGS to fix a bug introduced during new version creation + * of BSP. *****************************************************************************************/ diff --git a/lib/bsp/standalone/src/cortexa9/gcc/Makefile b/lib/bsp/standalone/src/cortexa9/gcc/Makefile index 62c5f544..4be69b28 100644 --- a/lib/bsp/standalone/src/cortexa9/gcc/Makefile +++ b/lib/bsp/standalone/src/cortexa9/gcc/Makefile @@ -42,7 +42,7 @@ LIB=libxil.a CC_FLAGS = $(subst -pg, -DPROFILING, $(COMPILER_FLAGS)) ECC_FLAGS = $(subst -pg, -DPROFILING, $(EXTRA_COMPILER_FLAGS)) -ifeq ($(notdir $(CC))) , arm-xilinx-eabi-gcc) +ifeq (($(notdir $(CC))) , arm-xilinx-eabi-gcc) ECC_FLAGS += -nostartfiles\ -march=armv7-a \ -mfloat-abi=soft \