summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2014-08-12 15:33:22 +0200
committerPeter Jones <pjones@redhat.com>2014-08-12 10:54:05 -0400
commitfa525bc4632e04346fae82a98ce23b31c6cfc86d (patch)
treef86313fab04e5609d5ae777d032aaa4e73681e70 /Makefile
parent04cba93d64b5ffd3a05be82aacea5c2b2d0ea94c (diff)
downloadefi-boot-shim-fa525bc4632e04346fae82a98ce23b31c6cfc86d.tar.gz
efi-boot-shim-fa525bc4632e04346fae82a98ce23b31c6cfc86d.zip
Add support for 32-bit ARM
This adds support for building the shim for a 32-bit ARM UEFI environment. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3529b454..5bc513c1 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,10 @@ ifeq ($(ARCH),aarch64)
CFLAGS += -ffreestanding -I$(shell $(CC) -print-file-name=include)
endif
+ifeq ($(ARCH),arm)
+ CFLAGS += -ffreestanding -I$(shell $(CC) -print-file-name=include)
+endif
+
ifneq ($(origin VENDOR_CERT_FILE), undefined)
CFLAGS += -DVENDOR_CERT_FILE=\"$(VENDOR_CERT_FILE)\"
endif
@@ -118,6 +122,12 @@ SUBSYSTEM := 0xa
LDFLAGS += --defsym=EFI_SUBSYSTEM=$(SUBSYSTEM)
endif
+ifeq ($(ARCH),arm)
+FORMAT := -O binary
+SUBSYSTEM := 0xa
+LDFLAGS += --defsym=EFI_SUBSYSTEM=$(SUBSYSTEM)
+endif
+
FORMAT ?= --target efi-app-$(ARCH)
%.efi: %.so