From 1106bab73ec3399b5b6bfbab03791de9c50f04c7 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 5 Apr 2011 17:21:54 -0500 Subject: [PATCH] RTEMS: Use the new mount API to initialize TFTP. --- src/RTEMS/base/rtems_init.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/RTEMS/base/rtems_init.c b/src/RTEMS/base/rtems_init.c index ace697ef6..ad2f3dbe2 100644 --- a/src/RTEMS/base/rtems_init.c +++ b/src/RTEMS/base/rtems_init.c @@ -209,7 +209,17 @@ initialize_remote_filesystem(char **argv, int hasLocalFilesystem) { #ifdef OMIT_NFS_SUPPORT printf ("***** Initializing TFTP *****\n"); +#if __RTEMS_MAJOR__>4 || \ + (__RTEMS_MAJOR__==4 && __RTEMS_MINOR__>9) || \ + (__RTEMS_MAJOR__==4 && __RTEMS_MINOR__==9 && __RTEMS_REVISION__==99) + mount_and_make_target_path(NULL, + "/TFTP", + RTEMS_FILESYSTEM_TYPE_TFTPFS, + RTEMS_FILESYSTEM_READ_WRITE, + NULL); +#else rtems_bsdnet_initialize_tftp_filesystem (); +#endif if (!hasLocalFilesystem) { char *path; int pathsize = 200;