lkml.org 
[lkml]   [2005]   [Oct]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sharp zaurus: prevent killing spitz-en
On Tue, Oct 25, 2005 at 09:08:29PM +0200, Pavel Machek wrote:
> Hi!
>
> This is wrong solution, but it prevents breaking flashing mechanism on
> spitz with too big kernel. It may be handy to someone...
>
> Pavel
>
> --- clean-rp/arch/arm/boot/Makefile 2004-12-25 13:34:57.000000000 +0100
> +++ linux-rp/arch/arm/boot/Makefile 2005-10-25 20:43:58.000000000 +0200
> @@ -53,6 +53,12 @@
> $(obj)/zImage: $(obj)/compressed/vmlinux FORCE
> $(call if_changed,objcopy)
> @echo ' Kernel: $@ is ready'
> + @ls -al $@
> + @wc -c $@ | ( read SIZE Y; \
> + if [ $$SIZE -gt 1294336 ]; then \
> + echo ' Kernel is too big, would kill spitz'; \
> + rm $@; \
> + fi )
>
> endif

It would be better for each machine to export an config option
from the Kconfig to specify if they have a maximum size.

--
Ben (ben@fluff.org, http://www.fluff.org/)

'a smiley only costs 4 bytes'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-26 01:01    [W:0.083 / U:8.672 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site