aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/testfloat/files/Yocto-replace-COMPILE_PREFIX-gcc.patch
blob: 42de56d3898c57eeb182a00cf7d89b9c026da586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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