add NFSv3 configuration.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@728 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong@gmail.com 2010-05-22 15:00:36 +00:00
parent 9c7ed22d04
commit 2139edd2eb
3 changed files with 32 additions and 11 deletions

View File

@ -90,6 +90,20 @@ void rt_init_thread_entry(void* parameter)
} }
#endif #endif
/* NFSv3 Initialization */
#if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
{
extern void nfs_init(void);
nfs_init();
if (dfs_mount(RT_NULL, "/nfs", "nfs", 0, RT_NFS_HOST_EXPORT) == 0)
{
rt_kprintf("NFSv3 File System initialized!\n");
}
else
rt_kprintf("NFSv3 File System initialzation failed!\n");
}
#endif
} }
void rt_led_thread_entry(void* parameter) void rt_led_thread_entry(void* parameter)

View File

@ -76,6 +76,7 @@
/* Using symbol table */ /* Using symbol table */
#define FINSH_USING_SYMTAB #define FINSH_USING_SYMTAB
#define FINSH_USING_DESCRIPTION #define FINSH_USING_DESCRIPTION
#define FINSH_THREAD_STACK_SIZE 4096
/* SECTION: a runtime libc library */ /* SECTION: a runtime libc library */
/* a runtime libc library */ /* a runtime libc library */
@ -91,10 +92,13 @@
#define RT_USING_DFS_ELMFAT #define RT_USING_DFS_ELMFAT
/* use long file name feature */ /* use long file name feature */
#define RT_DFS_ELM_USE_LFN 1 #define RT_DFS_ELM_USE_LFN 1
/* the max number of file length */ /* the max number of file length */
#define RT_DFS_ELM_MAX_LFN 32 #define RT_DFS_ELM_MAX_LFN 32
/* #define RT_USING_DFS_YAFFS2 */ /* #define RT_USING_DFS_YAFFS2 */
#define RT_USING_DFS_NFS
#define RT_NFS_HOST_EXPORT "192.168.1.5:/"
/* #define DFS_USING_WORKDIR */ /* #define DFS_USING_WORKDIR */
/* the max number of mounted filesystem */ /* the max number of mounted filesystem */

View File

@ -3,14 +3,15 @@ import SCons.cpp
# component options # component options
# make all component false # make all component false
RT_USING_FINSH = False RT_USING_FINSH = False
RT_USING_DFS = False RT_USING_DFS = False
RT_USING_DFS_ELMFAT = False RT_USING_DFS_ELMFAT = False
RT_USING_DFS_YAFFS2 = False RT_USING_DFS_YAFFS2 = False
RT_USING_LWIP = False RT_USING_DFS_NFS = False
RT_USING_WEBSERVER = False RT_USING_LWIP = False
RT_USING_RTGUI = False RT_USING_WEBSERVER = False
RT_USING_MODBUS = False RT_USING_RTGUI = False
RT_USING_MODBUS = False
# parse rtconfig.h to get used component # parse rtconfig.h to get used component
PreProcessor = SCons.cpp.PreProcessor() PreProcessor = SCons.cpp.PreProcessor()
@ -35,9 +36,11 @@ if rtconfig_ns.has_key('RT_USING_DFS'):
if rtconfig_ns.has_key('RT_USING_DFS_ELMFAT'): if rtconfig_ns.has_key('RT_USING_DFS_ELMFAT'):
RT_USING_DFS_ELMFAT = True RT_USING_DFS_ELMFAT = True
if rtconfig_ns.has_key('RT_DFS_ELM_USE_LFN'): if rtconfig_ns.has_key('RT_DFS_ELM_USE_LFN'):
RT_DFS_ELM_USE_LFN = True RT_DFS_ELM_USE_LFN = True
if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'): if rtconfig_ns.has_key('RT_USING_DFS_YAFFS2'):
RT_USING_DFS_YAFFS2 = True RT_USING_DFS_YAFFS2 = True
if rtconfig_ns.has_key('RT_USING_DFS_NFS'):
RT_USING_DFS_NFS = True
# lwip options # lwip options
if rtconfig_ns.has_key('RT_USING_LWIP'): if rtconfig_ns.has_key('RT_USING_LWIP'):
@ -54,8 +57,8 @@ if rtconfig_ns.has_key('RT_USING_RTGUI'):
RT_USING_LCD_TYPE = 'PNL_T35' RT_USING_LCD_TYPE = 'PNL_T35'
# toolchains options # toolchains options
ARCH = 'arm' ARCH = 'arm'
CPU = 's3c24x0' CPU = 's3c24x0'
TextBase = '0x30000000' TextBase = '0x30000000'
CROSS_TOOL = 'keil' CROSS_TOOL = 'keil'