From: Michel Thebeau Date: Wed, 20 Mar 2013 15:32:02 +0000 (-0400) Subject: routerstationpro: use KERNEL_IMAGE_MAXSIZE to test the image X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb25e15c62cdde749f34050933d056a79dd2d3c5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git routerstationpro: use KERNEL_IMAGE_MAXSIZE to test the image routerstationpro is limited to 16mb flash size. Exceeding that size may not be noticed immediately, which we don't want. "The current latest kernel for the routerstationpro machine is far beyond the 16MB of it's flash size [0]. I think it would be good to [test if the size of the image is above that size]." Setting this variable will enable the do_sizecheck task and produce an error when the image is too large: "ERROR: This kernel (size=90230265 > 16777216) is too big for your device. Please reduce the size of the kernel by making more of it modular." [YOCTO #3514] Signed-off-by: Michel Thebeau Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend index 3e80bf14504..40ebe15683d 100644 --- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend +++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.4.bbappend @@ -13,3 +13,6 @@ COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb" COMPATIBLE_MACHINE_routerstationpro = "routerstationpro" COMPATIBLE_MACHINE_beagleboard = "beagleboard" COMPATIBLE_MACHINE_atom-pc = "atom-pc" + +# routerstationpro has a flash size of 16mb +KERNEL_IMAGE_MAXSIZE_append_routerstationpro = "16777216"