7ffc87
From c24fa91acae23bdce21595654db002521f49fef2 Mon Sep 17 00:00:00 2001
7ffc87
From: Peter Robinson <pbrobinson@gmail.com>
7ffc87
Date: Wed, 23 Jan 2019 03:12:50 +0000
7ffc87
Subject: [PATCH 09/13] Add check for TianoCore EDK2 firmware for ARMv7
7ffc87
7ffc87
There's now TianoCore EDK2 firmwares for ARMv7 so add a check to
7ffc87
see if they're available in preparation of building UEFI enabled
7ffc87
ARMv7 images.
7ffc87
7ffc87
Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
7ffc87
---
7ffc87
 oz/ozutil.py | 3 +++
7ffc87
 1 file changed, 3 insertions(+)
7ffc87
7ffc87
diff --git a/oz/ozutil.py b/oz/ozutil.py
7ffc87
index 989c9d4..d6a4a28 100644
7ffc87
--- a/oz/ozutil.py
7ffc87
+++ b/oz/ozutil.py
7ffc87
@@ -1061,6 +1061,9 @@ def find_uefi_firmware(arch):
7ffc87
                           '/usr/share/edk2/aarch64/vars-template-pflash.raw'),
7ffc87
                      UEFI('/usr/share/edk2.git/aarch64/QEMU_EFI-pflash.raw',
7ffc87
                           '/usr/share/edk2.git/aarch64/vars-template-pflash.raw')]
7ffc87
+    elif arch in ['armv7l']:
7ffc87
+        uefi_list = [UEFI('/usr/share/edk2/arm/QEMU_EFI-pflash.raw',
7ffc87
+                          '/usr/share/edk2/arm/vars-template-pflash.raw')]
7ffc87
     else:
7ffc87
         raise Exception("Invalid arch for UEFI firmware")
7ffc87
 
7ffc87
-- 
7ffc87
2.20.1
7ffc87