]> code.ossystems Code Review - openembedded-core.git/commitdiff
linux-openzaurus.inc: sync with OE
authorRichard Purdie <richard@openedhand.com>
Sat, 27 May 2006 21:39:13 +0000 (21:39 +0000)
committerRichard Purdie <richard@openedhand.com>
Sat, 27 May 2006 21:39:13 +0000 (21:39 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@443 311d38ba-8fff-0310-9ca6-ca027cbcb966

openembedded/packages/linux/linux-openzaurus.inc

index c806452e52d55ee4242307a5bf9c2b225035b8cf..e99bd07316af30085e7b3765c23ac018460b74be 100644 (file)
@@ -130,6 +130,14 @@ do_compile_append() {
                                die "This kernel is too big for your PXA Zaurus and will destroy data if you flash it. Please reduce the size of the kernel by making more of it modular."
                        fi
                        ;;
+               collie )
+                       size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
+                       if [ $size -ge 1048576 ]; then  
+                               rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
+                               echo "Size is $size"
+                               die "This kernel is too big for your Collie and will not be flashed. Please reduce the size of the kernel by making more of it modular."
+                       fi
+                       ;;
                *)
                        ;;
        esac