Handle big-endian minixfs (fixes minixfs tests on bigendian).

* grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
	modify names. Introduce MODE_BIGENDIAN.
	* grub-core/fs/minix_be.c: New file.
	* grub-core/fs/minix2_be.c: Likewise
	* grub-core/fs/minix3_be.c: Likewise.
	* Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
	minix3_be.
	* grub-core/Makefile.core.def (minix_be): New module.
	(minix2_be): Likewise.
	(minix3_be): Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-04-01 21:35:18 +02:00
parent f65a829e41
commit ac66b453df
7 changed files with 108 additions and 21 deletions

2
grub-core/fs/minix_be.c Normal file
View file

@ -0,0 +1,2 @@
#define MODE_BIGENDIAN 1
#include "minix.c"