diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch | 23 | ||||
-rw-r--r-- | meta/recipes-graphics/clutter/cogl_1.8.2.bb | 5 | ||||
-rw-r--r-- | meta/recipes-graphics/clutter/cogl_git.bb | 5 |
3 files changed, 30 insertions, 3 deletions
diff --git a/meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch b/meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch new file mode 100644 index 0000000000..36350854ee --- /dev/null +++ b/meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | GCC will define __ARM_ARCH_4T__ when building with "-march=armv4t" so we can | ||
2 | check this to turn off the use of 'clz' instructions, which otherwise would | ||
3 | cause compile errors like "selected processor does not support ARM mode | ||
4 | `clz r3,r0'". | ||
5 | |||
6 | Upstream-Status: Submitted | ||
7 | |||
8 | Signed-off-by: Wolfgang Denk <wd@denx.de> | ||
9 | Signed-off-by: Joshua Lock <josh@linux.intel.com> | ||
10 | |||
11 | Index: cogl-1.8.2/cogl/cogl-fixed.c | ||
12 | =================================================================== | ||
13 | --- cogl-1.8.2.orig/cogl/cogl-fixed.c | ||
14 | +++ cogl-1.8.2/cogl/cogl-fixed.c | ||
15 | @@ -626,7 +626,7 @@ cogl_fixed_sqrt (CoglFixed x) | ||
16 | /* | ||
17 | * Find the highest bit set | ||
18 | */ | ||
19 | -#if defined (__arm__) | ||
20 | +#if defined (__arm__) && !defined(__ARM_ARCH_4T__) | ||
21 | /* This actually requires at least arm v5, but gcc does not seem | ||
22 | * to set the architecture defines correctly, and it is I think | ||
23 | * very unlikely that anyone will want to use clutter on anything | ||
diff --git a/meta/recipes-graphics/clutter/cogl_1.8.2.bb b/meta/recipes-graphics/clutter/cogl_1.8.2.bb index d99c443b5f..25875f344a 100644 --- a/meta/recipes-graphics/clutter/cogl_1.8.2.bb +++ b/meta/recipes-graphics/clutter/cogl_1.8.2.bb | |||
@@ -1,9 +1,12 @@ | |||
1 | require cogl.inc | 1 | require cogl.inc |
2 | 2 | ||
3 | PR = "r1" | ||
4 | |||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
4 | 6 | ||
5 | SRC_URI = "http://source.clutter-project.org/sources/cogl/1.8/${BPN}-${PV}.tar.bz2 \ | 7 | SRC_URI = "http://source.clutter-project.org/sources/cogl/1.8/${BPN}-${PV}.tar.bz2 \ |
6 | file://macro-versions.patch" | 8 | file://macro-versions.patch \ |
9 | file://build_for_armv4t.patch" | ||
7 | 10 | ||
8 | SRC_URI[md5sum] = "3145cbf7ff162c33065ea4421c047e2f" | 11 | SRC_URI[md5sum] = "3145cbf7ff162c33065ea4421c047e2f" |
9 | SRC_URI[sha256sum] = "8b647b51a4fa93034fcd74ffe86b3d4c919b0e54789108f6d065414e6162ab73" | 12 | SRC_URI[sha256sum] = "8b647b51a4fa93034fcd74ffe86b3d4c919b0e54789108f6d065414e6162ab73" |
diff --git a/meta/recipes-graphics/clutter/cogl_git.bb b/meta/recipes-graphics/clutter/cogl_git.bb index 7a10dd8004..689b965288 100644 --- a/meta/recipes-graphics/clutter/cogl_git.bb +++ b/meta/recipes-graphics/clutter/cogl_git.bb | |||
@@ -5,11 +5,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
5 | # the 1.8.2 tag | 5 | # the 1.8.2 tag |
6 | SRCREV = "e398e374e2ff0e88bc1d63577a192f8ca04a1cb5" | 6 | SRCREV = "e398e374e2ff0e88bc1d63577a192f8ca04a1cb5" |
7 | PV = "1.8.2+git${SRCPV}" | 7 | PV = "1.8.2+git${SRCPV}" |
8 | PR = "r0" | 8 | PR = "r1" |
9 | 9 | ||
10 | DEFAULT_PREFERENCE = "-1" | 10 | DEFAULT_PREFERENCE = "-1" |
11 | 11 | ||
12 | SRC_URI = "git://git.gnome.org/cogl;protocol=git;branch=master" | 12 | SRC_URI = "git://git.gnome.org/cogl;protocol=git;branch=master \ |
13 | file://build_for_armv4t.patch" | ||
13 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
14 | 15 | ||
15 | AUTOTOOLS_AUXDIR = "${S}/build" | 16 | AUTOTOOLS_AUXDIR = "${S}/build" |