If the tree already contains yaffs then we don't delete it.
We now give a better explanation of what to do.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
#
# 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
#
- 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