diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 15:32:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-18 15:36:06 +0000 |
commit | 673abd92f999829bdd67d0273c43570a62123a63 (patch) | |
tree | 63132d1ffc1cb5bf50d244b184ca8d58a9cbc85c /meta/recipes-kernel/linux/linux-2.6.23 | |
parent | fed61beb31c47e2d96af905a7047fe78d64c9bd0 (diff) | |
download | openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.gz openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.bz2 openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.tar.xz openembedded-core-673abd92f999829bdd67d0273c43570a62123a63.zip |
conf/machine: Drop older machines with no recent updates
These are all moving to meta-extras. Ideally in the future machines
such as these will be maintained to topic specific layers as we move
to a more layer oriented model. If this causes a problem for anyone
please discuss it on the mailing list.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/linux/linux-2.6.23')
-rw-r--r-- | meta/recipes-kernel/linux/linux-2.6.23/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-2.6.23/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch b/meta/recipes-kernel/linux/linux-2.6.23/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch new file mode 100644 index 000000000..3ff0c07c1 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-2.6.23/1300-fix-gcc-4.3-false-modulo-optimization.patch.patch @@ -0,0 +1,48 @@ +From f5b973489beb1a1239dfad53e3ad6e36ff7ee958 Mon Sep 17 00:00:00 2001 +From: Segher Boessenkool <segher@kernel.crashing.org> +Date: Thu, 9 Oct 2008 21:18:27 +0100 +Subject: [PATCH] fix-gcc-4.3-false-modulo-optimization.patch + +I tried to compile the current stable kernel +(a2ef813d2f439a3e9f377d33a2e5baad098afb7e) +and get the following errors: + +kernel/built-in.o: In function `timespec_add_ns': +/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174: +undefined reference to `__aeabi_uldivmod' +/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179: +undefined reference to `__aeabi_uldivmod' +/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:174: +undefined reference to `__aeabi_uldivmod' +/mnt/data/Freerunner/Gentoo/rootinstall/usr/src/linux/include/linux/time.h:179: +undefined reference to `__aeabi_uldivmod' + +applying the following patch solved the problem: +-------- +Prevent gcc-4.3 form "optimizing" the while loop into a costly modulo operation. +Patch found at http://lkml.org/lkml/2008/2/22/464. + +Reported-by: Sven Rebhan <odinshorse@googlemail.com> +Signed-off-by: Segher Boessenkool <segher@kernel.crashing.org> +--- + include/linux/time.h | 4 ++++ + 1 files changed, 4 insertions(+), 0 deletions(-) + +diff --git a/include/linux/time.h b/include/linux/time.h +index b04136d..3e8fd9e 100644 +--- a/include/linux/time.h ++++ b/include/linux/time.h +@@ -173,6 +173,10 @@ static inline void timespec_add_ns(struct timespec *a, u64 ns) + { + ns += a->tv_nsec; + while(unlikely(ns >= NSEC_PER_SEC)) { ++ /* The following asm() prevents the compiler from ++ * optimising this loop into a modulo operation. */ ++ asm("" : "+r"(ns)); ++ + ns -= NSEC_PER_SEC; + a->tv_sec++; + } +-- +1.5.6.5 + |