summaryrefslogtreecommitdiffstats
path: root/meta/classes/kernel.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/kernel.bbclass')
-rw-r--r--meta/classes/kernel.bbclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index d57d1f50b7..af58887f28 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -293,15 +293,16 @@ python split_kernel_packages () {
293# with a fixed length or there is a limit in transferring the kernel to memory 293# with a fixed length or there is a limit in transferring the kernel to memory
294do_sizecheck() { 294do_sizecheck() {
295 if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then 295 if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
296 size=`ls -l ${KERNEL_OUTPUT} | awk '{ print $5}'` 296 cd ${B}
297 size=`ls -lL ${KERNEL_OUTPUT} | awk '{ print $5}'`
297 if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then 298 if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
298 rm ${KERNEL_OUTPUT}
299 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." 299 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."
300 fi 300 fi
301 fi 301 fi
302} 302}
303do_sizecheck[dirs] = "${B}"
303 304
304addtask sizecheck before do_install after do_compile 305addtask sizecheck before do_install after do_kernel_link_vmlinux
305 306
306KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}" 307KERNEL_IMAGE_BASE_NAME ?= "${KERNEL_IMAGETYPE}-${PE}-${PV}-${PR}-${MACHINE}-${DATETIME}"
307# Don't include the DATETIME variable in the sstate package signatures 308# Don't include the DATETIME variable in the sstate package signatures