diff options
author | Joshua Lock <josh@linux.intel.com> | 2012-01-03 17:31:20 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-04 11:24:24 +0000 |
commit | e19586765af518892ed55d9bfd45d0857566ae98 (patch) | |
tree | 7cc708ec0e7bc16b60bb7103eb6f81c1b067dce8 /meta/recipes-graphics/clutter/cogl | |
parent | ab56f27d96cbd2c79ca16d12333687ca9720934c (diff) | |
download | openembedded-core-e19586765af518892ed55d9bfd45d0857566ae98.tar.gz openembedded-core-e19586765af518892ed55d9bfd45d0857566ae98.tar.bz2 openembedded-core-e19586765af518892ed55d9bfd45d0857566ae98.tar.xz openembedded-core-e19586765af518892ed55d9bfd45d0857566ae98.zip |
cogl: ensure we can build on armv4
Without this patch cogl will not build for armv4 as it uses an
unsupported instruction. This changeset adds a patch from Wolfgang
Denk to add an extra guard around armv5 or above code.
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/clutter/cogl')
-rw-r--r-- | meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch | 23 |
1 files changed, 23 insertions, 0 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 000000000..36350854e --- /dev/null +++ b/meta/recipes-graphics/clutter/cogl/build_for_armv4t.patch @@ -0,0 +1,23 @@ +GCC will define __ARM_ARCH_4T__ when building with "-march=armv4t" so we can +check this to turn off the use of 'clz' instructions, which otherwise would +cause compile errors like "selected processor does not support ARM mode +`clz r3,r0'". + +Upstream-Status: Submitted + +Signed-off-by: Wolfgang Denk <wd@denx.de> +Signed-off-by: Joshua Lock <josh@linux.intel.com> + +Index: cogl-1.8.2/cogl/cogl-fixed.c +=================================================================== +--- cogl-1.8.2.orig/cogl/cogl-fixed.c ++++ cogl-1.8.2/cogl/cogl-fixed.c +@@ -626,7 +626,7 @@ cogl_fixed_sqrt (CoglFixed x) + /* + * Find the highest bit set + */ +-#if defined (__arm__) ++#if defined (__arm__) && !defined(__ARM_ARCH_4T__) + /* This actually requires at least arm v5, but gcc does not seem + * to set the architecture defines correctly, and it is I think + * very unlikely that anyone will want to use clutter on anything |