]> code.delx.au - refind/blobdiff - filesystems/Makefile
Added primitive cache to most drivers to improve performance,
[refind] / filesystems / Makefile
index 421d48f07e753f2dd77bf0323f572085d03d4438..f6a0011cf97e74782ac3c4e38a899aad0536dbad 100644 (file)
@@ -8,35 +8,73 @@
 
 INSTALL_DIR = /boot/efi/EFI/refind/drivers
 
-FILESYSTEMS = ext2 reiserfs iso9660 hfs ext4
+FILESYSTEMS = ext2 ext4 reiserfs iso9660 hfs btrfs
+FILESYSTEMS_GNUEFI = ext2_gnuefi ext4_gnuefi reiserfs_gnuefi iso9660_gnuefi hfs_gnuefi btrfs_gnuefi
 TEXTFILES = $(FILESYSTEMS:=*.txt)
 
+# Build the drivers with TianoCore EDK2.....
+
 all:   $(FILESYSTEMS)
 
 ext2:
-       rm -f fsw_efi.o
-       make DRIVERNAME=ext2 -f Make.tiano
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=ext2 CACHE=0 -f Make.tiano
+
+ext4:
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=ext4 CACHE=1 -f Make.tiano
 
 reiserfs:
-       rm -f fsw_efi.o
-       make DRIVERNAME=reiserfs -f Make.tiano
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=reiserfs CACHE=1 -f Make.tiano
 
 iso9660:
-       rm -f fsw_efi.o
-       make DRIVERNAME=iso9660 -f Make.tiano
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=iso9660 CACHE=1 -f Make.tiano
 
 hfs:
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=hfs CACHE=1 -f Make.tiano
+
+btrfs:
+       rm -f fsw_efi.obj
+       +make DRIVERNAME=btrfs CACHE=1 -f Make.tiano
+
+# Build the drivers with GNU-EFI....
+
+gnuefi: $(FILESYSTEMS_GNUEFI)
+
+all_gnuefi:    $(FILESYSTEMS_GNUEFI)
+
+ext2_gnuefi:
        rm -f fsw_efi.o
-       make DRIVERNAME=hfs -f Make.tiano
+       +make DRIVERNAME=ext2 CACHE=0 -f Make.gnuefi
 
-ext4:
+ext4_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=ext4 CACHE=1 -f Make.gnuefi
+
+reiserfs_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=reiserfs CACHE=1 -f Make.gnuefi
+
+iso9660_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=iso9660 CACHE=1 -f Make.gnuefi
+
+hfs_gnuefi:
+       rm -f fsw_efi.o
+       +make DRIVERNAME=hfs CACHE=1 -f Make.gnuefi
+
+btrfs_gnuefi:
        rm -f fsw_efi.o
-       make DRIVERNAME=ext4 -f Make.tiano
+       +make DRIVERNAME=btrfs CACHE=1 -f Make.gnuefi
 
 # utility rules
 
 clean:
-       rm -f *~ *.bak *.o *.efi *.dll err.txt $(TEXTFILES)
+       rm -f *~ *.bak *.o *.obj *.so *.efi *.dll err.txt $(TEXTFILES)
+       +make -C test clean
 
 
 install: