]> code.ossystems Code Review - meta-freescale.git/blob
5fda33cb62feb3c97c41f31075887882494b4bb4
[meta-freescale.git] /
1 From bc46bc886c79246065cf779a7b4e197b80acd9b1 Mon Sep 17 00:00:00 2001
2 From: Otavio Salvador <otavio@ossystems.com.br>
3 Date: Thu, 18 Jul 2013 19:52:11 -0300
4 Subject: [PATCH] build: Don't force things decided by build system
5
6 The build system should't enforce build flags and linking flags which
7 are not really necessary so it build system can do the "Right Thing"
8 automatically.
9
10 Upstream-Status: Pending
11
12 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
13 ---
14  DRI_1.10.4/src/makefile.linux | 20 +-------------------
15  EXA/src/makefile.linux        |  9 +--------
16  2 files changed, 2 insertions(+), 27 deletions(-)
17
18 diff --git a/DRI_1.10.4/src/makefile.linux b/DRI_1.10.4/src/makefile.linux
19 index 86aa903..9188432 100644
20 --- a/DRI_1.10.4/src/makefile.linux
21 +++ b/DRI_1.10.4/src/makefile.linux
22 @@ -37,29 +37,11 @@ ifeq ($(SWAP_SINGLE_PARAMETER),1)
23  CFLAGS  += -DSWAP_SINGLE_PARAMETER
24  endif
25  
26 -ifeq ($(BUILD_HARD_VFP),1)
27 -CFLAGS += -mfpu=neon -mfloat-abi=hard
28 -else
29 -CFLAGS += -mfpu=vfp -mfloat-abi=softfp
30 -endif
31 -
32  CFLAGS += -fvisibility=hidden -fPIC -DPIC
33  CFLAGS += -I. -I.. -I$(sysroot)/usr/include -I$(sysroot)/usr/include/xorg -I$(sysroot)/usr/include/$(PIXMAN)
34  CFLAGS += -I../../EXA/src/vivante_gal
35 -ifeq ($(YOCTO),1)
36 -# Yocto: compile will fail (does not support ldrex/strexeq/...)
37 -# specify armv6 to walkaround it
38 -# armv7: not supported by the toolchain
39 -CFLAGS += -march=armv6
40 -else
41 -CFLAGS += -marm
42 -# -Wa,-mimplicit-it=thumb
43 -endif
44 -
45  
46 -#LFLAGS += -lGAL -lm -ldl -ldrm -lX11 -module -Wl,-soname -Wl,$(target) -Wl,-rpath,/usr/lib/xorg/modules/extensions
47 -#LFLAGS += -lGAL -lm -ldl -ldrm -lX11 -module -Wl,-soname -Wl,$(target)
48 -LFLAGS += -L$(sysroot)/usr/lib -lGAL -lm -ldl -ldrm -lX11 -Wl,-soname -Wl,$(target)
49 +LFLAGS += -lGAL -lm -ldl -ldrm -lX11 -Wl,-soname -Wl,$(target)
50  
51  all: $(target)
52  
53 diff --git a/EXA/src/makefile.linux b/EXA/src/makefile.linux
54 index eb56de5..bfaf314 100644
55 --- a/EXA/src/makefile.linux
56 +++ b/EXA/src/makefile.linux
57 @@ -57,12 +57,6 @@ ifeq ($(BUSID_HAS_NUMBER),1)
58  CFLAGS  += -DBUSID_HAS_NUMBER
59  endif
60  
61 -ifeq ($(BUILD_HARD_VFP),1)
62 -CFLAGS += -mfpu=neon -mfloat-abi=hard
63 -else
64 -CFLAGS += -mfpu=vfp -mfloat-abi=softfp
65 -endif
66 -
67  # macro FREESCALE_EXTENSION is reserved for future use
68  CFLAGS += -fvisibility=hidden -fPIC -DPIC -O2 -DFREESCALE_EXTENSION
69  CFLAGS += -I. -I.. -I$(sysroot)/usr/include -I$(sysroot)/usr/include/xorg -I$(sysroot)/usr/include/$(PIXMAN)
70 @@ -73,8 +67,7 @@ CFLAGS += -marm
71  #CFLAGS += -mimplicit-it=thumb
72  
73  LFLAGS += -fPIC
74 -#LFLAGS +=  -Wl,--no-allow-shlib-undefined -lX11
75 -LFLAGS += -L$(sysroot)/usr/lib -lm -ldl -lGAL -Wl,-soname -Wl,vivante_drv.so
76 +LFLAGS += -lm -ldl -lGAL -Wl,-soname -Wl,vivante_drv.so
77  
78  
79  all: $(target)
80 -- 
81 1.8.3.2
82