Blame SOURCES/0003-add-custom-Makefile-for-EfiRom-RHEL-only.patch

593ec3
From 3e446e7832cd4f66b352d25092a5dccaa78bd122 Mon Sep 17 00:00:00 2001
2e8da4
From: Laszlo Ersek <lersek@redhat.com>
40e044
Date: Wed, 21 Oct 2015 11:08:59 +0200
40e044
Subject: add custom Makefile for EfiRom (RHEL only)
2e8da4
2e8da4
Message-id: <1410295825-13989-3-git-send-email-lersek@redhat.com>
2e8da4
Patchwork-id: 60928
2e8da4
O-Subject: [RHEL-7.1 ipxe PATCH 2/4] add custom Makefile for EfiRom (RHEL only)
2e8da4
Bugzilla: 1084561
2e8da4
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
2e8da4
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
2e8da4
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
2e8da4
2e8da4
The build flags have been captured from the BaseTools build log.
2e8da4
2e8da4
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
40e044
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
c62b1d
(cherry picked from commit a20ead07b711057d778645392fdda048f83cd321)
2e8da4
---
2e8da4
 EfiRom/Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
2e8da4
 1 file changed, 43 insertions(+)
2e8da4
 create mode 100644 EfiRom/Makefile
2e8da4
2e8da4
diff --git a/EfiRom/Makefile b/EfiRom/Makefile
2e8da4
new file mode 100644
2e8da4
index 0000000..30914d9
2e8da4
--- /dev/null
2e8da4
+++ b/EfiRom/Makefile
2e8da4
@@ -0,0 +1,43 @@
2e8da4
+.POSIX:
2e8da4
+
2e8da4
+CFLAGS = -fshort-wchar -fno-strict-aliasing -I Common -I Include -I Include/X64
2e8da4
+LDFLAGS = -s
2e8da4
+
2e8da4
+EfiRom: EfiRom.o CommonLib.o EfiUtilityMsgs.o ParseInf.o EfiCompress.o
2e8da4
+	$(CC) -o EfiRom $(LDFLAGS) EfiRom.o CommonLib.o EfiUtilityMsgs.o \
2e8da4
+ ParseInf.o EfiCompress.o
2e8da4
+
2e8da4
+EfiRom.o: EfiRom.c Common/EfiUtilityMsgs.h Include/Common/UefiBaseTypes.h \
2e8da4
+ Include/Common/BaseTypes.h Include/X64/ProcessorBind.h Common/ParseInf.h \
2e8da4
+ Common/MemoryFile.h EfiRom.h Include/IndustryStandard/PeImage.h \
2e8da4
+ Include/IndustryStandard/pci22.h Include/IndustryStandard/pci23.h \
2e8da4
+ Include/IndustryStandard/pci30.h Include/IndustryStandard/EfiPci.h \
2e8da4
+ Include/IndustryStandard/pci30.h Common/Compress.h Common/CommonLib.h \
2e8da4
+ Include/Common/BuildVersion.h Common/CommonLib.h
2e8da4
+	$(CC) $(CFLAGS) -c EfiRom.c
2e8da4
+
2e8da4
+CommonLib.o: Common/CommonLib.c Common/CommonLib.h \
2e8da4
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
2e8da4
+ Include/X64/ProcessorBind.h Include/Common/BuildVersion.h \
2e8da4
+ Common/EfiUtilityMsgs.h
2e8da4
+	$(CC) $(CFLAGS) -c Common/CommonLib.c
2e8da4
+
2e8da4
+EfiUtilityMsgs.o: Common/EfiUtilityMsgs.c Common/EfiUtilityMsgs.h \
2e8da4
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
2e8da4
+ Include/X64/ProcessorBind.h
2e8da4
+	$(CC) $(CFLAGS) -c Common/EfiUtilityMsgs.c
2e8da4
+
2e8da4
+ParseInf.o: Common/ParseInf.c Common/EfiUtilityMsgs.h \
2e8da4
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
2e8da4
+ Include/X64/ProcessorBind.h Common/ParseInf.h Common/MemoryFile.h \
2e8da4
+ Common/CommonLib.h Include/Common/BuildVersion.h
2e8da4
+	$(CC) $(CFLAGS) -c Common/ParseInf.c
2e8da4
+
2e8da4
+EfiCompress.o: Common/EfiCompress.c Common/Compress.h Common/CommonLib.h \
2e8da4
+ Include/Common/UefiBaseTypes.h Include/Common/BaseTypes.h \
2e8da4
+ Include/X64/ProcessorBind.h Include/Common/BuildVersion.h
2e8da4
+	$(CC) $(CFLAGS) -c Common/EfiCompress.c
2e8da4
+
2e8da4
+clean:
2e8da4
+	rm -f EfiRom EfiRom.o CommonLib.o EfiUtilityMsgs.o ParseInf.o \
2e8da4
+ EfiCompress.o
2e8da4
-- 
c62b1d
1.8.3.1
2e8da4