kernel.bbclass: update KERNEL_IMAGE_MAXSIZE
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 7 Jul 2014 09:33:59 +0000 (02:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Jul 2014 16:38:32 +0000 (17:38 +0100)
commit2728369aa177de7636a03974bceeb4404a8303dc
treef08929f8d969ababcad5a577f6c16ab0480e28c6
parent2341a4f270cb0b1cbfab2ccea7dcca953eb5023e
kernel.bbclass: update KERNEL_IMAGE_MAXSIZE

* Make KERNEL_IMAGE_MAXSIZE and IMAGE_ROOTFS_SIZE have the same algorithm:
  - Use Kbytes as the unit since we use this in other codes.
  - Use "du" rather than "ls" to figure out the size since we use this in
    image.py.

[YOCTO #2610]

(From OE-Core rev: 7384d2831c713ac5999aca83c312154dc15cec56)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass