diff options
| author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2014-08-12 15:33:21 +0200 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2014-08-12 10:54:05 -0400 |
| commit | 04cba93d64b5ffd3a05be82aacea5c2b2d0ea94c (patch) | |
| tree | 450436b525eb7ef30b80abd6492ca449014dda6b /Makefile | |
| parent | 99d7b5e858945b8bb160fe3fea77596b2daf07ff (diff) | |
| download | efi-boot-shim-04cba93d64b5ffd3a05be82aacea5c2b2d0ea94c.tar.gz efi-boot-shim-04cba93d64b5ffd3a05be82aacea5c2b2d0ea94c.zip | |
Add support for 64-bit ARM (AArch64)
This adds support for building the shim for a 64-bit ARM UEFI environment.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -37,6 +37,10 @@ ifeq ($(ARCH),ia32) CFLAGS += -mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args -m32 endif +ifeq ($(ARCH),aarch64) + CFLAGS += -ffreestanding -I$(shell $(CC) -print-file-name=include) +endif + ifneq ($(origin VENDOR_CERT_FILE), undefined) CFLAGS += -DVENDOR_CERT_FILE=\"$(VENDOR_CERT_FILE)\" endif @@ -108,6 +112,12 @@ Cryptlib/OpenSSL/libopenssl.a: lib/lib.a: $(MAKE) -C lib +ifeq ($(ARCH),aarch64) +FORMAT := -O binary +SUBSYSTEM := 0xa +LDFLAGS += --defsym=EFI_SUBSYSTEM=$(SUBSYSTEM) +endif + FORMAT ?= --target efi-app-$(ARCH) %.efi: %.so |
