projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs Increase size of test tmpfs area
[yaffs2.git]
/
patch-ker.sh
diff --git
a/patch-ker.sh
b/patch-ker.sh
index ad92e7c4c36ae073db6f8283d8152201e03d62d5..4393e8d01b95cdbe65a4b6d4eb1acb7d330d5497 100755
(executable)
--- a/
patch-ker.sh
+++ b/
patch-ker.sh
@@
-22,15
+22,17
@@
VERSION=0
PATCHLEVEL=0
SUBLEVEL=0
COPYORLINK=$1
PATCHLEVEL=0
SUBLEVEL=0
COPYORLINK=$1
-LINUXDIR=$2
+MULTIORSINGLE=$2
+LINUXDIR=$3
# To be a Linux directory, it must have a Makefile
# Display usage of this script
usage () {
# To be a Linux directory, it must have a Makefile
# Display usage of this script
usage () {
- echo "usage: $0 c/l kernelpath"
+ echo "usage: $0 c/l
m/s
kernelpath"
echo " if c/l is c, then copy. If l then link"
echo " if c/l is c, then copy. If l then link"
+ echo " if m/s is m, then use multi version code. If s then use single version code"
exit 1
}
exit 1
}
@@
-50,6
+52,15
@@
else
usage;
fi
usage;
fi
+if [ $MULTIORSINGLE = m ]; then
+ VFSGLUE="yaffs_vfs_multi.c"
+elif [ $MULTIORSINGLE = s ]; then
+ VFSGLUE="yaffs_vfs.c"
+else
+ echo "unknown multi/single version selection"
+ usage;
+fi
+
# Check if kerneldir contains a Makefile
if [ ! -f $LINUXDIR/Makefile ]
# Check if kerneldir contains a Makefile
if [ ! -f $LINUXDIR/Makefile ]
@@
-120,4
+131,6
@@
else
$CPY $PWD/Makefile.kernel $LINUXDIR/fs/yaffs2/Makefile
$CPY $PWD/Kconfig $LINUXDIR/fs/yaffs2
$CPY $PWD/*.c $PWD/*.h $LINUXDIR/fs/yaffs2
$CPY $PWD/Makefile.kernel $LINUXDIR/fs/yaffs2/Makefile
$CPY $PWD/Kconfig $LINUXDIR/fs/yaffs2
$CPY $PWD/*.c $PWD/*.h $LINUXDIR/fs/yaffs2
+ rm $LINUXDIR/fs/yaffs2/yaffs_vfs.c $LINUXDIR/fs/yaffs2/yaffs_vfs_multi.c
+ $CPY $PWD/$VFSGLUE $LINUXDIR/fs/yaffs2/yaffs_vfs_glue.c
fi
fi