         cfgfile.write('chainloader /EFI/BOOT/bits/%s\n' % loader)
         cfgfile.write('}\n')
  
-+    if "${TARGET_ARCH}" == "aarch64":
++    if re.search("aarch64", target):
 +       cfgfile.write('menuentry \'sbbr/sbsa\' {\n')
 +       cfgfile.write('chainloader /EFI/BOOT/Shell.efi\n')
 +       cfgfile.write('}\n')

From c08a316455fdf148cd4d4390babbfe8f5383ac37 Mon Sep 17 00:00:00 2001
From: Sakar Arora <Sakar.Arora@arm.com>
Date: Thu, 23 Mar 2017 21:16:07 +0530
Subject: [PATCH] luv v4.10

+echo "Built image can be found at $OUTPUT_FILE"
+exit
diff --git a/meta-luv/classes/luv-efi.bbclass b/meta-luv/classes/luv-efi.bbclass
index d23c33d..be3c4a6 100644
--- a/meta-luv/classes/luv-efi.bbclass
+++ b/meta-luv/classes/luv-efi.bbclass
@@ -16,6 +16,13 @@ def get_bits_depends(bb, d):
