diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-07-29 15:39:32 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-07-31 00:02:24 +0100 |
commit | 24132e4cf15be86c432c2a470fcaa2d1337e600f (patch) | |
tree | ca2cc5fd75b893957d785f38cd18c1f3dfe7b60b /meta/packages/libmad | |
parent | 4460087b838dd2e882e4b354049464394df04a7e (diff) | |
download | poky-24132e4cf15be86c432c2a470fcaa2d1337e600f.tar.gz |
libmad: fix for building on mips with gcc-4.5.0
added a patch:
fix_for_mips_with_gcc-4.5.0.patch
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/packages/libmad')
-rw-r--r-- | meta/packages/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch | 31 | ||||
-rw-r--r-- | meta/packages/libmad/libmad_0.15.1b.bb | 7 |
2 files changed, 35 insertions, 3 deletions
diff --git a/meta/packages/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch b/meta/packages/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch new file mode 100644 index 0000000000..785a8a22db --- /dev/null +++ b/meta/packages/libmad/libmad/fix_for_mips_with_gcc-4.5.0.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | gcc 4.4 did this: The MIPS port no longer recognizes the h asm constraint. It was necessary to remove this constraint in order to avoid generating unpredictable code sequences. | ||
2 | |||
3 | so the libmad build with gcc-4.5.0 was failing. | ||
4 | |||
5 | Found a solution here: | ||
6 | |||
7 | http://us.generation-nt.com/answer/bug-568418-libmad0-dev-mpg321-compilation-errors-mips-mipsel-architectures-help-169033451.html | ||
8 | |||
9 | 2010/07/29 | ||
10 | Nitin A Kamble <nitin.a.kamble@intel.com> | ||
11 | |||
12 | Index: libmad-0.15.1b/fixed.h | ||
13 | =================================================================== | ||
14 | --- libmad-0.15.1b.orig/fixed.h | ||
15 | +++ libmad-0.15.1b/fixed.h | ||
16 | @@ -297,6 +297,15 @@ mad_fixed_t mad_f_mul_inline(mad_fixed_t | ||
17 | |||
18 | /* --- MIPS ---------------------------------------------------------------- */ | ||
19 | |||
20 | +# elif defined(FPM_MIPS) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)) | ||
21 | + typedef unsigned int u64_di_t __attribute__ ((mode (DI))); | ||
22 | +# define MAD_F_MLX(hi, lo, x, y) \ | ||
23 | + do { \ | ||
24 | + u64_di_t __ll = (u64_di_t) (x) * (y); \ | ||
25 | + hi = __ll >> 32; \ | ||
26 | + lo = __ll; \ | ||
27 | + } while (0) | ||
28 | + | ||
29 | # elif defined(FPM_MIPS) | ||
30 | |||
31 | /* | ||
diff --git a/meta/packages/libmad/libmad_0.15.1b.bb b/meta/packages/libmad/libmad_0.15.1b.bb index 264adb15a9..acc9df5501 100644 --- a/meta/packages/libmad/libmad_0.15.1b.bb +++ b/meta/packages/libmad/libmad_0.15.1b.bb | |||
@@ -8,11 +8,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | |||
8 | SECTION = "libs" | 8 | SECTION = "libs" |
9 | PRIORITY = "optional" | 9 | PRIORITY = "optional" |
10 | DEPENDS = "libid3tag" | 10 | DEPENDS = "libid3tag" |
11 | PR = "r1" | 11 | PR = "r2" |
12 | 12 | ||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \ | 13 | SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \ |
14 | file://no-force-mem.patch;patch=1 \ | 14 | file://no-force-mem.patch \ |
15 | file://add-pkgconfig.patch;patch=1" | 15 | file://add-pkgconfig.patch \ |
16 | file://fix_for_mips_with_gcc-4.5.0.patch" | ||
16 | 17 | ||
17 | S = "${WORKDIR}/libmad-${PV}" | 18 | S = "${WORKDIR}/libmad-${PV}" |
18 | 19 | ||