diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-09-25 13:27:11 +1200 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-09-25 13:27:11 +1200 |
commit | 1996f7866c793b99020d2d204d522291609e9fbb (patch) | |
tree | b8ffe19f376637d68cc80bec07716ba480b68488 /patch-ker.sh | |
parent | 5d36331d84025fe263395a341cba3369b4ba5fed (diff) |
yaffs Add multi and single version Linux glue code
First step to single/mutli veriosns of yaffs for mainlining.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'patch-ker.sh')
-rwxr-xr-x | patch-ker.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/patch-ker.sh b/patch-ker.sh index ad92e7c..4393e8d 100755 --- a/patch-ker.sh +++ b/patch-ker.sh @@ -22,15 +22,17 @@ VERSION=0 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 () { - 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 m/s is m, then use multi version code. If s then use single version code" exit 1 } @@ -50,6 +52,15 @@ else 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 ] @@ -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 + 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 |