linux/linux-openzaurus.inc: tosa kernel won't work with gcc4.0.x. version check imple...
authorDirk Opfer <dirk@opfer-online.de>
Mon, 8 May 2006 11:24:35 +0000 (11:24 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 8 May 2006 11:24:35 +0000 (11:24 +0000)
packages/linux/linux-openzaurus.inc

index 45a4652..c806452 100644 (file)
@@ -59,6 +59,13 @@ module_autoload_snd-soc-spitz_spitz = "snd-soc-spitz"
 do_configure() {
        rm -f ${S}/.config
 
+       if [ "${MACHINE}" == "tosa" ]; then
+               gcc_version=`${KERNEL_CC} -dumpversion`         
+               if [ "${gcc_version}" == "4.0.1" ] || [ "${gcc_version}" == "4.0.2" ]; then
+                       die "tosa kernel wont work with gcc 4.0.x"
+               fi
+       fi
+
        if [ ! -e ${WORKDIR}/defconfig-${MACHINE} ]; then
                die "No default configuration for ${MACHINE} available."
        fi