Intel Strataflash

Raphael Hertzog eng at eipm.ch
Thu Jan 30 06:00:44 EST 2003


Am Don, 2003-01-30 um 10.46 schrieb Stephane List:
> On mer, jan 29, 2003 at 10:36:13 +0000,
> David Woodhouse <dwmw2 at infradead.org> wrote:
> > On Wed, 29 Jan 2003, Stephane List wrote:
> > 
> > > PS : I couldn't compile my kernel with the CVS code...
> > 
> > Details?
> > 
> 
> my grep doesn't know the "-m option" so I think that the patch isn't correctly applied.
> I will look at "patchin.sh" to correct this.

Here's the patch that I use (if someone wants to commit it ...) :

Index: patchin.sh
===================================================================
RCS file: /home/cvs/mtd/patches/patchin.sh,v
retrieving revision 1.9
diff -u -r1.9 patchin.sh
--- patchin.sh	30 Nov 2002 23:48:39 -0000	1.9
+++ patchin.sh	30 Jan 2003 10:57:18 -0000
@@ -60,9 +60,9 @@
 fi
 
 # Get kernel version
-VERSION=`grep -sm 1 VERSION <$LINUXDIR/Makefile | sed s/'VERSION = '//`
-PATCHLEVEL=`grep -sm 1 PATCHLEVEL <$LINUXDIR/Makefile | sed s/'PATCHLEVEL = '//`
-SUBLEVEL=`grep -sm 1 SUBLEVEL <$LINUXDIR/Makefile | sed s/'SUBLEVEL = '//`
+VERSION=`grep ^VERSION $LINUXDIR/Makefile | sed s/'VERSION = '//`
+PATCHLEVEL=`grep ^PATCHLEVEL $LINUXDIR/Makefile | sed s/'PATCHLEVEL = '//`
+SUBLEVEL=`grep ^SUBLEVEL $LINUXDIR/Makefile | sed s/'SUBLEVEL = '//`
 
 # Can we handle this ?
 if test $VERSION -ne 2 -o $PATCHLEVEL -lt 4


Cheers,
-- 
Raphaël Hertzog - EIPM SA





More information about the linux-mtd mailing list