[FREELDR]: Do not build EXT2, ISO or NTFS support for ARM targets.

svn path=/trunk/; revision=45520
This commit is contained in:
Sir Richard 2010-02-09 02:32:59 +00:00
parent 9eea228a7d
commit 7d76dde312
4 changed files with 15 additions and 0 deletions

View file

@ -17,6 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef _M_ARM
#include <freeldr.h> #include <freeldr.h>
#include <debug.h> #include <debug.h>
@ -1308,3 +1309,6 @@ const DEVVTBL* Ext2Mount(ULONG DeviceId)
else else
return NULL; return NULL;
} }
#endif

View file

@ -321,13 +321,17 @@ LONG ArcOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId)
} }
/* Try to detect the file system */ /* Try to detect the file system */
#ifndef _M_ARM
FileData[DeviceId].FileFuncTable = IsoMount(DeviceId); FileData[DeviceId].FileFuncTable = IsoMount(DeviceId);
if (!FileData[DeviceId].FileFuncTable) if (!FileData[DeviceId].FileFuncTable)
#endif
FileData[DeviceId].FileFuncTable = FatMount(DeviceId); FileData[DeviceId].FileFuncTable = FatMount(DeviceId);
#ifndef _M_ARM
if (!FileData[DeviceId].FileFuncTable) if (!FileData[DeviceId].FileFuncTable)
FileData[DeviceId].FileFuncTable = NtfsMount(DeviceId); FileData[DeviceId].FileFuncTable = NtfsMount(DeviceId);
if (!FileData[DeviceId].FileFuncTable) if (!FileData[DeviceId].FileFuncTable)
FileData[DeviceId].FileFuncTable = Ext2Mount(DeviceId); FileData[DeviceId].FileFuncTable = Ext2Mount(DeviceId);
#endif
if (!FileData[DeviceId].FileFuncTable) if (!FileData[DeviceId].FileFuncTable)
{ {
/* Error, unable to detect file system */ /* Error, unable to detect file system */

View file

@ -18,6 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#ifndef _M_ARM
#include <freeldr.h> #include <freeldr.h>
#include <debug.h> #include <debug.h>
@ -510,3 +511,6 @@ const DEVVTBL* IsoMount(ULONG DeviceId)
else else
return NULL; return NULL;
} }
#endif

View file

@ -23,6 +23,7 @@
* - May crash on corrupted filesystem. * - May crash on corrupted filesystem.
*/ */
#ifndef _M_ARM
#include <freeldr.h> #include <freeldr.h>
#include <debug.h> #include <debug.h>
@ -957,3 +958,5 @@ const DEVVTBL* NtfsMount(ULONG DeviceId)
// //
return &NtfsFuncTable; return &NtfsFuncTable;
} }
#endif