Patchwork [02/11] xf86-video-imxfb: removed redundant cflags

login
register
mail settings
Submitter Morten Svendsen
Date Dec. 19, 2012, 10:05 a.m.
Message ID <2a6672095c16bf4dc8a5dfcd77fbaf4e47a8f800.1355911420.git.morten.thunbergsvendsen@prevas.dk>
Download mbox | patch
Permalink /patch/207289/
State Accepted
Delegated to: Jacob Kjaergaard
Headers show

Comments

Morten Svendsen - Dec. 19, 2012, 10:05 a.m.
From: Jacob Barsøe Kjærgaard <jacob.kjaergaard@prevas.dk>

removed hard coded cflags that forced softfp. now uses default
either softfp or hard. driver works in hardfp mode.
---
 .../xf86-video-imxfb/mfloat-toolchain-decides.patch         | 13 +++++++++++++
 recipes/xorg-driver/xf86-video-imxfb_11.09.01.oe            |  3 +++
 2 files changed, 16 insertions(+)
 create mode 100644 recipes/xorg-driver/xf86-video-imxfb/mfloat-toolchain-decides.patch

Patch

diff --git a/recipes/xorg-driver/xf86-video-imxfb/mfloat-toolchain-decides.patch b/recipes/xorg-driver/xf86-video-imxfb/mfloat-toolchain-decides.patch
new file mode 100644
index 0000000..0b395ac
--- /dev/null
+++ b/recipes/xorg-driver/xf86-video-imxfb/mfloat-toolchain-decides.patch
@@ -0,0 +1,13 @@ 
+--- xserver-xorg-video-imx-11.09.01.org/src/Makefile.am	2011-07-26 23:22:47.000000000 +0200
++++ xserver-xorg-video-imx-11.09.01/src/Makefile.am	2012-09-03 12:40:53.453580504 +0200
+@@ -24,7 +24,7 @@
+ # _ladir passes a dummy rpath to libtool so the thing will actually link
+ # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
+ 
+-NEON_CFLAGS=-march=armv7-a -mfpu=neon -mfloat-abi=softfp -Wa,-mfpu=neon
++NEON_CFLAGS=
+ 
+ NEON_CCASFLAGS=$(NEON_CFLAGS) -mthumb-interwork
+ NEON_ASFLAGS=-k -mcpu=cortex-a8 $(NEON_CCASFLAGS)
+
+Diff finished.  Mon Sep  3 12:40:54 2012
diff --git a/recipes/xorg-driver/xf86-video-imxfb_11.09.01.oe b/recipes/xorg-driver/xf86-video-imxfb_11.09.01.oe
index 7b12b7c..c491729 100644
--- a/recipes/xorg-driver/xf86-video-imxfb_11.09.01.oe
+++ b/recipes/xorg-driver/xf86-video-imxfb_11.09.01.oe
@@ -10,6 +10,7 @@  inherit autotools-autoreconf pkgconfig
 
 SRC_URI = "file://xserver-xorg-video-imx-${PV}.tar.gz \
            file://xf86-video-imxfb-fix-m4-hardcodded-paths.patch \
+	   file://mfloat-toolchain-decides.patch \
 	   "
 #SRC_URI += "file://xorg-1.12.patch"
 
@@ -26,6 +27,8 @@  CFLAGS += " -I${HOST_SYSROOT}${includedir}/xorg -I${HOST_SYSROOT}${includedir}/p
 
 S = "${SRCDIR}/xserver-xorg-video-imx-${PV}"
 
+
+
 do_compile[prefuncs] += "do_compile_fix_includes"
 
 do_compile_fix_includes2 () {