linux.inc, gumstix-kernel.inc: remove sizecheck stuff
authorThomas Kunze <thommycheck@gmx.de>
Sat, 8 Mar 2008 12:55:20 +0000 (12:55 +0000)
committerThomas Kunze <thommycheck@gmx.de>
Sat, 8 Mar 2008 12:55:20 +0000 (12:55 +0000)
The do_sizecheck function is in kernel.bbclass for some time now.

packages/linux/gumstix-linux.inc
packages/linux/linux.inc

index 50111cb..038089c 100644 (file)
@@ -35,16 +35,6 @@ do_configure_prepend() {
        yes '' | oe_runmake oldconfig
 }
 
-do_sizecheck() {
-        if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
-            size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
-            if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
-                    rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
-                    die  "This kernel (size=$size) is too big for your device. Please reduce the size of the kernel by making more of it modular."
-            fi
-        fi
-}
-
 do_install_prepend() {
         if test -e arch/${ARCH}/boot/Image ; then
              ln -f arch/${ARCH}/boot/Image arch/${ARCH}/boot/uImage
@@ -68,7 +58,4 @@ do_deploy() {
         fi
 }
 
-addtask sizecheck before do_install after do_compile
 addtask deploy before do_package after do_install
-
-
index 8354374..e0303c2 100644 (file)
@@ -144,6 +144,5 @@ do_deploy() {
 
 do_deploy[dirs] = "${S}"
 
-addtask sizecheck before do_install after do_compile
 addtask deploy before do_package after do_install