]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel 3.8: routerstationpro: use KERNEL_IMAGE_MAXSIZE to test the image
authorMichel Thebeau <michel.thebeau@windriver.com>
Mon, 29 Apr 2013 13:54:17 +0000 (09:54 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Apr 2013 14:00:53 +0000 (15:00 +0100)
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."

>From commit 83716e40edacfd20dec8ef41f415ad5828d4643b.

[YOCTO #3514]

Signed-off-by: Michel Thebeau <michel.thebeau@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.8.bbappend

index 479a3860b7ebef60f66e53b0f969356f9105faaf..af8ac6cdf01b8e9a399b0c8fe41a93c2e4a5d3a1 100644 (file)
@@ -12,3 +12,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_routerstationpro = "16777216"