summaryrefslogtreecommitdiff
path: root/patch-ker.sh
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2011-05-13 10:12:55 +1200
committerCharles Manning <cdhmanning@gmail.com>2011-05-13 10:12:55 +1200
commita608236b1929a912dea67fb2afc92784c4a454e7 (patch)
treed3a7f3928ee4a2e9d87cb80f9ecbd537de19e748 /patch-ker.sh
parent15af6e2cb583775682c96af704505bd7440a8551 (diff)
yaffs: Fix patch-ker.sh to handle Kconfigs properly.
Thanks to submitters for this. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'patch-ker.sh')
-rwxr-xr-xpatch-ker.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/patch-ker.sh b/patch-ker.sh
index 41c5089..44152c8 100755
--- a/patch-ker.sh
+++ b/patch-ker.sh
@@ -57,13 +57,13 @@ if [ $MULTIORSINGLE = m ]; then
MTD1_CODE="yaffs_mtdif1_multi.c"
MTD2_CODE="yaffs_mtdif2_multi.c"
YPORTENV="yportenv_multi.h"
- KCONFIG="Kconfig_multi"
+ KCONFIG_SRC="Kconfig_multi"
elif [ $MULTIORSINGLE = s ]; then
VFS_CODE="yaffs_vfs_single.c"
MTD1_CODE="yaffs_mtdif1_single.c"
MTD2_CODE="yaffs_mtdif2_single.c"
YPORTENV="yportenv_single.h"
- KCONFIG="Kconfig_single"
+ KCONFIG_SRC="Kconfig_single"
echo ""
echo "*** Warning ***"
@@ -144,10 +144,10 @@ then
echo "already there then delete $YAFFSDIR and re-run this script"
echo " eg. \"rm -rf $YAFFSDIR\" "
else
- rm yaffs*.mod.c
+ rm yaffs*.mod.c 2> /dev/null
mkdir $LINUXDIR/fs/yaffs2
$CPY $PWD/Makefile.kernel $LINUXDIR/fs/yaffs2/Makefile
- $CPY $PWD/$KCONFIG $LINUXDIR/fs/yaffs2/Kconfig
+ $CPY $PWD/$KCONFIG_SRC $LINUXDIR/fs/yaffs2/Kconfig
$CPY $PWD/*.c $PWD/*.h $LINUXDIR/fs/yaffs2
rm $LINUXDIR/fs/yaffs2/yaffs_vfs*.c $LINUXDIR/fs/yaffs2/yaffs_mtdif[12]*.c
rm $LINUXDIR/fs/yaffs2/yportenv*.h