diff options
Diffstat (limited to 'gnu-efi-3.0/apps')
-rw-r--r-- | gnu-efi-3.0/apps/AllocPages.c | 4 | ||||
-rw-r--r-- | gnu-efi-3.0/apps/Makefile | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/gnu-efi-3.0/apps/AllocPages.c b/gnu-efi-3.0/apps/AllocPages.c index 34b8c5d..4c7083d 100644 --- a/gnu-efi-3.0/apps/AllocPages.c +++ b/gnu-efi-3.0/apps/AllocPages.c @@ -98,6 +98,9 @@ BS_Code 0000000071902000-00000000721FEFFF 00000000000008FD 000000000000000F #define CHAR_SPACE L' ' +#ifdef DEBUG +#undef DEBUG +#endif #define DEBUG 0 INTN @@ -174,7 +177,6 @@ efi_main (EFI_HANDLE image, EFI_SYSTEM_TABLE *systab) efi_status = uefi_call_wrapper( BS->HandleProtocol, 3, image, &LoadedImageProtocol, &info); - Print(L"AllocatePage: __AllocType__ __MemType__ __NumPages__ [__Addr__]\n"); Print(L"__AllocType__ {0,1,2} -- Any, MaxAddr, Addr\n"); Print(L"__MemType__ {0..13}, Reserved ==0, LCode==1, LData==2, BSCode==3, BSData==4, ...\n"); diff --git a/gnu-efi-3.0/apps/Makefile b/gnu-efi-3.0/apps/Makefile index 5a91289..bd7e658 100644 --- a/gnu-efi-3.0/apps/Makefile +++ b/gnu-efi-3.0/apps/Makefile @@ -58,7 +58,11 @@ LOADLIBES += -lefi -lgnuefi LOADLIBES += $(shell $(CC) $(ARCH3264) -print-libgcc-file-name) LOADLIBES += -T $(LDSCRIPT) +ifeq ($(ARCH),aarch64) +FORMAT := pe-aarch64-little +else FORMAT = efi-app-$(ARCH) +endif TARGET_APPS = t.efi t2.efi t3.efi t4.efi t5.efi t6.efi \ printenv.efi t7.efi tcc.efi modelist.efi \ @@ -71,8 +75,13 @@ TARGETS = $(TARGET_APPS) $(TARGET_BSDRIVERS) $(TARGET_RTDRIVERS) all: $(TARGETS) +ifeq ($(ARCH),aarch64) +$(TARGET_BSDRIVERS): +$(TARGET_RTDRIVERS): +else $(TARGET_BSDRIVERS): FORMAT=efi-bsdrv-$(ARCH) $(TARGET_RTDRIVERS): FORMAT=efi-rtdrv-$(ARCH) +endif clean: rm -f $(TARGETS) *~ *.o *.so |