From 8cfbeee2979f0049bf018f207afc01b55d1a7bcd Mon Sep 17 00:00:00 2001
From: Lans Zhang <jia.zhang@windriver.com>
Date: Fri, 30 Jun 2017 16:59:34 +0800
Subject: [PATCH] Prevent from removing intermediate .efi

Upstream-Status: Pending

Otherwise Make will delete the .efi during the build:
sysroots/x86_64-linux/usr/bin/pesign -n certdb -i MokManager.efi -c "shim" -s -o MokManager.efi.signed -f
rm fallback.efi MokManager.efi
DEBUG: Shell function do_compile finished

Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 0497e4d..19e1b4f 100644
--- a/Makefile
+++ b/Makefile
@@ -108,6 +108,8 @@ ifneq ($(origin ENABLE_HTTPBOOT), undefined)
 	SOURCES += httpboot.c httpboot.h
 endif
 
+.PRECIOUS: $(MMNAME).efi $(FBNAME).efi
+
 all: $(TARGET)
 
 shim.crt shim.key:
-- 
2.7.5

