public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sharp zaurus: prevent killing spitz-en
@ 2005-10-25 19:08 Pavel Machek
  2005-10-25 22:58 ` Ben Dooks
  0 siblings, 1 reply; 5+ messages in thread
From: Pavel Machek @ 2005-10-25 19:08 UTC (permalink / raw)
  To: rpurdie, kernel list

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
 



-- 
Thanks, Sharp!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-26  0:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 19:08 sharp zaurus: prevent killing spitz-en Pavel Machek
2005-10-25 22:58 ` Ben Dooks
2005-10-25 23:14   ` Pavel Machek
2005-10-25 23:18   ` David Vrabel
2005-10-26  0:10     ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox