diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch b/import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch new file mode 100644 index 000000000..6b7c1e62a --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-graphics/xorg-lib/pixman/0001-v3-test-add-a-check-for-FE_DIVBYZERO.patch @@ -0,0 +1,65 @@ +From fcd5eb9bd0e8674a6f4987a8fce7dc1ba8f9320c Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Date: Thu, 17 Sep 2015 03:08:36 +0200 +Subject: [PATCH] [v3] test: add a check for FE_DIVBYZERO + +Some architectures, such as Microblaze and Nios2, currently do not +implement FE_DIVBYZERO, even though they have <fenv.h> and +feenableexcept(). This commit adds a configure.ac check to verify +whether FE_DIVBYZERO is defined or not, and if not, disables the +problematic code in test/utils.c. + +Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> +Signed-off-by: Marek Vasut <marex@denx.de> +Upstream-Status: Backport [commit 4297e9058] +--- +Changes v1 -> v2: + + * Use the ac_cv_have_decl_FE_DIVBYZERO variable, which is + automatically set by AC_CHECK_DECL, to decide whether or not + HAVE_FEDIVBYZERO should be defined. + +Changes v2 -> v3: + + * Use action-if-yes of AC_CHECK_DECL as suggested in + http://lists.freedesktop.org/archives/pixman/2014-February/003176.html +--- + configure.ac | 5 +++++ + test/utils.c | 2 ++ + 2 files changed, 7 insertions(+) + +diff --git a/configure.ac b/configure.ac +index f93cc30..424bfd3 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -891,6 +891,11 @@ if test x$have_feenableexcept = xyes; then + AC_DEFINE(HAVE_FEENABLEEXCEPT, 1, [Whether we have feenableexcept()]) + fi + ++AC_CHECK_DECL([FE_DIVBYZERO], ++ [AC_DEFINE(HAVE_FEDIVBYZERO, 1, [Whether we have FE_DIVBYZERO])], ++ [], ++ [[#include <fenv.h>]]) ++ + AC_CHECK_FUNC(gettimeofday, have_gettimeofday=yes, have_gettimeofday=no) + AC_CHECK_HEADER(sys/time.h, have_sys_time_h=yes, have_sys_time_h=no) + if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then +diff --git a/test/utils.c b/test/utils.c +index 222d4d5..8657966 100644 +--- a/test/utils.c ++++ b/test/utils.c +@@ -966,9 +966,11 @@ enable_divbyzero_exceptions (void) + { + #ifdef HAVE_FENV_H + #ifdef HAVE_FEENABLEEXCEPT ++#ifdef HAVE_FEDIVBYZERO + feenableexcept (FE_DIVBYZERO); ++#endif + #endif + #endif + } + + void +-- +2.1.4 + |