packages/pcmcia-cs/pcmcia-cs-3.2.8/superh-noO3.patch: Lowers Optimization
authorKristoffer Ericson <kristoffer_e1@hotmail.com>
Sun, 28 May 2006 03:34:26 +0000 (03:34 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sun, 28 May 2006 03:34:26 +0000 (03:34 +0000)
* Sets -O2 instead of -O3 (otherwise 'pcrel too far' error)
packages/pcmcia-cs/pcmcia-cs_3.2.8.bb: Including patch for sh3
* Sets usage of patch specific to sh3

packages/pcmcia-cs/pcmcia-cs-3.2.8/superh-noO3.patch [new file with mode: 0644]
packages/pcmcia-cs/pcmcia-cs_3.2.8.bb

diff --git a/packages/pcmcia-cs/pcmcia-cs-3.2.8/superh-noO3.patch b/packages/pcmcia-cs/pcmcia-cs-3.2.8/superh-noO3.patch
new file mode 100644 (file)
index 0000000..ca28688
--- /dev/null
@@ -0,0 +1,11 @@
+--- pcmcia-cs-3.2.8/rules.mk_orig      2006-05-26 23:23:12.000000000 +0000
++++ pcmcia-cs-3.2.8/rules.mk   2006-05-26 23:23:18.000000000 +0000
+@@ -1,7 +1,7 @@
+ # Global defaults
+ # Kernel compiles must have optimization enabled!
+-CFLAGS = -O3 -Wall -Wstrict-prototypes -pipe $(WFLAG)
++CFLAGS = -O2 -Wall -Wstrict-prototypes -pipe $(WFLAG)
+ COFLAGS = -kv
+ YFLAGS = -d
index 1db3006..4ca5377 100644 (file)
@@ -20,6 +20,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/pcmcia-cs/pcmcia-cs-${PV}.tar.gz \
           file://wnv.conf"
 
 SRC_URI_append_spitz = " file://nocleanup.patch;patch=1"
+SRC_URI_append_sh3 = " file://superh-noO3.patch;patch=1"
+
 S = "${WORKDIR}/pcmcia-cs-${PV}"
 
 INITSCRIPT_NAME = "pcmcia"