diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2006-05-17 09:48:37 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-05-17 09:48:37 +0000 |
commit | 2377ba188fe480437374953241753df9cc0eb51d (patch) | |
tree | 0d8cd009fe14c24df5e2fdaad3efcc38acd6ad69 /packages | |
parent | 2328ac8bc6a44b9a0e57ad503a57fabb80facac1 (diff) |
linux-openzaurus: added check for collie kernel size
Diffstat (limited to 'packages')
-rw-r--r-- | packages/linux/linux-openzaurus.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/linux/linux-openzaurus.inc b/packages/linux/linux-openzaurus.inc index c806452e52..e99bd07316 100644 --- a/packages/linux/linux-openzaurus.inc +++ b/packages/linux/linux-openzaurus.inc @@ -130,6 +130,14 @@ do_compile_append() { die "This kernel is too big for your PXA Zaurus and will destroy data if you flash it. Please reduce the size of the kernel by making more of it modular." fi ;; + collie ) + size=`ls -l arch/${ARCH}/boot/${KERNEL_IMAGETYPE} | awk '{ print $5}'` + if [ $size -ge 1048576 ]; then + rm arch/${ARCH}/boot/${KERNEL_IMAGETYPE} + echo "Size is $size" + die "This kernel is too big for your Collie and will not be flashed. Please reduce the size of the kernel by making more of it modular." + fi + ;; *) ;; esac |