diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-08-10 19:45:33 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-08-10 19:45:33 -0700 |
commit | 08020ed71ffccfd2893ba869e73e3a169a5ae068 (patch) | |
tree | 9c329dd0d52bad0d2e0c5fa5726a6dc6dcffeae2 | |
parent | 19a190ca2bedf9a8d017f3c5fb163d51d0b3a828 (diff) | |
parent | 0d3f61c8280b329f573ded891fad573f666379db (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.org:openembedded into org.openembedded.dev
-rw-r--r-- | conf/machine/em-x270.conf | 4 | ||||
-rw-r--r-- | recipes/curl/curl_7.19.5.bb | 5 | ||||
-rw-r--r-- | recipes/curl/files/curl-add_all_algorithms.patch | 22 | ||||
-rw-r--r-- | recipes/libgcrypt/files/mips-h-constraint.patch | 70 | ||||
-rw-r--r-- | recipes/libgcrypt/libgcrypt.inc | 3 | ||||
-rw-r--r-- | recipes/libmad/files/mad-mips-h-constraint.patch | 70 | ||||
-rw-r--r-- | recipes/libmad/libmad_0.15.1b.bb | 3 | ||||
-rw-r--r-- | recipes/linux/em-x270_2.6.23.bb | 29 | ||||
-rw-r--r-- | recipes/linux/linux-2.6.23/em-x270/01-prevent_loop_timespec_add_ns.patch | 19 | ||||
-rw-r--r-- | recipes/linux/linux-2.6.23/em-x270/defconfig (renamed from recipes/linux/em-x270-2.6.23/defconfig) | 0 | ||||
-rw-r--r-- | recipes/linux/linux-2.6.23/em-x270/em-x270.patch (renamed from recipes/linux/em-x270-2.6.23/em-x270.patch) | 0 | ||||
-rw-r--r-- | recipes/linux/linux_2.6.23.bb | 3 | ||||
-rw-r--r-- | recipes/meta/meta-toolchain-qte.bb | 13 | ||||
-rw-r--r-- | recipes/qt4/files/g++.conf | 3 |
14 files changed, 203 insertions, 41 deletions
diff --git a/conf/machine/em-x270.conf b/conf/machine/em-x270.conf index f8a5c951b7..efcf10484a 100644 --- a/conf/machine/em-x270.conf +++ b/conf/machine/em-x270.conf @@ -9,7 +9,7 @@ TARGET_ARCH = "arm" GUI_MACHINE_CLASS ?= "bigscreen" PACKAGE_EXTRA_ARCHS = "iwmmxt " -PREFERRED_PROVIDER_virtual/kernel = "${MACHINE}" +PREFERRED_PROVIDER_virtual/kernel = "linux" # Use tune-xscale per default. Machine independent feeds should be built with tune-strongarm. #require conf/machine/include/tune-xscale.inc @@ -43,7 +43,7 @@ MACHINE_FEATURES = "kernel26 touchscreen apm alsa bluetooth wifi usbhost usbgadg # #PCMCIA_MANAGER = "pcmciautils" -PREFERRED_VERSION_em-x270 = "2.6.23" +PREFERRED_VERSION_linux = "2.6.23" MODUTILS = "26" PREFERRED_PROVIDER_xserver = "xserver-kdrive" diff --git a/recipes/curl/curl_7.19.5.bb b/recipes/curl/curl_7.19.5.bb index df83fe8c0a..b5b6182e8d 100644 --- a/recipes/curl/curl_7.19.5.bb +++ b/recipes/curl/curl_7.19.5.bb @@ -1,5 +1,6 @@ require curl-common.inc require curl-target.inc -SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0" -PR = "r0" +SRC_URI += "file://off_t_abi_fix.patch;patch=1;pnum=0 \ + file://curl-add_all_algorithms.patch;patch=1" +PR = "r1" diff --git a/recipes/curl/files/curl-add_all_algorithms.patch b/recipes/curl/files/curl-add_all_algorithms.patch new file mode 100644 index 0000000000..a55af12575 --- /dev/null +++ b/recipes/curl/files/curl-add_all_algorithms.patch @@ -0,0 +1,22 @@ +--- curl-7.19.5/lib/ssluse.c 2009-01-26 15:36:22.000000000 +0100 ++++ curl-7.19.5/lib/ssluse.c 2009-07-23 15:44:12.000000000 +0200 +@@ -58,6 +58,7 @@ + #ifdef USE_SSLEAY + + #ifdef USE_OPENSSL ++#include <openssl/evp.h> + #include <openssl/rand.h> + #include <openssl/x509v3.h> + #else +@@ -627,6 +628,11 @@ + /* Lets get nice error messages */ + SSL_load_error_strings(); + ++#ifdef USE_OPENSSL ++ /* Load all algorithms (including SHA2) */ ++ OpenSSL_add_all_algorithms(); ++#endif /* USE_OPENSSL */ ++ + /* Setup all the global SSL stuff */ + if(!SSLeay_add_ssl_algorithms()) + return 0; diff --git a/recipes/libgcrypt/files/mips-h-constraint.patch b/recipes/libgcrypt/files/mips-h-constraint.patch new file mode 100644 index 0000000000..20566bc259 --- /dev/null +++ b/recipes/libgcrypt/files/mips-h-constraint.patch @@ -0,0 +1,70 @@ +The MIPS port for GCC-4.4 no longer recognizes the h asm constraint. +Patch from: https://forum.openwrt.org/viewtopic.php?id=20520 + +--- libgcrypt/mpi/longlong.h-asdf 2009-08-04 09:58:51.000000000 +0930 ++++ libgcrypt/mpi/longlong.h 2009-08-04 10:10:27.000000000 +0930 +@@ -710,18 +710,35 @@ + #endif /* __m88110__ */ + #endif /* __m88000__ */ + ++/* Test for gcc >= maj.min, as per __GNUC_PREREQ in glibc */ ++#if defined (__GNUC__) && defined (__GNUC_MINOR__) ++#define __GNUC_PREREQ(maj, min) \ ++ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) ++#else ++#define __GNUC_PREREQ(maj, min) 0 ++#endif ++ + /*************************************** + ************** MIPS ***************** + ***************************************/ + #if defined (__mips__) && W_TYPE_SIZE == 32 +-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 ++#if __GNUC_PREREQ (4,4) ++#define umul_ppmm(w1, w0, u, v) \ ++ do { \ ++ UDItype __ll = (UDItype)(u) * (v); \ ++ w1 = __ll >> 32; \ ++ w0 = __ll; \ ++ } while (0) ++#endif ++#if !defined (umul_ppmm) && __GNUC_PREREQ (2,7) + #define umul_ppmm(w1, w0, u, v) \ + __asm__ ("multu %2,%3" \ + : "=l" ((USItype)(w0)), \ + "=h" ((USItype)(w1)) \ + : "d" ((USItype)(u)), \ + "d" ((USItype)(v))) +-#else ++#endif ++#if !defined (umul_ppmm) + #define umul_ppmm(w1, w0, u, v) \ + __asm__ ("multu %2,%3 \n" \ + "mflo %0 \n" \ +@@ -739,14 +756,24 @@ + ************** MIPS/64 ************** + ***************************************/ + #if (defined (__mips) && __mips >= 3) && W_TYPE_SIZE == 64 +-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 7 ++#if __GNUC_PREREQ (4,4) ++#define umul_ppmm(w1, w0, u, v) \ ++ do { \ ++ typedef unsigned int __ll_UTItype __attribute__((mode(TI))); \ ++ __ll_UTItype __ll = (__ll_UTItype)(u) * (v); \ ++ w1 = __ll >> 64; \ ++ w0 = __ll; \ ++ } while (0) ++#endif ++#if !defined (umul_ppmm) && __GNUC_PREREQ (2,7) + #define umul_ppmm(w1, w0, u, v) \ + __asm__ ("dmultu %2,%3" \ + : "=l" ((UDItype)(w0)), \ + "=h" ((UDItype)(w1)) \ + : "d" ((UDItype)(u)), \ + "d" ((UDItype)(v))) +-#else ++#endif ++#if !defined (umul_ppmm) + #define umul_ppmm(w1, w0, u, v) \ + __asm__ ("dmultu %2,%3 \n" \ + "mflo %0 \n" \ diff --git a/recipes/libgcrypt/libgcrypt.inc b/recipes/libgcrypt/libgcrypt.inc index 691f4fe133..afec2fde90 100644 --- a/recipes/libgcrypt/libgcrypt.inc +++ b/recipes/libgcrypt/libgcrypt.inc @@ -5,7 +5,8 @@ LICENSE = "GPL LGPL FDL" DEPENDS = "libgpg-error" SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${PV}.tar.gz \ - file://add-pkgconfig-support.patch;patch=1" + file://add-pkgconfig-support.patch;patch=1 \ + file://mips-h-constraint.patch;patch=1" inherit autotools binconfig pkgconfig lib_package diff --git a/recipes/libmad/files/mad-mips-h-constraint.patch b/recipes/libmad/files/mad-mips-h-constraint.patch new file mode 100644 index 0000000000..b65555e1fa --- /dev/null +++ b/recipes/libmad/files/mad-mips-h-constraint.patch @@ -0,0 +1,70 @@ +diff -ur libmad-0.15.1b-orig/fixed.h libmad-0.15.1b/fixed.h +--- libmad-0.15.1b-orig/fixed.h 2004-02-17 12:32:03.000000000 +1030 ++++ libmad-0.15.1b/fixed.h 2009-08-05 10:46:30.000000000 +0930 +@@ -299,6 +299,23 @@ + + # elif defined(FPM_MIPS) + ++/* Test for gcc >= maj.min, as per __GNUC_PREREQ in glibc */ ++#if defined (__GNUC__) && defined (__GNUC_MINOR__) ++#define __GNUC_PREREQ(maj, min) \ ++ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) ++#else ++#define __GNUC_PREREQ(maj, min) 0 ++#endif ++ ++#if __GNUC_PREREQ(4,4) ++ typedef unsigned int u64_di_t __attribute__ ((mode (DI))); ++# define MAD_F_MLX(hi, lo, x, y) \ ++ do { \ ++ u64_di_t __ll = (u64_di_t) (x) * (y); \ ++ hi = __ll >> 32; \ ++ lo = __ll; \ ++ } while (0) ++#else + /* + * This MIPS version is fast and accurate; the disposition of the least + * significant bit depends on OPT_ACCURACY via mad_f_scale64(). +@@ -328,6 +345,7 @@ + : "%r" ((x) >> 12), "r" ((y) >> 16)) + # define MAD_F_MLZ(hi, lo) ((mad_fixed_t) (lo)) + # endif ++#endif /* __GNU_PREREQ(4,4) */ + + # if defined(OPT_SPEED) + # define mad_f_scale64(hi, lo) \ +diff -ur libmad-0.15.1b-orig/mad.h libmad-0.15.1b/mad.h +--- libmad-0.15.1b-orig/mad.h 2004-02-17 13:25:44.000000000 +1030 ++++ libmad-0.15.1b/mad.h 2009-08-05 10:42:40.000000000 +0930 +@@ -344,6 +344,23 @@ + + # elif defined(FPM_MIPS) + ++/* Test for gcc >= maj.min, as per __GNUC_PREREQ in glibc */ ++#if defined (__GNUC__) && defined (__GNUC_MINOR__) ++#define __GNUC_PREREQ(maj, min) \ ++ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) ++#else ++#define __GNUC_PREREQ(maj, min) 0 ++#endif ++ ++#if __GNUC_PREREQ(4,4) ++ typedef unsigned int u64_di_t __attribute__ ((mode (DI))); ++# define MAD_F_MLX(hi, lo, x, y) \ ++ do { \ ++ u64_di_t __ll = (u64_di_t) (x) * (y); \ ++ hi = __ll >> 32; \ ++ lo = __ll; \ ++ } while (0) ++#else + /* + * This MIPS version is fast and accurate; the disposition of the least + * significant bit depends on OPT_ACCURACY via mad_f_scale64(). +@@ -373,6 +390,7 @@ + : "%r" ((x) >> 12), "r" ((y) >> 16)) + # define MAD_F_MLZ(hi, lo) ((mad_fixed_t) (lo)) + # endif ++#endif /* __GNU_PREREQ(4,4) */ + + # if defined(OPT_SPEED) + # define mad_f_scale64(hi, lo) \ diff --git a/recipes/libmad/libmad_0.15.1b.bb b/recipes/libmad/libmad_0.15.1b.bb index 4a75c2d927..738dcc2160 100644 --- a/recipes/libmad/libmad_0.15.1b.bb +++ b/recipes/libmad/libmad_0.15.1b.bb @@ -7,7 +7,8 @@ PR = "r4" SRC_URI = "${SOURCEFORGE_MIRROR}/mad/libmad-${PV}.tar.gz \ file://add-pkgconfig.patch;patch=1 \ - file://mad.diff;patch=1 " + file://mad.diff;patch=1 \ + file://mad-mips-h-constraint.patch;patch=1" S = "${WORKDIR}/libmad-${PV}" diff --git a/recipes/linux/em-x270_2.6.23.bb b/recipes/linux/em-x270_2.6.23.bb deleted file mode 100644 index fcef7280d0..0000000000 --- a/recipes/linux/em-x270_2.6.23.bb +++ /dev/null @@ -1,29 +0,0 @@ -require linux.inc - -SECTION = "kernel" -DESCRIPTION = "Linux kernel for the Compulab EM-X270 system" -LICENSE = "GPL" -DEPENDS = "u-boot-utils-native" -PR = "r1" - -KERNEL_IMAGETYPE = "uImage" - -SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \ - file://em-x270.patch;patch=1 \ - file://defconfig \ - " - -S = "${WORKDIR}/linux-${PV}" - -COMPATIBLE_HOST = 'arm.*-linux' -COMPATIBLE_MACHINE = "em-x270" - -inherit kernel -inherit package - -ARCH = "arm" - -FILES_kernel-image = "" - -S = "${WORKDIR}/linux-${PV}" - diff --git a/recipes/linux/linux-2.6.23/em-x270/01-prevent_loop_timespec_add_ns.patch b/recipes/linux/linux-2.6.23/em-x270/01-prevent_loop_timespec_add_ns.patch new file mode 100644 index 0000000000..a2f6e1765e --- /dev/null +++ b/recipes/linux/linux-2.6.23/em-x270/01-prevent_loop_timespec_add_ns.patch @@ -0,0 +1,19 @@ +--- + 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 2091a19..d32ef0a 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++; + } + diff --git a/recipes/linux/em-x270-2.6.23/defconfig b/recipes/linux/linux-2.6.23/em-x270/defconfig index 3246136571..3246136571 100644 --- a/recipes/linux/em-x270-2.6.23/defconfig +++ b/recipes/linux/linux-2.6.23/em-x270/defconfig diff --git a/recipes/linux/em-x270-2.6.23/em-x270.patch b/recipes/linux/linux-2.6.23/em-x270/em-x270.patch index 3c28be83c7..3c28be83c7 100644 --- a/recipes/linux/em-x270-2.6.23/em-x270.patch +++ b/recipes/linux/linux-2.6.23/em-x270/em-x270.patch diff --git a/recipes/linux/linux_2.6.23.bb b/recipes/linux/linux_2.6.23.bb index 76ebbbe917..0f62a1c37c 100644 --- a/recipes/linux/linux_2.6.23.bb +++ b/recipes/linux/linux_2.6.23.bb @@ -28,6 +28,9 @@ SRC_URI_avr32 = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2 file://defconfig \ http://avr32linux.org/twiki/pub/Main/LinuxPatches/linux-2.6.23.atmel.3.patch.bz2;patch=1 \ " +SRC_URI_append_em-x270 = "\ + file://em-x270.patch;patch=1 \ + file://01-prevent_loop_timespec_add_ns.patch;patch=1" SRC_URI_append_cm-x270 = "\ file://0001-cm-x270-base2.patch;patch=1 \ diff --git a/recipes/meta/meta-toolchain-qte.bb b/recipes/meta/meta-toolchain-qte.bb index b654935431..52fd2795e2 100644 --- a/recipes/meta/meta-toolchain-qte.bb +++ b/recipes/meta/meta-toolchain-qte.bb @@ -17,12 +17,13 @@ do_populate_sdk_append() { echo 'export OE_QMAKE_LINK=${TARGET_SYS}-g++' >> $script echo 'export OE_QMAKE_LIBDIR_QT=${prefix}/${TARGET_SYS}/${layout_libdir}' >> $script echo 'export OE_QMAKE_INCDIR_QT=${prefix}/${TARGET_SYS}/${layout_includedir}/${QT_DIR_NAME}' >> $script - echo 'export OE_QMAKE_MOC=${prefix}/${layout_bindir}/moc4' >> $script - echo 'export OE_QMAKE_UIC=${prefix}/${layout_bindir}/uic4' >> $script - echo 'export OE_QMAKE_UIC3=${prefix}/${layout_bindir}/uic34' >> $script - echo 'export OE_QMAKE_RCC=${prefix}/${layout_bindir}/rcc4' >> $script - echo 'export OE_QMAKE_QDBUSCPP2XML=${prefix}/${layout_bindir}/qdbuscpp2xml4' >> $script - echo 'export OE_QMAKE_QDBUSXML2CPP=${prefix}/${layout_bindir}/qdbusxml2cpp4' >> $script + echo 'export OE_QMAKE_MOC=${prefix}/bin/moc4' >> $script + echo 'export OE_QMAKE_UIC=${prefix}/bin/uic4' >> $script + echo 'export OE_QMAKE_UIC3=${prefix}/bin/uic34' >> $script + echo 'export OE_QMAKE_RCC=${prefix}/bin/rcc4' >> $script + echo 'export OE_QMAKE_QDBUSCPP2XML=${prefix}/bin/qdbuscpp2xml4' >> $script + echo 'export OE_QMAKE_QDBUSXML2CPP=${prefix}/bin/qdbusxml2cpp4' >> $script + echo 'export OE_QMAKE_QT_CONFIG=${prefix}/${TARGET_SYS}/${layout_datadir}/${QT_DIR_NAME}/mkspecs/qconfig.pri' >> $script # Repack SDK with new environment-setup cd ${SDK_OUTPUT} diff --git a/recipes/qt4/files/g++.conf b/recipes/qt4/files/g++.conf index f1be0adc75..4cd76e62ea 100644 --- a/recipes/qt4/files/g++.conf +++ b/recipes/qt4/files/g++.conf @@ -48,3 +48,6 @@ QMAKE_PCH_OUTPUT_EXT = .gch # -Bsymbolic-functions (ld) support QMAKE_LFLAGS_BSYMBOLIC_FUNC = -Wl,-Bsymbolic-functions QMAKE_LFLAGS_DYNAMIC_LIST = -Wl,--dynamic-list, + +# for the SDK +isEmpty(QMAKE_QT_CONFIG):QMAKE_QT_CONFIG = $(OE_QMAKE_QT_CONFIG) |