x32 and misc fixes
The following changes since commit 4215b2fb04b3ed61e8e1cf0847639cf6fe31d337:
connman: update to 0.78 (2011-12-09 17:46:25 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib sgw/stage
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=sgw/stage
Christopher Larson (1):
lzop-1.03: add recipe
Frans Meulenbroeks (1):
u-boot: renamed dir from uboot to the more appropriate u-boot
H.J. Lu (3):
mesa: Properly create share library for x32
siteinfo: create a new siteinfo for x32-linux
openssl-1.0.0e: Update x32 Configure
Nitin A Kamble (8):
gst-fluendo.inc: remove unneccessary hack
mdadm: Make custom CC definition conditional
pulseaudio: fix compilation with x32 toolchain
libacpi: Fix libdir for x32
findutils: Fix compilation for x32 toolchain
pax: fix compilation with x32 toolchain
libacpi: Use the cross strip instead of host strip x86 tune: fix TUNE_PKGARCH definition for proper PACKAGE_ARCH
Saul Wold (2):
ncurses: libcurses.so should link to libncurses.so
self-hosted: Add ext2 utilites and perl-pod for building
meta/classes/siteinfo.bbclass | 2 +-
meta/conf/machine/include/ia32/arch-ia32.inc | 4 +-
meta/conf/machine/include/tune-core2.inc | 6 +-
.../libacpi/files/libacpi_fix_for_x32.patch | 47 +++
.../use_correct_strip_in_cross_environment.patch | 23 ++
meta/recipes-bsp/libacpi/libacpi_0.2.bb | 6 +-
.../{uboot => u-boot}/files/fix-arm920t-eabi.patch | 0
...Drop-config.h-include-in-tools-imximage.h.patch | 0
...ove-LDSCRIPT-processing-to-the-top-level-.patch | 0
...Drop-config.h-include-in-tools-imximage.h.patch | 0
...ove-LDSCRIPT-processing-to-the-top-level-.patch | 0
.../{uboot => u-boot}/u-boot-mkimage_2011.03.bb | 0
.../{uboot => u-boot}/u-boot-mkimage_2011.06.bb | 0
meta/recipes-bsp/{uboot => u-boot}/u-boot.inc | 0
.../{uboot => u-boot}/u-boot_2011.03.bb | 0
.../{uboot => u-boot}/u-boot_2011.06.bb | 0
.../openssl-1.0.0e/openssl_fix_for_x32.patch | 2 +-
meta/recipes-core/ncurses/ncurses.inc | 6 +-
meta/recipes-core/tasks/task-self-hosted.bb | 54 ++--
.../findutils-4.4.2_fix_for_x32.patch | 36 ++
meta/recipes-extended/findutils/findutils_4.4.2.bb | 5 +-
.../mdadm/files/mdadm-3.2.2_fix_for_x32.patch | 24 ++
meta/recipes-extended/mdadm/mdadm_3.2.2.bb | 4 +-
.../pax/pax/pax-3.4_fix_for_x32.patch | 185 +++++++++
meta/recipes-extended/pax/pax_3.4.bb | 5 +-
.../mesa/mesa/mesa_fix_for_x32.patch | 20 +-
meta/recipes-multimedia/gstreamer/gst-fluendo.inc | 4 -
.../pulseaudio/pulseaudo_fix_for_x32.patch | 225 +++++++++++
.../pulseaudio/pulseaudio_1.1.bb | 3 +-
meta/recipes-support/lzop/lzop/acinclude.m4 | 390 ++++++++++++++++++++
meta/recipes-support/lzop/lzop_1.03.bb | 27 ++
meta/site/x32-linux | 9 +
32 files changed, 1040 insertions(+), 47 deletions(-)
create mode 100644 meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch
create mode 100644 meta/recipes-bsp/libacpi/files/use_correct_strip_in_cross_environment.patch
rename meta/recipes-bsp/{uboot => u-boot}/files/fix-arm920t-eabi.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage-2011.03/0001-Drop-config.h-include-in-tools-imximage.h.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage-2011.03/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage/0001-Drop-config.h-include-in-tools-imximage.h.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage_2011.03.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage_2011.06.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot.inc (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot_2011.03.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot_2011.06.bb (100%)
create mode 100644 meta/recipes-extended/findutils/findutils-4.4.2/findutils-4.4.2_fix_for_x32.patch
create mode 100644 meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch
create mode 100644 meta/recipes-extended/pax/pax/pax-3.4_fix_for_x32.patch
create mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch
create mode 100644 meta/recipes-support/lzop/lzop/acinclude.m4
create mode 100644 meta/recipes-support/lzop/lzop_1.03.bb
create mode 100644 meta/site/x32-linuxSignature · 1 line
1.7.6.4
[CONSOLIDATED PULL 06/15] pulseaudio: fix compilation with x32 toolchain
From: Nitin A Kamble <[email protected]>
This commit makes assembly syntax compatible with x32 toolchain to avoid x32 gcc errors.
--- .../pulseaudio/pulseaudo_fix_for_x32.patch | 225 ++++++++++++++++++++ .../pulseaudio/pulseaudio_1.1.bb | 3 +- 2 files changed, 227 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch new file +225 -0
@@ -0,0 +1,225 @@ +UpstreamStatus: Pending + +This patch makes assembly syntax compatible to the x32 toolchain. + +This fixes compilations errors with x32 gcc. + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/03 +Index: pulseaudio-1.1/src/pulsecore/svolume_mmx.c +=================================================================== +--- pulseaudio-1.1.orig/src/pulsecore/svolume_mmx.c ++++ pulseaudio-1.1/src/pulsecore/svolume_mmx.c +@@ -107,7 +107,7 @@ static void pa_volume_s16ne_mmx(int16_t + " test $1, %2 \n\t" /* check for odd samples */ + " je 2f \n\t" + +- " movd (%1, %3, 4), %%mm0 \n\t" /* | v0h | v0l | */ ++ " movd (%q1, %3, 4), %%mm0 \n\t" /* | v0h | v0l | */ + " movw (%0), %w4 \n\t" /* .. | p0 | */ + " movd %4, %%mm1 \n\t" + VOLUME_32x16 (%%mm1, %%mm0) +@@ -122,7 +122,7 @@ static void pa_volume_s16ne_mmx(int16_t + " je 4f \n\t" + + "3: \n\t" /* do samples in groups of 2 */ +- " movq (%1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq (%q1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ + " movd (%0), %%mm1 \n\t" /* .. | p1 | p0 | */ + VOLUME_32x16 (%%mm1, %%mm0) + " movd %%mm0, (%0) \n\t" /* .. | p1*v1 | p0*v0 | */ +@@ -135,8 +135,8 @@ static void pa_volume_s16ne_mmx(int16_t + " je 6f \n\t" + + "5: \n\t" /* do samples in groups of 4 */ +- " movq (%1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ +- " movq 8(%1, %3, 4), %%mm2 \n\t" /* | v3h | v3l | v2h | v2l | */ ++ " movq (%q1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq 8(%q1, %3, 4), %%mm2 \n\t" /* | v3h | v3l | v2h | v2l | */ + " movd (%0), %%mm1 \n\t" /* .. | p1 | p0 | */ + " movd 4(%0), %%mm3 \n\t" /* .. | p3 | p2 | */ + VOLUME_32x16 (%%mm1, %%mm0) +@@ -180,7 +180,7 @@ static void pa_volume_s16re_mmx(int16_t + " test $1, %2 \n\t" /* check for odd samples */ + " je 2f \n\t" + +- " movd (%1, %3, 4), %%mm0 \n\t" /* | v0h | v0l | */ ++ " movd (%q1, %3, 4), %%mm0 \n\t" /* | v0h | v0l | */ + " movw (%0), %w4 \n\t" /* .. | p0 | */ + " rorw $8, %w4 \n\t" + " movd %4, %%mm1 \n\t" +@@ -197,7 +197,7 @@ static void pa_volume_s16re_mmx(int16_t + " je 4f \n\t" + + "3: \n\t" /* do samples in groups of 2 */ +- " movq (%1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq (%q1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ + " movd (%0), %%mm1 \n\t" /* .. | p1 | p0 | */ + SWAP_16 (%%mm1) + VOLUME_32x16 (%%mm1, %%mm0) +@@ -212,8 +212,8 @@ static void pa_volume_s16re_mmx(int16_t + " je 6f \n\t" + + "5: \n\t" /* do samples in groups of 4 */ +- " movq (%1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ +- " movq 8(%1, %3, 4), %%mm2 \n\t" /* | v3h | v3l | v2h | v2l | */ ++ " movq (%q1, %3, 4), %%mm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq 8(%q1, %3, 4), %%mm2 \n\t" /* | v3h | v3l | v2h | v2l | */ + " movd (%0), %%mm1 \n\t" /* .. | p1 | p0 | */ + " movd 4(%0), %%mm3 \n\t" /* .. | p3 | p2 | */ + SWAP_16_2 (%%mm1, %%mm3) +Index: pulseaudio-1.1/src/pulsecore/svolume_sse.c +=================================================================== +--- pulseaudio-1.1.orig/src/pulsecore/svolume_sse.c ++++ pulseaudio-1.1/src/pulsecore/svolume_sse.c +@@ -92,7 +92,7 @@ static void pa_volume_s16ne_sse2(int16_t + " test $1, %2 \n\t" /* check for odd samples */ + " je 2f \n\t" + +- " movd (%1, %3, 4), %%xmm0 \n\t" /* | v0h | v0l | */ ++ " movd (%q1, %3, 4), %%xmm0 \n\t" /* | v0h | v0l | */ + " movw (%0), %w4 \n\t" /* .. | p0 | */ + " movd %4, %%xmm1 \n\t" + VOLUME_32x16 (%%xmm1, %%xmm0) +@@ -107,7 +107,7 @@ static void pa_volume_s16ne_sse2(int16_t + " je 4f \n\t" + + "3: \n\t" /* do samples in groups of 2 */ +- " movq (%1, %3, 4), %%xmm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq (%q1, %3, 4), %%xmm0 \n\t" /* | v1h | v1l | v0h | v0l | */ + " movd (%0), %%xmm1 \n\t" /* .. | p1 | p0 | */ + VOLUME_32x16 (%%xmm1, %%xmm0) + " movd %%xmm0, (%0) \n\t" /* .. | p1*v1 | p0*v0 | */ +@@ -123,7 +123,7 @@ static void pa_volume_s16ne_sse2(int16_t + * that the array is 16 bytes aligned, we probably have to do the odd values + * after this then. */ + "5: \n\t" /* do samples in groups of 4 */ +- " movdqu (%1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ ++ " movdqu (%q1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ + " movq (%0), %%xmm1 \n\t" /* .. | p3 .. p0 | */ + VOLUME_32x16 (%%xmm1, %%xmm0) + " movq %%xmm0, (%0) \n\t" /* .. | p3*v3 .. p0*v0 | */ +@@ -136,8 +136,8 @@ static void pa_volume_s16ne_sse2(int16_t + " je 8f \n\t" + + "7: \n\t" /* do samples in groups of 8 */ +- " movdqu (%1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ +- " movdqu 16(%1, %3, 4), %%xmm2 \n\t" /* | v7h | v7l .. v4h | v4l | */ ++ " movdqu (%q1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ ++ " movdqu 16(%q1, %3, 4), %%xmm2 \n\t" /* | v7h | v7l .. v4h | v4l | */ + " movq (%0), %%xmm1 \n\t" /* .. | p3 .. p0 | */ + " movq 8(%0), %%xmm3 \n\t" /* .. | p7 .. p4 | */ + VOLUME_32x16 (%%xmm1, %%xmm0) +@@ -176,7 +176,7 @@ static void pa_volume_s16re_sse2(int16_t + " test $1, %2 \n\t" /* check for odd samples */ + " je 2f \n\t" + +- " movd (%1, %3, 4), %%xmm0 \n\t" /* | v0h | v0l | */ ++ " movd (%q1, %3, 4), %%xmm0 \n\t" /* | v0h | v0l | */ + " movw (%0), %w4 \n\t" /* .. | p0 | */ + " rorw $8, %w4 \n\t" + " movd %4, %%xmm1 \n\t" +@@ -193,7 +193,7 @@ static void pa_volume_s16re_sse2(int16_t + " je 4f \n\t" + + "3: \n\t" /* do samples in groups of 2 */ +- " movq (%1, %3, 4), %%xmm0 \n\t" /* | v1h | v1l | v0h | v0l | */ ++ " movq (%q1, %3, 4), %%xmm0 \n\t" /* | v1h | v1l | v0h | v0l | */ + " movd (%0), %%xmm1 \n\t" /* .. | p1 | p0 | */ + SWAP_16 (%%xmm1) + VOLUME_32x16 (%%xmm1, %%xmm0) +@@ -211,7 +211,7 @@ static void pa_volume_s16re_sse2(int16_t + * that the array is 16 bytes aligned, we probably have to do the odd values + * after this then. */ + "5: \n\t" /* do samples in groups of 4 */ +- " movdqu (%1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ ++ " movdqu (%q1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ + " movq (%0), %%xmm1 \n\t" /* .. | p3 .. p0 | */ + SWAP_16 (%%xmm1) + VOLUME_32x16 (%%xmm1, %%xmm0) +@@ -226,8 +226,8 @@ static void pa_volume_s16re_sse2(int16_t + " je 8f \n\t" + + "7: \n\t" /* do samples in groups of 8 */ +- " movdqu (%1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ +- " movdqu 16(%1, %3, 4), %%xmm2 \n\t" /* | v7h | v7l .. v4h | v4l | */ ++ " movdqu (%q1, %3, 4), %%xmm0 \n\t" /* | v3h | v3l .. v0h | v0l | */ ++ " movdqu 16(%q1, %3, 4), %%xmm2 \n\t" /* | v7h | v7l .. v4h | v4l | */ + " movq (%0), %%xmm1 \n\t" /* .. | p3 .. p0 | */ + " movq 8(%0), %%xmm3 \n\t" /* .. | p7 .. p4 | */ + SWAP_16_2 (%%xmm1, %%xmm3) +Index: pulseaudio-1.1/src/pulsecore/sconv_sse.c +=================================================================== +--- pulseaudio-1.1.orig/src/pulsecore/sconv_sse.c ++++ pulseaudio-1.1/src/pulsecore/sconv_sse.c +@@ -54,8 +54,8 @@ static void pa_sconv_s16le_from_f32ne_ss + " je 2f \n\t" + + "1: \n\t" +- " movups (%2, %0, 2), %%xmm0 \n\t" /* read 8 floats */ +- " movups 16(%2, %0, 2), %%xmm2 \n\t" ++ " movups (%q2, %0, 2), %%xmm0 \n\t" /* read 8 floats */ ++ " movups 16(%q2, %0, 2), %%xmm2 \n\t" + " minps %%xmm5, %%xmm0 \n\t" /* clamp to 1.0 */ + " minps %%xmm5, %%xmm2 \n\t" + " maxps %%xmm6, %%xmm0 \n\t" /* clamp to -1.0 */ +@@ -72,8 +72,8 @@ static void pa_sconv_s16le_from_f32ne_ss + + " packssdw %%mm1, %%mm0 \n\t" /* pack parts */ + " packssdw %%mm3, %%mm2 \n\t" +- " movq %%mm0, (%3, %0) \n\t" +- " movq %%mm2, 8(%3, %0) \n\t" ++ " movq %%mm0, (%q3, %0) \n\t" ++ " movq %%mm2, 8(%q3, %0) \n\t" + + " add $16, %0 \n\t" + " dec %1 \n\t" +@@ -85,12 +85,12 @@ static void pa_sconv_s16le_from_f32ne_ss + " je 4f \n\t" + + "3: \n\t" +- " movss (%2, %0, 2), %%xmm0 \n\t" ++ " movss (%q2, %0, 2), %%xmm0 \n\t" + " minss %%xmm5, %%xmm0 \n\t" + " maxss %%xmm6, %%xmm0 \n\t" + " mulss %%xmm7, %%xmm0 \n\t" + " cvtss2si %%xmm0, %4 \n\t" +- " movw %w4, (%3, %0) \n\t" ++ " movw %w4, (%q3, %0) \n\t" + " add $2, %0 \n\t" + " dec %1 \n\t" + " jne 3b \n\t" +@@ -119,8 +119,8 @@ static void pa_sconv_s16le_from_f32ne_ss + " je 2f \n\t" + + "1: \n\t" +- " movups (%2, %0, 2), %%xmm0 \n\t" /* read 8 floats */ +- " movups 16(%2, %0, 2), %%xmm2 \n\t" ++ " movups (%q2, %0, 2), %%xmm0 \n\t" /* read 8 floats */ ++ " movups 16(%q2, %0, 2), %%xmm2 \n\t" + " minps %%xmm5, %%xmm0 \n\t" /* clamp to 1.0 */ + " minps %%xmm5, %%xmm2 \n\t" + " maxps %%xmm6, %%xmm0 \n\t" /* clamp to -1.0 */ +@@ -132,7 +132,7 @@ static void pa_sconv_s16le_from_f32ne_ss + " cvtps2dq %%xmm2, %%xmm2 \n\t" + + " packssdw %%xmm2, %%xmm0 \n\t" +- " movdqu %%xmm0, (%3, %0) \n\t" ++ " movdqu %%xmm0, (%q3, %0) \n\t" + + " add $16, %0 \n\t" + " dec %1 \n\t" +@@ -144,12 +144,12 @@ static void pa_sconv_s16le_from_f32ne_ss + " je 4f \n\t" + + "3: \n\t" +- " movss (%2, %0, 2), %%xmm0 \n\t" ++ " movss (%q2, %0, 2), %%xmm0 \n\t" + " minss %%xmm5, %%xmm0 \n\t" + " maxss %%xmm6, %%xmm0 \n\t" + " mulss %%xmm7, %%xmm0 \n\t" + " cvtss2si %%xmm0, %4 \n\t" +- " movw %w4, (%3, %0) \n\t" ++ " movw %w4, (%q3, %0) \n\t" + " add $2, %0 \n\t" + " dec %1 \n\t" + " jne 3b \n\t"
meta/recipes-multimedia/pulseaudio/pulseaudio_1.1.bb +2 -1
@@ -1,6 +1,6 @@ require pulseaudio.inc -PR = "r4" +PR = "r5" DEPENDS += "libjson gdbm speex libxml-parser-perl-native"
@@ -8,6 +8,7 @@ inherit gettext perlnative SRC_URI = "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-${PV}.tar.xz \ file://volatiles.04_pulse \ + file://pulseaudo_fix_for_x32.patch \ " SRC_URI[md5sum] = "17d21df798cee407b769c6355fae397a"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 07/15] libacpi: Fix libdir for x32
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
libacpi doesn't use base_libdir for install. This patch adds base_libdir support so that x32 libraries are installed properly.
--- .../libacpi/files/libacpi_fix_for_x32.patch | 47 ++++++++++++++++++++ meta/recipes-bsp/libacpi/libacpi_0.2.bb | 5 +- 2 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch
meta/recipes-bsp/libacpi/files/libacpi_fix_for_x32.patch new file +47 -0
@@ -0,0 +1,47 @@ +UpstreamStatus: Pending + +Fix libacpi for x32 + + libacpi doesn't use base_libdir for install. This patch adds + base_libdir support so that x32 libraries are installed properly. + +Patch Received from: H.J. Lu <[email protected]> + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/05 + +Index: libacpi-0.2/Makefile +=================================================================== +--- libacpi-0.2.orig/Makefile ++++ libacpi-0.2/Makefile +@@ -8,6 +8,10 @@ SRC_test = test-libacpi.c libacpi.c list + OBJ = ${SRC:.c=.o} + OBJ_test = ${SRC_test:.c=.o} + ++ifndef base_libdir ++base_libdir=/lib ++endif ++ + all: options libacpi.a libacpi.so test-libacpi + + options: +@@ -42,13 +46,13 @@ install: all + @mkdir -p ${DESTDIR}${PREFIX}/include + @cp -f libacpi.h ${DESTDIR}${PREFIX}/include + @chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h +- @echo installing library to ${DESTDIR}${PREFIX}/lib +- @mkdir -p ${DESTDIR}${PREFIX}/lib +- @cp -f libacpi.a ${DESTDIR}${PREFIX}/lib +- @chmod 644 ${DESTDIR}${PREFIX}/lib/libacpi.a +- @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/ +- @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME} +- @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so ++ @echo installing library to ${DESTDIR}${PREFIX}${base_libdir} ++ @mkdir -p ${DESTDIR}${PREFIX}${base_libdir} ++ @cp -f libacpi.a ${DESTDIR}${PREFIX}${base_libdir} ++ @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/libacpi.a ++ @cp -f ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/ ++ @chmod 644 ${DESTDIR}${PREFIX}${base_libdir}/${SONAME} ++ @ln -s ${SONAME} ${DESTDIR}${PREFIX}${base_libdir}/libacpi.so + @echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f test-libacpi ${DESTDIR}${PREFIX}/bin
meta/recipes-bsp/libacpi/libacpi_0.2.bb +3 -2
@@ -5,10 +5,11 @@ SECTION = "base" HOMEPAGE = "http://www.ngolde.de/libacpi.html" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5" -PR = "r2" +PR = "r3" SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \ - file://makefile-fix.patch " + file://makefile-fix.patch \ + file://libacpi_fix_for_x32.patch " SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c" SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 08/15] findutils: Fix compilation for x32 toolchain
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
time_t is 64bit and long int is 32bit on x32. But gnulib used in findutils assumes time_t values fit into long int. Such assumption is invalid for x32 and should be removed.
--- .../findutils-4.4.2_fix_for_x32.patch | 36 ++++++++++++++++++++ meta/recipes-extended/findutils/findutils_4.4.2.bb | 5 ++- 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-extended/findutils/findutils-4.4.2/findutils-4.4.2_fix_for_x32.patch
meta/recipes-extended/findutils/findutils-4.4.2/findutils-4.4.2_fix_for_x32.patch new file +36 -0
@@ -0,0 +1,36 @@ +UpstreamStatus: Pending + +Author: H.J. Lu <[email protected]> + +time_t is 64bit and long int is 32bit on x32. But gnulib used in +findutils assumes time_t values fit into long int. Such assumption is +invalid for x32 and should be removed. + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/05 + + +Index: findutils-4.4.2/gnulib/lib/getdate.y +=================================================================== +--- findutils-4.4.2.orig/gnulib/lib/getdate.y ++++ findutils-4.4.2/gnulib/lib/getdate.y +@@ -114,7 +114,6 @@ + wraps around, but there's no portable way to check for that at + compile-time. */ + verify (TYPE_IS_INTEGER (time_t)); +-verify (LONG_MIN <= TYPE_MINIMUM (time_t) && TYPE_MAXIMUM (time_t) <= LONG_MAX); + + /* An integer value, and the number of digits in its textual + representation. */ +Index: findutils-4.4.2/gnulib/lib/mktime.c +=================================================================== +--- findutils-4.4.2.orig/gnulib/lib/mktime.c ++++ findutils-4.4.2/gnulib/lib/mktime.c +@@ -166,7 +166,7 @@ ydhms_diff (long int year1, long int yda + { + verify (C99_integer_division, -1 / 2 == 0); + verify (long_int_year_and_yday_are_wide_enough, +- INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX); ++ INT_MAX <= TIME_T_MAX / 2 || TIME_T_MAX <= UINT_MAX); + + /* Compute intervening leap days correctly even if year is negative. + Take care to avoid integer overflow here. */
meta/recipes-extended/findutils/findutils_4.4.2.bb +3 -2
@@ -1,10 +1,11 @@ require findutils.inc -PR = "r0" +PR = "r1" SRC_URI += "file://01-27017.patch \ file://02-28824.patch \ - file://03-28872.patch" + file://03-28872.patch \ + file://findutils-4.4.2_fix_for_x32.patch " SRC_URI[md5sum] = "351cc4adb07d54877fa15f75fb77d39f" SRC_URI[sha256sum] = "434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd702b62a"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 01/15] lzop-1.03: add recipe
In reply to Saul WoldFrom: Christopher Larson <[email protected]>
This is needed by some kernels when CONFIG_KERNEL_LZO=y (specifically, given the current defconfig, this affects linux-omap4 2.6 in the meta-ti layer).
--- meta/recipes-support/lzop/lzop/acinclude.m4 | 390 +++++++++++++++++++++++++++ meta/recipes-support/lzop/lzop_1.03.bb | 27 ++ 2 files changed, 417 insertions(+), 0 deletions(-) create mode 100644 meta/recipes-support/lzop/lzop/acinclude.m4 create mode 100644 meta/recipes-support/lzop/lzop_1.03.bb
meta/recipes-support/lzop/lzop/acinclude.m4 new file +390 -0
@@ -0,0 +1,390 @@ + +AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [ +AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) +])# + +AC_DEFUN([mfx_ACC_CHECK_HEADERS], [ +AC_HEADER_TIME +AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/stat.h sys/time.h sys/types.h sys/wait.h]) +])# + +AC_DEFUN([mfx_ACC_CHECK_FUNCS], [ +AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown ctime difftime fstat gettimeofday gmtime localtime longjmp lstat memcmp memcpy memmove memset mktime qsort raise setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf) +])# + + +AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [ +AC_CHECK_SIZEOF(short) +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(long) + +AC_CHECK_SIZEOF(long long) +AC_CHECK_SIZEOF(__int16) +AC_CHECK_SIZEOF(__int32) +AC_CHECK_SIZEOF(__int64) + +AC_CHECK_SIZEOF(void *) +AC_CHECK_SIZEOF(size_t) +AC_CHECK_SIZEOF(ptrdiff_t) +])# + + +# /*********************************************************************** +# // Check for ACC_conformance +# ************************************************************************/ + +AC_DEFUN([mfx_ACC_ACCCHK], [ +mfx_tmp=$1 +mfx_save_CPPFLAGS=$CPPFLAGS +dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here +test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" + +AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) + +AC_LANG_CONFTEST([AC_LANG_PROGRAM( +[[#define ACC_CONFIG_NO_HEADER 1 +#include "acc/acc.h" +#include "acc/acc_incd.h" +#undef ACCCHK_ASSERT +#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) +#include "acc/acc_chk.ch" +#undef ACCCHK_ASSERT +static void test_acc_compile_time_assert(void) { +#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) +#include "acc/acc_chk.ch" +#undef ACCCHK_ASSERT +} +#undef NDEBUG +#include <assert.h> +static int test_acc_run_time_assert(int r) { +#define ACCCHK_ASSERT(expr) assert(expr); +#include "acc/acc_chk.ch" +#undef ACCCHK_ASSERT +return r; +} +]], [[ +test_acc_compile_time_assert(); +if (test_acc_run_time_assert(1) != 1) return 1; +]] +)]) + +mfx_tmp=FAILED +_AC_COMPILE_IFELSE([], [mfx_tmp=yes]) +rm -f conftest.$ac_ext conftest.$ac_objext + +CPPFLAGS=$mfx_save_CPPFLAGS + +AC_MSG_RESULT([$mfx_tmp]) +case x$mfx_tmp in + xpassed | xyes) ;; + *) + AC_MSG_NOTICE([]) + AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) + AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) + AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) + AC_MSG_NOTICE([Thanks for your support.]) + AC_MSG_NOTICE([]) + AC_MSG_ERROR([ACC conformance test failed. Stop.]) +dnl AS_EXIT + ;; +esac +])# mfx_ACC_ACCCHK + + +# /*********************************************************************** +# // Check for ACC_conformance +# ************************************************************************/ + +AC_DEFUN([mfx_MINIACC_ACCCHK], [ +mfx_tmp=$1 +mfx_save_CPPFLAGS=$CPPFLAGS +dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here +test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS" + +AC_MSG_CHECKING([whether your compiler passes the ACC conformance test]) + +AC_LANG_CONFTEST([AC_LANG_PROGRAM( +[[#define ACC_CONFIG_NO_HEADER 1 +#define ACC_WANT_ACC_INCD_H 1 +#include $2 + +#define ACC_WANT_ACC_CHK_CH 1 +#undef ACCCHK_ASSERT +#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr) +#include $2 + +#define ACC_WANT_ACC_CHK_CH 1 +#undef ACCCHK_ASSERT +#define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr) +static void test_acc_compile_time_assert(void) { +#include $2 +} + +#undef NDEBUG +#include <assert.h> +#define ACC_WANT_ACC_CHK_CH 1 +#undef ACCCHK_ASSERT +#define ACCCHK_ASSERT(expr) assert(expr); +static int test_acc_run_time_assert(int r) { +#include $2 +return r; +} +]], [[ +test_acc_compile_time_assert(); +if (test_acc_run_time_assert(1) != 1) return 1; +]] +)]) + +mfx_tmp=FAILED +_AC_COMPILE_IFELSE([], [mfx_tmp=yes]) +rm -f conftest.$ac_ext conftest.$ac_objext + +CPPFLAGS=$mfx_save_CPPFLAGS + +AC_MSG_RESULT([$mfx_tmp]) +case x$mfx_tmp in + xpassed | xyes) ;; + *) + AC_MSG_NOTICE([]) + AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ]) + AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending]) + AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.]) + AC_MSG_NOTICE([Thanks for your support.]) + AC_MSG_NOTICE([]) + AC_MSG_ERROR([ACC conformance test failed. Stop.]) +dnl AS_EXIT + ;; +esac +])# mfx_MINIACC_ACCCHK + + + +# serial 1 + +AC_DEFUN([mfx_PROG_CPPFLAGS], [ +AC_MSG_CHECKING([whether the C preprocessor needs special flags]) + +AC_LANG_CONFTEST([AC_LANG_PROGRAM( +[[#include <limits.h> +#if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) +# include "your C preprocessor is broken 1" +#elif (0xffffu == 0xfffffffful) +# include "your C preprocessor is broken 2" +#elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX) +# include "your C preprocessor is broken 3" +#endif +]], [[ ]] +)]) + +mfx_save_CPPFLAGS=$CPPFLAGS +mfx_tmp=ERROR +for mfx_arg in "" -no-cpp-precomp +do + CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS" + _AC_COMPILE_IFELSE([], +[mfx_tmp=$mfx_arg +break]) +done +CPPFLAGS=$mfx_save_CPPFLAGS +rm -f conftest.$ac_ext conftest.$ac_objext +case x$mfx_tmp in + x) + AC_MSG_RESULT([none needed]) ;; + xERROR) + AC_MSG_RESULT([ERROR]) + AC_MSG_ERROR([your C preprocessor is broken - for details see config.log]) + ;; + *) + AC_MSG_RESULT([$mfx_tmp]) + CPPFLAGS="$mfx_tmp $CPPFLAGS" + ;; +esac +])# mfx_PROG_CPPFLAGS + + + +# serial 3 + +AC_DEFUN([mfx_CHECK_HEADER_SANE_LIMITS_H], [ +AC_CACHE_CHECK([whether limits.h is sane], +mfx_cv_header_sane_limits_h, +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits.h> +#if (32767 >= 4294967295ul) || (65535u >= 4294967295ul) +# if defined(__APPLE__) && defined(__GNUC__) +# error "your preprocessor is broken - use compiler option -no-cpp-precomp" +# else +# include "your preprocessor is broken" +# endif +#endif +#define MFX_0xffff 0xffff +#define MFX_0xffffffffL 4294967295ul +#if !defined(CHAR_BIT) || (CHAR_BIT != 8) +# include "error CHAR_BIT" +#endif +#if !defined(UCHAR_MAX) +# include "error UCHAR_MAX 1" +#endif +#if !defined(USHRT_MAX) +# include "error USHRT_MAX 1" +#endif +#if !defined(UINT_MAX) +# include "error UINT_MAX 1" +#endif +#if !defined(ULONG_MAX) +# include "error ULONG_MAX 1" +#endif +#if !defined(SHRT_MAX) +# include "error SHRT_MAX 1" +#endif +#if !defined(INT_MAX) +# include "error INT_MAX 1" +#endif +#if !defined(LONG_MAX) +# include "error LONG_MAX 1" +#endif +#if (UCHAR_MAX < 1) +# include "error UCHAR_MAX 2" +#endif +#if (USHRT_MAX < 1) +# include "error USHRT_MAX 2" +#endif +#if (UINT_MAX < 1) +# include "error UINT_MAX 2" +#endif +#if (ULONG_MAX < 1) +# include "error ULONG_MAX 2" +#endif +#if (UCHAR_MAX < 0xff) +# include "error UCHAR_MAX 3" +#endif +#if (USHRT_MAX < MFX_0xffff) +# include "error USHRT_MAX 3" +#endif +#if (UINT_MAX < MFX_0xffff) +# include "error UINT_MAX 3" +#endif +#if (ULONG_MAX < MFX_0xffffffffL) +# include "error ULONG_MAX 3" +#endif +#if (USHRT_MAX > UINT_MAX) +# include "error USHRT_MAX vs UINT_MAX" +#endif +#if (UINT_MAX > ULONG_MAX) +# include "error UINT_MAX vs ULONG_MAX" +#endif +]], [[ +#if (USHRT_MAX == MFX_0xffff) +{ typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; } +#elif (USHRT_MAX >= MFX_0xffff) +{ typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; } +#endif +#if (UINT_MAX == MFX_0xffff) +{ typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; } +#elif (UINT_MAX >= MFX_0xffff) +{ typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; } +#endif +#if (ULONG_MAX == MFX_0xffff) +{ typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; } +#elif (ULONG_MAX >= MFX_0xffff) +{ typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; } +#endif +#if (USHRT_MAX == MFX_0xffffffffL) +{ typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; } +#elif (USHRT_MAX >= MFX_0xffffffffL) +{ typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; } +#endif +#if (UINT_MAX == MFX_0xffffffffL) +{ typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; } +#elif (UINT_MAX >= MFX_0xffffffffL) +{ typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; } +#endif +#if (ULONG_MAX == MFX_0xffffffffL) +{ typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; } +#elif (ULONG_MAX >= MFX_0xffffffffL) +{ typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; } +#endif +]])], +[mfx_cv_header_sane_limits_h=yes], +[mfx_cv_header_sane_limits_h=no])]) +]) + +# /*********************************************************************** +# // standard +# ************************************************************************/ + +AC_DEFUN([mfx_LZO_CHECK_ENDIAN], [ +AC_C_BIGENDIAN([AC_DEFINE(LZO_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(LZO_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])]) +])# + + +# /*********************************************************************** +# // +# ************************************************************************/ + +dnl more types which are not yet covered by ACC + +AC_DEFUN([mfx_CHECK_SIZEOF], [ +AC_CHECK_SIZEOF(__int32) +AC_CHECK_SIZEOF(intmax_t) +AC_CHECK_SIZEOF(uintmax_t) +AC_CHECK_SIZEOF(intptr_t) +AC_CHECK_SIZEOF(uintptr_t) + +AC_CHECK_SIZEOF(float) +AC_CHECK_SIZEOF(double) +AC_CHECK_SIZEOF(long double) + +AC_CHECK_SIZEOF(dev_t) +AC_CHECK_SIZEOF(fpos_t) +AC_CHECK_SIZEOF(mode_t) +AC_CHECK_SIZEOF(off_t) +AC_CHECK_SIZEOF(ssize_t) +AC_CHECK_SIZEOF(time_t) +])# + + + +AC_DEFUN([mfx_CHECK_LIB_WINMM], [ +if test "X$GCC" = Xyes; then +case $host_os in +cygwin* | mingw* | pw32*) + test "X$LIBS" != "X" && LIBS="$LIBS " + LIBS="${LIBS}-lwinmm" ;; +*) + ;; +esac +fi +])# + +#serial 6 + +dnl From Paul Eggert. + +# Define ST_MTIM_NSEC to be the nanoseconds member of struct stat's st_mtim, +# if it exists. + +AC_DEFUN([AC_STRUCT_ST_MTIM_NSEC], + [AC_CACHE_CHECK([for nanoseconds member of struct stat.st_mtim], + ac_cv_struct_st_mtim_nsec, + [ac_save_CPPFLAGS="$CPPFLAGS" + ac_cv_struct_st_mtim_nsec=no + # tv_nsec -- the usual case + # _tv_nsec -- Solaris 2.6, if + # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1 + # && !defined __EXTENSIONS__) + # st__tim.tv_nsec -- UnixWare 2.1.2 + for ac_val in tv_nsec _tv_nsec st__tim.tv_nsec; do + CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val" + AC_TRY_COMPILE([#include <sys/types.h> +#include <sys/stat.h>], [struct stat s; s.st_mtim.ST_MTIM_NSEC;], + [ac_cv_struct_st_mtim_nsec=$ac_val; break]) + done + CPPFLAGS="$ac_save_CPPFLAGS"]) + + if test $ac_cv_struct_st_mtim_nsec != no; then + AC_DEFINE_UNQUOTED(ST_MTIM_NSEC, $ac_cv_struct_st_mtim_nsec, + [Define to be the nanoseconds member of struct stat's st_mtim, + if it exists.]) + fi + ] +)
meta/recipes-support/lzop/lzop_1.03.bb new file +27 -0
@@ -0,0 +1,27 @@ +SUMMARY = "Real-time file compressor" +DESCRIPTION = "lzop is a compression utility which is designed to be a companion to gzip. \n\ +It is based on the LZO data compression library and its main advantages over \n\ +gzip are much higher compression and decompression speed at the cost of some \n\ +compression ratio. The lzop compression utility was designed with the goals \n\ +of reliability, speed, portability and with reasonable drop-in compatibility \n\ +to gzip." +DEPENDS += "lzo" +PR = "r0" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=dfeaf3dc4beef4f5a7bdbc35b197f39e \ + file://src/lzop.c;beginline=5;endline=21;md5=6797bd3ed0a1a49327b7ebf9366ebd86" + +SRC_URI = "http://www.lzop.org/download/${BP}.tar.gz \ + file://acinclude.m4" +SRC_URI[md5sum] = "006c5e27fb78cdd14a628fdfa5aa1905" +SRC_URI[sha256sum] = "c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9" + +inherit autotools + +do_configure () { + ln -sf ../acinclude.m4 + autotools_do_configure +} + +BBCLASSEXTEND += "native nativesdk"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 02/15] ncurses: libcurses.so should link to libncurses.so
In reply to Saul WoldThe current libcurses (backward compat) links to libncurses.so.5.9, this causes a problem since this library also needs libtinfo, the libncurses.so, uses a "ld script" to include both, libcurses.so should point to libncurses.so (the script) not the library.
--- meta/recipes-core/ncurses/ncurses.inc | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
meta/recipes-core/ncurses/ncurses.inc +5 -1
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc SECTION = "libs" DEPENDS = "ncurses-native" DEPENDS_virtclass-native = "" -INC_PR = "r2" +INC_PR = "r3" inherit autotools binconfig multilib_header
@@ -161,6 +161,10 @@ do_install() { echo '/* GNU ld script */' >$f echo "INPUT($i.so.5 AS_NEEDED(-ltinfo))" >>$f done + # Make sure that libcurses is linked so that it gets -ltinfo + # also, this should be addressed upstream really. + rm -f ${D}${libdir}/libcurses.so + ln -s libncurses.so ${D}${libdir}/libcurses.so # create libtermcap.so linker script for backward compatibility f=${D}${libdir}/libtermcap.so
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 09/15] mesa: Properly create share library for x32
In reply to Saul WoldFrom: "H.J. Lu" <[email protected]>
Also pass -mx32 parameter to gcc to create create share library for x32.
--- .../mesa/mesa/mesa_fix_for_x32.patch | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-)
meta/recipes-graphics/mesa/mesa/mesa_fix_for_x32.patch +17 -3
@@ -4,10 +4,10 @@ get correct compiler options for x32 gcc. Received this patch from H.J. Lu <[email protected]> -Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/01 +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/06 ---- Mesa-7.11/bin/mklib.x32 2011-11-30 14:29:14.976465283 -0800 -+++ Mesa-7.11/bin/mklib 2011-11-30 14:32:48.591525193 -0800 +--- Mesa-7.11/bin/mklib.x32 2011-12-06 13:15:17.968695114 -0800 ++++ Mesa-7.11/bin/mklib 2011-12-06 13:17:13.872152249 -0800 @@ -335,7 +335,12 @@ case $ARCH in set ${OBJECTS} ABI32=`file $1 | grep 32-bit`
@@ -22,3 +22,17 @@ Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/01 fi if [ "${ALTOPTS}" ] ; then +@@ -392,7 +397,12 @@ case $ARCH in + set ${OBJECTS} + ABI32=`file $1 | grep 32-bit` + if [ "${ABI32}" -a `uname -m` = "x86_64" ] ; then +- OPTS="-m32 ${OPTS}" ++ ABIX32=`file $1 | grep x86-64` ++ if [ "${ABI32}" ]; then ++ OPTS="-mx32 ${OPTS}" ++ else ++ OPTS="-m32 ${OPTS}" ++ fi + fi + if [ "${ALTOPTS}" ] ; then + OPTS=${ALTOPTS}
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 05/15] mdadm: Make custom CC definition conditional
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
By hardcoding CC's definition in the Makefile, all the gcc parameters set by tune settings are lost. Causing compile failure with x32 toolchain
As the bitbake defined CC is good, there is no need to redfine CC in the make file, hence making the CC definition in the Makefile conditional.
This fixes bug: [YOCTO #1414]
--- .../mdadm/files/mdadm-3.2.2_fix_for_x32.patch | 24 ++++++++++++++++++++ meta/recipes-extended/mdadm/mdadm_3.2.2.bb | 4 +- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch
meta/recipes-extended/mdadm/files/mdadm-3.2.2_fix_for_x32.patch new file +24 -0
@@ -0,0 +1,24 @@ +UpstreamStatus: pending + +By hardcoding CC's definition in the Makefile, all the gcc parameters +set by tune settings are lost. Causing compile failure with x32 toolchain + +As the bitbake defined CC is good, there is no need to redfine CC in the +make file, hence making the CC definition in the Makefile conditional. + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/07 + +Index: mdadm-3.2.2/Makefile +=================================================================== +--- mdadm-3.2.2.orig/Makefile ++++ mdadm-3.2.2/Makefile +@@ -40,7 +40,8 @@ KLIBC=/home/src/klibc/klibc-0.77 + + KLIBC_GCC = gcc -nostdinc -iwithprefix include -I$(KLIBC)/klibc/include -I$(KLIBC)/linux/include -I$(KLIBC)/klibc/arch/i386/include -I$(KLIBC)/klibc/include/bits32 + +-CC = $(CROSS_COMPILE)gcc ++CC ?= $(CROSS_COMPILE)gcc ++ + CXFLAGS = -ggdb + CWFLAGS = -Wall -Werror -Wstrict-prototypes -Wextra -Wno-unused-parameter + ifdef WARN_UNUSED
meta/recipes-extended/mdadm/mdadm_3.2.2.bb +2 -2
@@ -8,10 +8,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \ file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161" -PR = "r2" +PR = "r3" SRC_URI = "${KERNELORG_MIRROR}/linux/utils/raid/mdadm/${BPN}-${PV}.tar.bz2 \ file://0001-mdadm-fix-build-failures-ppc64.patch \ + file://mdadm-3.2.2_fix_for_x32.patch \ " SRC_URI[md5sum] = "12ee2fbf3beddb60601fb7a4c4905651"
@@ -22,7 +23,6 @@ CFLAGS += "-fno-strict-aliasing" inherit autotools do_compile() { - export CROSS_COMPILE="${TARGET_PREFIX}" oe_runmake }
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 04/15] gst-fluendo.inc: remove unneccessary hack
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
This fixes bug: [YOCTO #1403]
the custom definition of CC was causing build isuses with x32 toolchain. And also I found out that the hack is not neccessary anymore. the affected gst-fluendo-mpegdemux recipe builds fine without the CC hack.
--- meta/recipes-multimedia/gstreamer/gst-fluendo.inc | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
meta/recipes-multimedia/gstreamer/gst-fluendo.inc +0 -4
@@ -12,7 +12,3 @@ FILES_${PN}-dbg += "${libdir}/gstreamer-0.10/.debug" FILES_${PN}-dev += "${libdir}/gstreamer-0.10/*.la ${libdir}/gstreamer-0.10/*.a" EXTRA_OECONF = "--disable-debug --disable-valgrind" - -# Hack to get STAGING_LIBDIR into the linker path when building -CC = "${CCACHE} ${HOST_PREFIX}gcc -L${STAGING_LIBDIR}" -
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 03/15] self-hosted: Add ext2 utilites and perl-pod for building
In reply to Saul WoldAdd self-hosted-host-tools for non-build related tools
--- meta/recipes-core/tasks/task-self-hosted.bb | 54 +++++++++++++++----------- 1 files changed, 31 insertions(+), 23 deletions(-)
meta/recipes-core/tasks/task-self-hosted.bb +31 -23
@@ -3,7 +3,7 @@ # DESCRIPTION = "Create Basic Image Tasks" -PR = "r1" +PR = "r2" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
@@ -14,6 +14,7 @@ PACKAGES = "\ task-self-hosted-sdk \ task-self-hosted-extended \ task-self-hosted-graphics \ + task-self-hosted-host-tools \ " ALLOW_EMPTY = "1"
@@ -23,13 +24,26 @@ RDEPENDS_task-self-hosted = "\ task-self-hosted-sdk \ task-self-hosted-extended \ task-self-hosted-graphics \ + task-self-hosted-host-tools \ + " + +RDEPENDS_task-self-hosted-host-tools = "\ + e2fsprogs \ + dhcp-client \ + genext2fs \ + hdparm \ + iptables \ + kernel-module-tun \ + kernel-module-iptable-raw \ + kernel-module-iptable-nat \ + kernel-module-iptable-mangle \ + kernel-module-iptable-filter \ + mc \ + screen \ " # eglibc-utils: for rpcgen RDEPENDS_task-self-hosted-sdk = "\ - sed \ - mktemp \ - eglibc-utils \ autoconf \ automake \ binutils-symlinks \
@@ -37,27 +51,30 @@ RDEPENDS_task-self-hosted-sdk = "\ cpp \ cpp-symlinks \ ccache \ + coreutils \ + diffutils \ + distcc \ + eglibc-utils \ + file \ + findutils \ gcc \ gcc-symlinks \ g++ \ g++-symlinks \ gettext \ - make \ intltool \ + ldd \ + less \ libstdc++ \ libstdc++-dev \ libtool \ + make \ + mktemp \ perl-module-re \ perl-module-text-wrap \ - coreutils \ - diffutils \ pkgconfig \ - findutils \ quilt \ - less \ - distcc \ - ldd \ - file \ + sed \ tcl \ "
@@ -74,8 +91,8 @@ RDEPENDS_task-self-hosted-extended = "\ bzip2 \ chkconfig \ chrpath \ + cpio \ curl \ - dhcp-client \ diffstat \ diffutils \ elfutils \
@@ -88,7 +105,6 @@ RDEPENDS_task-self-hosted-extended = "\ grep \ groff \ gawk \ - hdparm \ libaio \ libxml2 \ libusb1 \
@@ -97,7 +113,6 @@ RDEPENDS_task-self-hosted-extended = "\ lzo \ man \ man-pages \ - mc \ mdadm \ minicom \ mtools \
@@ -111,6 +126,7 @@ RDEPENDS_task-self-hosted-extended = "\ perl \ perl-modules \ perl-dev \ + perl-pod \ pth \ python \ python-compile \
@@ -140,7 +156,6 @@ RDEPENDS_task-self-hosted-extended = "\ quota \ readline \ rpm \ - screen \ setserial \ subversion \ sudo \
@@ -158,13 +173,6 @@ RDEPENDS_task-self-hosted-extended = "\ xinetd \ zip \ zlib \ - cpio \ - iptables \ - kernel-module-tun \ - kernel-module-iptable-raw \ - kernel-module-iptable-nat \ - kernel-module-iptable-mangle \ - kernel-module-iptable-filter \ "
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 10/15] pax: fix compilation with x32 toolchain
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
off_t is 8byte for x32. We need to check both _FILE_OFFSET_BITS and size of off_t to see if file offset is 64bit. This patch adds AC_CHECK_SIZEOF(off_t) and checks SIZEOF_OFF_T == 8.
--- .../pax/pax/pax-3.4_fix_for_x32.patch | 185 ++++++++++++++++++++ meta/recipes-extended/pax/pax_3.4.bb | 5 +- 2 files changed, 188 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-extended/pax/pax/pax-3.4_fix_for_x32.patch
meta/recipes-extended/pax/pax/pax-3.4_fix_for_x32.patch new file +185 -0
@@ -0,0 +1,185 @@ +UpstreamStatus: Pending + +Author: H.J. Lu <[email protected]> +Date: Tue Dec 6 10:34:53 2011 -0800 + + Fix pax-3.4 build for x32 + + off_t is 8byte for x32. We need to check both _FILE_OFFSET_BITS and + size of off_t to see if file offset is 64bit. This patch adds + AC_CHECK_SIZEOF(off_t) and checks SIZEOF_OFF_T == 8. + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/06 + +Index: pax-3.4/configure.in +=================================================================== +--- pax-3.4.orig/configure.in ++++ pax-3.4/configure.in +@@ -33,4 +33,7 @@ dnl Checks for header files. + dnl Checks for typedefs, structures, and compiler characteristics. + AC_C_CONST + ++AC_CHECK_SIZEOF(off_t) ++AC_CHECK_SIZEOF(long) ++ + AC_OUTPUT([Makefile lib/Makefile src/Makefile]) +Index: pax-3.4/src/ar_io.c +=================================================================== +--- pax-3.4.orig/src/ar_io.c ++++ pax-3.4/src/ar_io.c +@@ -378,7 +378,8 @@ ar_close(void) + * could have written anything yet. + */ + if (frmt == NULL) { +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + (void)fprintf(listf, "%s: unknown format, %qu bytes skipped.\n", + #else + (void)fprintf(listf, "%s: unknown format, %lu bytes skipped.\n", +@@ -391,7 +392,8 @@ ar_close(void) + + if (strcmp(NM_CPIO, argv0) == 0) + (void)fprintf(listf, +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + "%qu blocks\n", + #else + "%lu blocks\n", +@@ -399,7 +401,8 @@ ar_close(void) + (rdcnt ? rdcnt : wrcnt) / 5120); + else if (strcmp(NM_TAR, argv0) != 0) + (void)fprintf(listf, +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + "%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n", + #else + "%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n", +Index: pax-3.4/src/cpio.c +=================================================================== +--- pax-3.4.orig/src/cpio.c ++++ pax-3.4/src/cpio.c +@@ -218,7 +218,8 @@ rd_ln_nm (ARCHD *arcn) + */ + if ((arcn->sb.st_size == 0) || + (arcn->sb.st_size >= (off_t) sizeof(arcn->ln_name))) { +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + paxwarn (1, "Cpio link name length is invalid: %qu", + arcn->sb.st_size); + #else +Index: pax-3.4/src/gen_subs.c +=================================================================== +--- pax-3.4.orig/src/gen_subs.c ++++ pax-3.4/src/gen_subs.c +@@ -133,7 +133,8 @@ ls_list (ARCHD *arcn, time_t now, FILE * + * print device id's for devices, or sizes for other nodes + */ + if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK)) +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + (void) fprintf (fp, "%4lu,%4lu ", (unsigned long) MAJOR (sbp->st_rdev), + (unsigned long) MINOR (sbp->st_rdev)); + #else +@@ -142,7 +143,8 @@ ls_list (ARCHD *arcn, time_t now, FILE * + #endif + else + { +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + (void) fprintf (fp, "%9qu ", sbp->st_size); + #else + (void) fprintf (fp, "%9lu ", sbp->st_size); +@@ -334,7 +336,8 @@ ul_asc (u_long val, char *str, int len, + return (0); + } + +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + /* + * asc_uqd() + * convert hex/octal character string into a u_quad_t. We do not have to +Index: pax-3.4/src/options.c +=================================================================== +--- pax-3.4.orig/src/options.c ++++ pax-3.4/src/options.c +@@ -1545,7 +1545,8 @@ str_offt (char *val) + char *expr; + off_t num, t; + +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + num = strtoq (val, &expr, 0); + if ((num == LONG_LONG_MAX) || (num <= 0) || (expr == val)) + #else +Index: pax-3.4/src/tar.c +=================================================================== +--- pax-3.4.orig/src/tar.c ++++ pax-3.4/src/tar.c +@@ -58,7 +58,8 @@ + static unsigned long tar_chksm (char *, int); + static char *name_split (char *, int); + static int ul_oct (u_long, char *, int, int); +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + static int uqd_oct (u_quad_t, char *, int, int); + #endif + +@@ -196,7 +197,8 @@ ul_oct (u_long val, register char *str, + return (0); + } + +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + /* + * uqd_oct() + * convert an u_quad_t to an octal string. one of many oddball field +@@ -427,7 +429,8 @@ tar_rd (ARCHD *arcn, char *buf) + 0xfff); + arcn->sb.st_uid = (uid_t) asc_ul (hd->uid, sizeof (hd->uid), OCT); + arcn->sb.st_gid = (gid_t) asc_ul (hd->gid, sizeof (hd->gid), OCT); +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + arcn->sb.st_size = (off_t) asc_uqd (hd->size, sizeof (hd->size), OCT); + #else + arcn->sb.st_size = (off_t) asc_ul (hd->size, sizeof (hd->size), OCT); +@@ -659,7 +662,8 @@ tar_wr (register ARCHD * arcn) + * data follows this file, so set the pad + */ + hd->linkflag = AREGTYPE; +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + if (uqd_oct ((u_quad_t) arcn->sb.st_size, hd->size, + sizeof (hd->size), 1)) + #else +@@ -834,7 +838,8 @@ ustar_rd (ARCHD *arcn, char *buf) + */ + arcn->sb.st_mode = (mode_t) (asc_ul (hd->mode, sizeof (hd->mode), OCT) & + 0xfff); +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + arcn->sb.st_size = (off_t) asc_uqd (hd->size, sizeof (hd->size), OCT); + #else + arcn->sb.st_size = (off_t) asc_ul (hd->size, sizeof (hd->size), OCT); +@@ -1081,7 +1086,8 @@ ustar_wr (register ARCHD * arcn) + else + hd->typeflag = REGTYPE; + arcn->pad = TAR_PAD (arcn->sb.st_size); +-#if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 ++#if (SIZEOF_LONG == 4 && SIZEOF_OFF_T == 8) \ ++ || (defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64) + if (uqd_oct ((u_quad_t) arcn->sb.st_size, hd->size, + sizeof (hd->size), 3)) + {
meta/recipes-extended/pax/pax_3.4.bb +3 -2
@@ -10,10 +10,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4b0b674dfdc56daa3832d4069b820ea0 \ file://lib/vis.h;endline=40;md5=b283f759abd4a5ad7e014b80f51fc053" SECTION = "base" -PR = "r1" +PR = "r2" SRC_URI = "ftp://ftp.suse.com/pub/people/kukuk/pax/pax-${PV}.tar.bz2 \ - file://fix_for_compile_with_gcc-4.6.0.patch" + file://fix_for_compile_with_gcc-4.6.0.patch \ + file://pax-3.4_fix_for_x32.patch" SRC_URI[md5sum] = "fbd9023b590b45ac3ade95870702a0d6" SRC_URI[sha256sum] = "ac3c06048e02828077cf7757d3d142241429238893b91d529af29a2e8cc5623b"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 12/15] libacpi: Use the cross strip instead of host strip
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
to avoid this build error on x32:
| strip: Unable to recognise the format of the input file `test-libacpi' | make: *** [test-libacpi] Error 1 | ERROR: oe_runmake failed
--- .../use_correct_strip_in_cross_environment.patch | 23 ++++++++++++++++++++ meta/recipes-bsp/libacpi/libacpi_0.2.bb | 5 ++- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-bsp/libacpi/files/use_correct_strip_in_cross_environment.patch
meta/recipes-bsp/libacpi/files/use_correct_strip_in_cross_environment.patch new file +23 -0
@@ -0,0 +1,23 @@ +UpstreamStatus: Pending + +Used the cross strip instead of host strip to avoid this build error: + +| strip: Unable to recognise the format of the input file `test-libacpi' +| make: *** [test-libacpi] Error 1 +| ERROR: oe_runmake failed + +Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/07 + +Index: libacpi-0.2/Makefile +=================================================================== +--- libacpi-0.2.orig/Makefile ++++ libacpi-0.2/Makefile +@@ -39,7 +39,7 @@ libacpi.so: ${OBJ} + test-libacpi: ${OBJ_test} + @echo LD $@ + @${CC} -o $@ ${OBJ_test} ${LDFLAGS} +- @strip $@ ++ @${STRIP} $@ + + install: all + @echo installing header to ${DESTDIR}${PREFIX}/include
meta/recipes-bsp/libacpi/libacpi_0.2.bb +3 -2
@@ -5,11 +5,12 @@ SECTION = "base" HOMEPAGE = "http://www.ngolde.de/libacpi.html" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=fec17f82f16630adf2dfb7d2a46f21c5" -PR = "r3" +PR = "r4" SRC_URI = "http://www.ngolde.de/download/libacpi-${PV}.tar.gz \ file://makefile-fix.patch \ - file://libacpi_fix_for_x32.patch " + file://libacpi_fix_for_x32.patch \ + file://use_correct_strip_in_cross_environment.patch" SRC_URI[md5sum] = "05b53dd7bead66dda35fec502b91066c" SRC_URI[sha256sum] = "13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 11/15] siteinfo: create a new siteinfo for x32-linux
In reply to Saul WoldFrom: "H.J. Lu" <[email protected]>
X32 has different sizes for many types:
1. off_t and ino_t are 8 byte, instead of 4 byte.
2. pthread_mutex_t is 32byte, instead of 24 byte.
--- meta/classes/siteinfo.bbclass | 2 +- meta/site/x32-linux | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletions(-) create mode 100644 meta/site/x32-linux
meta/classes/siteinfo.bbclass +1 -1
@@ -76,7 +76,7 @@ def siteinfo_data(d): "x86_64-linux": "bit-64", "x86_64-linux-uclibc": "bit-64", "x86_64-linux-gnu": "bit-64 x86_64-linux", - "x86_64-linux-gnux32": "bit-32 ix86-common", + "x86_64-linux-gnux32": "bit-32 ix86-common x32-linux", "x86_64-mingw32": "bit-64", }
meta/site/x32-linux new file +9 -0
@@ -0,0 +1,9 @@ +# general +ac_cv_sizeof_long_double=${ac_cv_sizeof_long_double=16} +ac_cv_sizeof_off_t=${ac_cv_sizeof_off_t=8} +ac_cv_sizeof_ino_t=${ac_cv_sizeof_ino_t=8} +ac_cv_sizeof_dev_t=${ac_cv_sizeof_dev_t=8} +ac_cv_sys_file_offset_bits=${ac_cv_sys_file_offset_bits=64} + +# glib +glib_cv_sizeof_gmutex=${glib_cv_sizeof_gmutex=32}
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 13/15] openssl-1.0.0e: Update x32 Configure
In reply to Saul WoldFrom: "H.J. Lu" <[email protected]>
Make linux-x32 as close to linux-x86_64 as possible:
1. Add -mx32 -DMD32_REG_T=int.
2. Changed to -O3.
3. Remove -pipe -g -feliminate-unused-debug-types.
4. Remove -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS.
5. Add :::x32 for multilib.
--- .../openssl-1.0.0e/openssl_fix_for_x32.patch | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-connectivity/openssl/openssl-1.0.0e/openssl_fix_for_x32.patch +1 -1
@@ -14,7 +14,7 @@ Index: openssl-1.0.0e/Configure "linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", "linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall -no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_RISC1 DES_INT:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", "linux-x86_64", "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64", -+"linux-x32", "gcc:-DL_ENDIAN -DTERMIO -O2 -pipe -g -feliminate-unused-debug-types -Wall -DHAVE_CRYPTODEV -DUSE_CRYPTODEV_DIGESTS::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-mx32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)", ++"linux-x32", "gcc:-mx32 -DL_ENDIAN -DTERMIO -O3 -Wall -DMD32_REG_T=int::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT RC4_CHUNK DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC:-mx32:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::x32", "linux-s390x", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 -Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT DES_UNROLL:${s390x_asm}:dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR):::64", #### SPARC Linux setups # Ray Miller <[email protected]> has patiently
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 14/15] x86 tune: fix TUNE_PKGARCH definition for proper PACKAGE_ARCH
In reply to Saul WoldFrom: Nitin A Kamble <[email protected]>
rpmbuild can not handle the PACKAGE_ARCH of these kinds:
x86_64-x32, core2-64, core2-64-x32
With these kinds of PACKAGE_ARCH the --target parameter of rpmbuild becomes like: core2-64-x32-poky-linux-gnux32 ; And rpmbuild extracts %_target (arch) wrongly as core2 generating these kinds of rpms with incorrect filenames: zip-3.0-r0.core2.rpm
So this commit fixes the issue by making PACKAGE_ARCH like this:
x86_64_x32, core2_64, core2_64_x32
Now --target parameter of rpmbuild becomes like:
core2_64_x32-poky-linux-gnux32 ; And rpmbuild extracts %_target (arch) correctly as core2_64_x32 generating these kinds of rpms with correct
filenames: zip-3.0-r0.core2_64_x32.rpm
--- meta/conf/machine/include/ia32/arch-ia32.inc | 4 ++-- meta/conf/machine/include/tune-core2.inc | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
meta/conf/machine/include/ia32/arch-ia32.inc +2 -2
@@ -45,5 +45,5 @@ PACKAGE_EXTRA_ARCHS_tune-x86-64 = "x86_64" AVAILTUNES += "x86-64-x32" TUNE_FEATURES_tune-x86-64-x32 ?= "mx32" BASE_LIB_tune-x86-64-x32 ?= "libx32" -PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "x86_64-x32" -TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "-x32", "", d)}" +PACKAGE_EXTRA_ARCHS_tune-x86-64-x32 = "x86_64_x32" +TUNE_PKGARCH .= "${@bb.utils.contains("TUNE_FEATURES", "mx32", "_x32", "", d)}"
meta/conf/machine/include/tune-core2.inc +3 -3
@@ -1,5 +1,5 @@ DEFAULTTUNE ?= "core2" -TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "core2", "core2-64", d)}" +TUNE_PKGARCH ?= "${@bb.utils.contains("TUNE_FEATURES", "m32", "core2", "core2_64", d)}" require conf/machine/include/tune-i586.inc
@@ -16,9 +16,9 @@ PACKAGE_EXTRA_ARCHS_tune-core2 = "${PACKAGE_EXTRA_ARCHS_tune-x86} i386 i486 i586 AVAILTUNES += "core2-64" TUNE_FEATURES_tune-core2-64 ?= "${TUNE_FEATURES_tune-x86-64} core2" BASE_LIB_tune-core2-64 ?= "lib64" -PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2-64" +PACKAGE_EXTRA_ARCHS_tune-core2-64 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64} core2_64" AVAILTUNES += "core2-64-x32" TUNE_FEATURES_tune-core2-64-x32 ?= "${TUNE_FEATURES_tune-x86-64-x32} core2" BASE_LIB_tune-core2-64-x32 ?= "libx32" -PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2-64-x32" +PACKAGE_EXTRA_ARCHS_tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-x86-64-x32} core2_64_x32"
Signature · 1 line
1.7.6.4
[CONSOLIDATED PULL 15/15] u-boot: renamed dir from uboot to the more appropriate u-boot
In reply to Saul WoldFrom: Frans Meulenbroeks <[email protected]>
recipe dirs normally have the name of the (main) package and the official name is u-boot
---
.../{uboot => u-boot}/files/fix-arm920t-eabi.patch | 0
...Drop-config.h-include-in-tools-imximage.h.patch | 0
...ove-LDSCRIPT-processing-to-the-top-level-.patch | 0
...Drop-config.h-include-in-tools-imximage.h.patch | 0
...ove-LDSCRIPT-processing-to-the-top-level-.patch | 0
.../{uboot => u-boot}/u-boot-mkimage_2011.03.bb | 0
.../{uboot => u-boot}/u-boot-mkimage_2011.06.bb | 0
meta/recipes-bsp/{uboot => u-boot}/u-boot.inc | 0
.../{uboot => u-boot}/u-boot_2011.03.bb | 0
.../{uboot => u-boot}/u-boot_2011.06.bb | 0
10 files changed, 0 insertions(+), 0 deletions(-)
rename meta/recipes-bsp/{uboot => u-boot}/files/fix-arm920t-eabi.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage-2011.03/0001-Drop-config.h-include-in-tools-imximage.h.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage-2011.03/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage/0001-Drop-config.h-include-in-tools-imximage.h.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage_2011.03.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot-mkimage_2011.06.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot.inc (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot_2011.03.bb (100%)
rename meta/recipes-bsp/{uboot => u-boot}/u-boot_2011.06.bb (100%)meta/recipes-bsp/u-boot/files/fix-arm920t-eabi.patch renamed from meta/recipes-bsp/uboot/files/fix-arm920t-eabi.patch +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage-2011.03/0001-Drop-config.h-include-in-tools-imximage.h.patch renamed from meta/recipes-bsp/uboot/u-boot-mkimage-2011.03/0001-Drop-config.h-include-in-tools-imximage.h.patch +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage-2011.03/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch renamed from meta/recipes-bsp/uboot/u-boot-mkimage-2011.03/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage/0001-Drop-config.h-include-in-tools-imximage.h.patch renamed from meta/recipes-bsp/uboot/u-boot-mkimage/0001-Drop-config.h-include-in-tools-imximage.h.patch +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch renamed from meta/recipes-bsp/uboot/u-boot-mkimage/0002-config.mk-move-LDSCRIPT-processing-to-the-top-level-.patch +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage_2011.03.bb renamed from meta/recipes-bsp/uboot/u-boot-mkimage_2011.03.bb +0 -0
meta/recipes-bsp/u-boot/u-boot-mkimage_2011.06.bb renamed from meta/recipes-bsp/uboot/u-boot-mkimage_2011.06.bb +0 -0
meta/recipes-bsp/u-boot/u-boot.inc renamed from meta/recipes-bsp/uboot/u-boot.inc +0 -0
meta/recipes-bsp/u-boot/u-boot_2011.03.bb renamed from meta/recipes-bsp/uboot/u-boot_2011.03.bb +0 -0
meta/recipes-bsp/u-boot/u-boot_2011.06.bb renamed from meta/recipes-bsp/uboot/u-boot_2011.06.bb +0 -0
Signature · 1 line
1.7.6.4
Re: [CONSOLIDATED PULL 06/15] pulseaudio: fix compilation with x32 toolchain
In reply to Saul WoldDear Nitin,
Am Freitag, den 09.12.2011, 10:23 -0800 schrieb Saul Wold:
Quoted 18 lines
From: Nitin A Kamble <[email protected]>
This commit makes assembly syntax compatible with x32 toolchain to avoid x32 gcc errors.
Signed-off-by Nitin A Kamble <[email protected]>--- .../pulseaudio/pulseaudo_fix_for_x32.patch | 225 ++++++++++++++++++++ .../pulseaudio/pulseaudio_1.1.bb | 3 +- 2 files changed, 227 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patchmeta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch new file +0
-0
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch line 5
Quoted 5 lines
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch new file +5
-0@@ -0,0 +1,225 @@ +UpstreamStatus: Pending + +This patch makes assembly syntax compatible to the x32 toolchain. + +This fixes compilations errors with x32 gcc.
I would volunteer to send this patch upstream. A more elaborate commit message also suited for non-OE users would be helpful. That means what does the x32 tool chain do and a paste of the errors you got.
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch line 8
Quoted 2 lines
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.patch new file +2
-0+Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/03 +Index: pulseaudio-1.1/src/pulsecore/svolume_mmx.c
[…]
Please only merge this, when this has been improved.
Thanks,
Paul
Re: [CONSOLIDATED PULL 06/15] pulseaudio: fix compilation with x32 toolchain
Quoted 42 lines
-----Original Message-----
From: Paul Menzel [mailto:[email protected]]
Sent: Friday, December 09, 2011 10:46 AM
To: [email protected]
Cc: Kamble, Nitin A
Subject: Re: [OE-core] [CONSOLIDATED PULL 06/15] pulseaudio: fix compilation with x32 toolchainDear Nitin,
Am Freitag, den 09.12.2011, 10:23 -0800 schrieb Saul Wold:
Quoted 8 lines
From: Nitin A Kamble <[email protected]>
This commit makes assembly syntax compatible with x32 toolchain to avoid x32 gcc errors.
Signed-off-by Nitin A Kamble <[email protected]>--- .../pulseaudio/pulseaudo_fix_for_x32.patch | 225++++++++++++++++++++
Quoted 4 lines
.../pulseaudio/pulseaudio_1.1.bb | 3 +- 2 files changed, 227 insertions(+), 1 deletions(-) create mode100644
meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.pa
Quoted 4 lines
tch
diff --git
a/meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.
Quoted 2 lines
patch
b/meta/recipes-multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_x32.
meta/recipes-
Quoted 5 lines
patch
new file mode 100644
index 0000000..22fe2e7meta/recipes- new file +0
-0multimedia/pulseaudio/pulseaudio/pulseaudo_fix_for_
Quoted 11 lines
meta/recipes- line 5
Quoted 7 lines
+++ x32.patch
meta/recipes- new file +5
-0@@ -0,0 +1,225 @@ +UpstreamStatus: Pending + +This patch makes assembly syntax compatible to the x32 toolchain. + +This fixes compilations errors with x32 gcc.I would volunteer to send this patch upstream. A more elaborate commit message also suited for non-OE users would be helpful. That means what does the x32 tool chain do and a paste of the errors you got.
Thank you for volunteering for pushing it upstream.
Quoted 7 lines
meta/recipes- line 7
Quoted 3 lines
meta/recipes- new file +2
-0+Signed-Off-By: Nitin A Kamble <[email protected]> 2011/12/03 +Index: pulseaudio-1.1/src/pulsecore/svolume_mmx.c[…]
Please only merge this, when this has been improved.
Improved commit has been pushed to the nitin/x32 contrib branch.
Nitin
Quoted 5 lines
Thanks,
Paul
Re: [CONSOLIDATED PULL 02/15] ncurses: libcurses.so should link to libncurses.so
In reply to Saul WoldQuoted 5 lines · Saul Wold
+ # Make sure that libcurses is linked so that it gets -ltinfo
+ # also, this should be addressed upstream really.
+ rm -f ${D}${libdir}/libcurses.so
+ ln -s libncurses.so ${D}${libdir}/libcurses.so
you could do ln -sf libncurses.so ${D}${libdir}/libcurses.so and be done in one go