From 6c7567e05c28b8cb6c7dc68c278950a32feb6f64 Mon Sep 17 00:00:00 2001
From: Ting Liu <b28495@freescale.com>
Date: Wed, 9 May 2012 02:42:57 -0500
Subject: [PATCH] Yocto: replace $(COMPILE_PREFIX)gcc with $(CC) and remove -te500v2 flags

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 SoftFloat-2b/softfloat/bits32/powerpc-GCC/Makefile |    4 ++--
 SoftFloat-2b/softfloat/bits64/powerpc-GCC/Makefile |    4 ++--
 testfloat/powerpc-linux-gcc/Makefile               |    8 ++++----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/SoftFloat-2b/softfloat/bits32/powerpc-GCC/Makefile b/SoftFloat-2b/softfloat/bits32/powerpc-GCC/Makefile
index 28f1e33..4098048 100644
--- a/SoftFloat-2b/softfloat/bits32/powerpc-GCC/Makefile
+++ b/SoftFloat-2b/softfloat/bits32/powerpc-GCC/Makefile
@@ -5,8 +5,8 @@ SOFTFLOAT_MACROS = ../softfloat-macros
 OBJ = .o
 EXE =
 INCLUDES = -I. -I..
-COMPILE_C = $(COMPILE_PREFIX)gcc -msoft-float -c -o $@ $(INCLUDES) -I- -O2
-LINK = $(COMPILE_PREFIX)gcc -o $@
+COMPILE_C = $(CC) -msoft-float -c -o $@ $(INCLUDES) -I- -O2
+LINK = $(CC) -o $@
 
 ALL: softfloat$(OBJ) timesoftfloat$(EXE)
 
diff --git a/SoftFloat-2b/softfloat/bits64/powerpc-GCC/Makefile b/SoftFloat-2b/softfloat/bits64/powerpc-GCC/Makefile
index a5e2cc7..c34e16e 100644
--- a/SoftFloat-2b/softfloat/bits64/powerpc-GCC/Makefile
+++ b/SoftFloat-2b/softfloat/bits64/powerpc-GCC/Makefile
@@ -5,8 +5,8 @@ SOFTFLOAT_MACROS = ../softfloat-macros
 OBJ = .o
 EXE =
 INCLUDES = -I. -I..
-COMPILE_C = $(COMPILE_PREFIX) -mcpu=8548 -mhard-float -mfloat-gprs=double -o $@ $(INCLUDES) -I- -O2
-LINK = $(COMPILE_PREFIX) -o $@
+COMPILE_C = $(CC) -mcpu=8548 -mhard-float -mfloat-gprs=double -o $@ $(INCLUDES) -I- -O2
+LINK = $(CC) -o $@
 
 ALL: softfloat$(OBJ) timesoftfloat$(EXE)
 
diff --git a/testfloat/powerpc-linux-gcc/Makefile b/testfloat/powerpc-linux-gcc/Makefile
index de50aad..1a8b5f7 100644
--- a/testfloat/powerpc-linux-gcc/Makefile
+++ b/testfloat/powerpc-linux-gcc/Makefile
@@ -8,13 +8,13 @@ OBJ = .o
 EXE =
 INCLUDES = -I. -I.. -I$(SOFTFLOAT_DIR)
 
-COMPILE_C = $(COMPILE_PREFIX)gcc -c -o $@ $(INCLUDES) -I- -O $(EXTRA_CFLAGS)
+COMPILE_C = $(CC) -c -o $@ $(INCLUDES) -I- -O $(EXTRA_CFLAGS)
 
-COMPILE_C_HARD = $(COMPILE_PREFIX)gcc -c -te500v2 -o $@ $(INCLUDES)
+COMPILE_C_HARD = $(CC) -c -o $@ $(INCLUDES)
 
-COMPILE_SLOWFLOAT_C = $(COMPILE_PREFIX)gcc -c -o $@ $(INCLUDES) -I- -O
+COMPILE_SLOWFLOAT_C = $(CC) -c -o $@ $(INCLUDES) -I- -O
 
-LINK = $(COMPILE_PREFIX)gcc -lm -o $@
+LINK = $(CC) -lm -o $@
 
 SOFTFLOAT_H = $(SOFTFLOAT_DIR)/softfloat.h
 SOFTFLOAT_OBJ = $(SOFTFLOAT_DIR)/softfloat$(OBJ)
-- 
1.7.3.4

