Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932329AbVJYTlK (ORCPT ); Tue, 25 Oct 2005 15:41:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932327AbVJYTlK (ORCPT ); Tue, 25 Oct 2005 15:41:10 -0400 Received: from gprs189-60.eurotel.cz ([160.218.189.60]:31126 "EHLO amd.ucw.cz") by vger.kernel.org with ESMTP id S932332AbVJYTlJ (ORCPT ); Tue, 25 Oct 2005 15:41:09 -0400 Date: Tue, 25 Oct 2005 21:08:29 +0200 From: Pavel Machek To: rpurdie@rpsys.net, kernel list Subject: sharp zaurus: prevent killing spitz-en Message-ID: <20051025190829.GA1788@elf.ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Warning: Reading this can be dangerous to your mental health. User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 32 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! - 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/