|
@@ -139,7 +139,6 @@ endif
|
|
|
# Set HAVE_EFI_OBJCOPY if objcopy understands --target efi-[app|bsdrv|rtdrv],
|
|
|
# otherwise we need to compose the PE/COFF header using the assembler
|
|
|
#
|
|
|
-ifneq ($(ARCH),aarch64)
|
|
|
ifneq ($(ARCH),arm)
|
|
|
ifneq ($(ARCH),mips64el)
|
|
|
ifneq ($(ARCH),riscv64)
|
|
@@ -149,7 +148,6 @@ endif
|
|
|
endif
|
|
|
endif
|
|
|
endif
|
|
|
-endif
|
|
|
|
|
|
ifneq ($(ARCH),arm)
|
|
|
export LIBGCC=$(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
|
|
@@ -159,6 +157,11 @@ ifeq ($(ARCH),arm)
|
|
|
CFLAGS += -marm
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(ARCH),aarch64)
|
|
|
+LDFLAGS += -z common-page-size=4096
|
|
|
+LDFLAGS += -z max-page-size=4096
|
|
|
+endif
|
|
|
+
|
|
|
# Generic compilation flags
|
|
|
INCDIR += -I$(SRCDIR) -I$(TOPDIR)/inc -I$(TOPDIR)/inc/$(ARCH) \
|
|
|
-I$(TOPDIR)/inc/protocol
|