#
# 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
#
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