]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel.bbclass: indent sizecheck function like rest of file
authorMarcin Juszkiewicz <hrw@openedhand.com>
Wed, 6 Feb 2008 15:25:23 +0000 (15:25 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Wed, 6 Feb 2008 15:25:23 +0000 (15:25 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3675 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/kernel.bbclass

index e36d33a5dec2ac48f12cedc34e6537faa6b0a6ca..d2edfd48533e4df9a42d7e211872834c2964a696 100644 (file)
@@ -406,13 +406,13 @@ python populate_packages_prepend () {
 # Support checking the kernel size since some kernels need to reside in partitions
 # with a fixed length or there is a limit in transferring the kernel to memory
 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 > ${KERNEL_IMAGE_MAXSIZE}) is too big for your device. Please reduce the size of the kernel by making more of it modular."
-            fi
+    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 > ${KERNEL_IMAGE_MAXSIZE}) is too big for your device. Please reduce the size of the kernel by making more of it modular."
         fi
+    fi
 }
 
 addtask sizecheck before do_install after do_compile