All of lore.kernel.org
 help / color / mirror / Atom feed
* [poky][PATCH] kernel.bbclass: Fix kernel size checking
@ 2017-12-15  8:16 Jaap de Jong
  2017-12-15  8:30 ` Andrea Adami
  0 siblings, 1 reply; 3+ messages in thread
From: Jaap de Jong @ 2017-12-15  8:16 UTC (permalink / raw)
  To: Yocto discussion list

 From 4d542a5a37210b4fc8c8e894554a75ba6b9be0af Mon Sep 17 00:00:00 2001
From: Jaap de Jong <jaap.dejong@nedap.com>
Date: Fri, 15 Dec 2017 08:58:09 +0100
Subject: [poky][PATCH] kernel.bbclass: Fix kernel size checking
To: yocto@yoctoproject.org

---
  meta/classes/kernel.bbclass | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 7ef4f47..f41c3e4 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -601,12 +601,12 @@ do_sizecheck() {
  	if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
  		invalid=`echo ${KERNEL_IMAGE_MAXSIZE} | sed 's/[0-9]//g'`
  		if [ -n "$invalid" ]; then
-			die "Invalid KERNEL_IMAGE_MAXSIZE: ${KERNEL_IMAGE_MAXSIZE}, should 
be an integerx (The unit is Kbytes)"
+			die "Invalid KERNEL_IMAGE_MAXSIZE: ${KERNEL_IMAGE_MAXSIZE}, should 
be an integer (The unit is Kbytes)"
  		fi
  		for type in ${KERNEL_IMAGETYPES} ; do
  			size=`du -ks ${B}/${KERNEL_OUTPUT_DIR}/$type | awk '{print $1}'`
  			if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
-				warn "This kernel $type (size=$size(K) > 
${KERNEL_IMAGE_MAXSIZE}(K)) is too big for your device. Please reduce 
the size of the kernel by making more of it modular."
+				die "This kernel $type (size=$size(K) > ${KERNEL_IMAGE_MAXSIZE}(K)) 
is too big for your device. Please reduce the size of the kernel by 
making more of it modular."
  			fi
  		done
  	fi
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [poky][PATCH] kernel.bbclass: Fix kernel size checking
  2017-12-15  8:16 [poky][PATCH] kernel.bbclass: Fix kernel size checking Jaap de Jong
@ 2017-12-15  8:30 ` Andrea Adami
  2017-12-15 10:05   ` Jaap de Jong
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Adami @ 2017-12-15  8:30 UTC (permalink / raw)
  To: Jaap de Jong; +Cc: Yocto discussion list

On Fri, Dec 15, 2017 at 9:16 AM, Jaap de Jong <jaap.dejong@nedap.com> wrote:
> From 4d542a5a37210b4fc8c8e894554a75ba6b9be0af Mon Sep 17 00:00:00 2001
> From: Jaap de Jong <jaap.dejong@nedap.com>
> Date: Fri, 15 Dec 2017 08:58:09 +0100
> Subject: [poky][PATCH] kernel.bbclass: Fix kernel size checking
> To: yocto@yoctoproject.org
>
> ---
>  meta/classes/kernel.bbclass | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 7ef4f47..f41c3e4 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -601,12 +601,12 @@ do_sizecheck() {
>         if [ ! -z "${KERNEL_IMAGE_MAXSIZE}" ]; then
>                 invalid=`echo ${KERNEL_IMAGE_MAXSIZE} | sed 's/[0-9]//g'`
>                 if [ -n "$invalid" ]; then
> -                       die "Invalid KERNEL_IMAGE_MAXSIZE:
> ${KERNEL_IMAGE_MAXSIZE}, should be an integerx (The unit is Kbytes)"
> +                       die "Invalid KERNEL_IMAGE_MAXSIZE:
> ${KERNEL_IMAGE_MAXSIZE}, should be an integer (The unit is Kbytes)"
>                 fi
>                 for type in ${KERNEL_IMAGETYPES} ; do
>                         size=`du -ks ${B}/${KERNEL_OUTPUT_DIR}/$type | awk
> '{print $1}'`
>                         if [ $size -ge ${KERNEL_IMAGE_MAXSIZE} ]; then
> -                               warn "This kernel $type (size=$size(K) >
> ${KERNEL_IMAGE_MAXSIZE}(K)) is too big for your device. Please reduce the
> size of the kernel by making more of it modular."
> +                               die "This kernel $type (size=$size(K) >
> ${KERNEL_IMAGE_MAXSIZE}(K)) is too big for your device. Please reduce the
> size of the kernel by making more of it modular."
>                         fi
>                 done
>         fi
> --
> 2.7.4
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

Hi,

there has been a discussion about do_sizecheck and there is already a
pending patch:

http://lists.openembedded.org/pipermail/openembedded-core/2017-December/145376.html

thanks
Andrea


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [poky][PATCH] kernel.bbclass: Fix kernel size checking
  2017-12-15  8:30 ` Andrea Adami
@ 2017-12-15 10:05   ` Jaap de Jong
  0 siblings, 0 replies; 3+ messages in thread
From: Jaap de Jong @ 2017-12-15 10:05 UTC (permalink / raw)
  To: Andrea Adami; +Cc: Yocto discussion list

> there has been a discussion about do_sizecheck and there is already a
> pending patch:
> 
> http://lists.openembedded.org/pipermail/openembedded-core/2017-December/145376.html
Ah! Apologies, totally missed that one


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-12-15 10:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15  8:16 [poky][PATCH] kernel.bbclass: Fix kernel size checking Jaap de Jong
2017-12-15  8:30 ` Andrea Adami
2017-12-15 10:05   ` Jaap de Jong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.