projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Clean up test scripts a bit
[yaffs2.git]
/
patch-ker.sh
diff --git
a/patch-ker.sh
b/patch-ker.sh
index 04e6c2c703cfff3fea99c33737e6ddf751877945..ad92e7c4c36ae073db6f8283d8152201e03d62d5 100755
(executable)
--- a/
patch-ker.sh
+++ b/
patch-ker.sh
@@
-2,7
+2,7
@@
#
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
#
# YAFFS: Yet another FFS. A NAND-flash specific file system.
#
-# Copyright (C) 2002-20
06
Aleph One Ltd.
+# Copyright (C) 2002-20
10
Aleph One Ltd.
#
# Created by Charles Manning <charles@aleph1.co.uk>
#
#
# Created by Charles Manning <charles@aleph1.co.uk>
#
@@
-12,11
+12,11
@@
#
# Patch YAFFS into the kernel
#
#
# Patch YAFFS into the kernel
#
-# args: kpath : Full path to kernel sources to be patched
+# args: l/c : link or copy
+# kpath : Full path to kernel sources to be patched
#
# Somewhat "inspired by" the mtd patchin script
#
#
# Somewhat "inspired by" the mtd patchin script
#
-# $Id: patch-ker.sh,v 1.4 2007-12-13 15:35:17 wookey Exp $
VERSION=0
PATCHLEVEL=0
VERSION=0
PATCHLEVEL=0
@@
-92,12
+92,12
@@
else
YAFFS_PATCHED=1
echo "Updating $KCONFIG"
mv -f $KCONFIG $KCONFIGOLD
YAFFS_PATCHED=1
echo "Updating $KCONFIG"
mv -f $KCONFIG $KCONFIGOLD
- sed -n -e "/
JFFS
/,99999 ! p" $KCONFIGOLD >$KCONFIG
+ sed -n -e "/
[Jj][Ff][Ff][Ss]
/,99999 ! p" $KCONFIGOLD >$KCONFIG
echo "">>$KCONFIG
echo "# Patched by YAFFS" >>$KCONFIG
echo "source \"fs/yaffs2/Kconfig\"">>$KCONFIG
echo "">>$KCONFIG
echo "">>$KCONFIG
echo "# Patched by YAFFS" >>$KCONFIG
echo "source \"fs/yaffs2/Kconfig\"">>$KCONFIG
echo "">>$KCONFIG
- sed -n -e "/
JFFS
/,99999 p" $KCONFIGOLD >>$KCONFIG
+ sed -n -e "/
[Jj][Ff][Ff][Ss]
/,99999 p" $KCONFIGOLD >>$KCONFIG
# now do fs/Makefile -- simply add the target at the end
echo "Updating $MAKEFILE"
# now do fs/Makefile -- simply add the target at the end
echo "Updating $MAKEFILE"
@@
-112,7
+112,9
@@
YAFFSDIR=$LINUXDIR/fs/yaffs2
if [ -e $YAFFSDIR ]
then
if [ -e $YAFFSDIR ]
then
- echo "$YAFFSDIR exists, not patching"
+ echo "$YAFFSDIR exists, not patching."
+ echo "If you want to replace what is already there then delete $YAFFSDIR"
+ echo " eg. \"rm -rf $YAFFSDIR\" "
else
mkdir $LINUXDIR/fs/yaffs2
$CPY $PWD/Makefile.kernel $LINUXDIR/fs/yaffs2/Makefile
else
mkdir $LINUXDIR/fs/yaffs2
$CPY $PWD/Makefile.kernel $LINUXDIR/fs/yaffs2/Makefile