summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-02-06 15:25:23 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-02-06 15:25:23 +0000
commitf1d8a0fe94c0eb809d6b1bcccfb2c9a4ccb06977 (patch)
treed09b70848fc0037d11ae7be3040c9276273e1802 /meta/classes
parent1f1bd04e9513017b4092da9e3be14346fba97c8f (diff)
downloadpoky-f1d8a0fe94c0eb809d6b1bcccfb2c9a4ccb06977.tar.gz
kernel.bbclass: indent sizecheck function like rest of file
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3675 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/kernel.bbclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index e36d33a5de..d2edfd4853 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -406,13 +406,13 @@ python populate_packages_prepend () {
406# Support checking the kernel size since some kernels need to reside in partitions 406# Support checking the kernel size since some kernels need to reside in partitions
407# with a fixed length or there is a limit in transferring the kernel to memory 407# with a fixed length or there is a limit in transferring the kernel to memory
408do_sizecheck() { 408do_sizecheck() {
409 if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then 409 if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
410 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'` 410 size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'`
411 if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then 411 if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
412 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE} 412 rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
413 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." 413 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."
414 fi
415 fi 414 fi
415 fi
416} 416}
417 417
418addtask sizecheck before do_install after do_compile 418addtask sizecheck before do_install after do_compile