apex-env_1.5.14.bb: Fix compile error discovered with gcc 4.5
authorKhem Raj <raj.khem@gmail.com>
Sun, 9 Jan 2011 22:09:57 +0000 (14:09 -0800)
committerKhem Raj <raj.khem@gmail.com>
Sun, 9 Jan 2011 22:12:41 +0000 (14:12 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/apex/apex-env_1.5.14.bb
recipes/apex/files/invalid-conversion.patch [new file with mode: 0644]

index 38a8960..896d8d1 100644 (file)
@@ -3,10 +3,11 @@ SECTION = "misc"
 PRIORITY = "optional"
 HOMEPAGE = "http://wiki.buici.com/twiki/bin/view/Main/ApexBootloader"
 LICENSE = "GPL"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "ftp://ftp.buici.com/pub/apex/apex-${PV}.tar.gz \
        file://find-apex-partition.patch \
+       file://invalid-conversion.patch \
        "
 S = ${WORKDIR}/apex-${PV}/usr
 
diff --git a/recipes/apex/files/invalid-conversion.patch b/recipes/apex/files/invalid-conversion.patch
new file mode 100644 (file)
index 0000000..496d0d4
--- /dev/null
@@ -0,0 +1,13 @@
+Index: usr/link.cc
+===================================================================
+--- usr/link.cc
++++ usr/link.cc
+@@ -232,7 +232,7 @@ static struct descriptor parse_region (c
+   struct descriptor d;
+   memset (&d, 0, sizeof (d));
+-  char* pch;
++  const char* pch;
+   if ((pch = index (sz, ':'))) {
+     int c = pch - sz;
+     if (c > sizeof (d.driver) - 1)