efi: Build EFI stub with EFI-appropriate options
PATCH 1/1 efi: Build EFI stub with EFI-appropriate options
We can't assume the presence of the red zone while we're still in a boot services environment, so we should build with -fno-red-zone to avoid problems. Change the size of wchar at the same time to make string handling simpler.
--- arch/x86/boot/compressed/Makefile | 3 +++ 1 file changed, 3 insertions(+)
arch/x86/boot/compressed/Makefile +3 -0
@@ -28,6 +28,9 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ $(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \ $(obj)/piggy.o +$(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone +$(obj)/efi_stub_$(BITS).o: KBUILD_CLFAGS += -fshort-wchar -mno-red-zone + ifeq ($(CONFIG_EFI_STUB), y) VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o endif
Signature · 1 line
1.7.10.4
Quoted 9 lines · Matthew Garrett
We can't assume the presence of the red zone while we're still in a boot services environment, so we should build with -fno-red-zone to avoid problems. Change the size of wchar at the same time to make string handling simpler.
Signed-off-by Matthew Garrett <[email protected]>--- arch/x86/boot/compressed/Makefile | 3 +++ 1 file changed, 3 insertions(+)
Quoted 15 lines · Matthew Garrett
We can't assume the presence of the red zone while we're still in a boot services environment, so we should build with -fno-red-zone to avoid problems. Change the size of wchar at the same time to make string handling simpler.
Signed-off-by Matthew Garrett <[email protected]>--- arch/x86/boot/compressed/Makefile | 3 +++ 1 file changed, 3 insertions(+)arch/x86/boot/compressed/Makefile +0
-0
arch/x86/boot/compressed/Makefile VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ · line 36
Quoted 9 lines
arch/x86/boot/compressed/Makefile +3
-0@@ -28,6 +28,9 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ $(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \ $(obj)/piggy.o +$(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone +$(obj)/efi_stub_$(BITS).o: KBUILD_CLFAGS += -fshort-wchar -mno-red-zone + ifeq ($(CONFIG_EFI_STUB), y) VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o endif
s/CLFAGS/CFLAGS/
should go to stable too?
--nX
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 lines · Daniel Vacek
s/CLFAGS/CFLAGS/
should go to stable too?
Crap. Yes. Feel free to send that.
Signature · 5 lines
Matthew Garrett | [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Daniel Vacek
s/CLFAGS/CFLAGS/
should go to stable too?
Crap. Yes. Feel free to send that.
--nX
From 53864fe932aa87be62f1c70944c386cff9bb9130 Mon Sep 17 00:00:00 2001
From: Daniel Vacek <[email protected]>
Date: Thu, 18 Oct 2012 22:06:26 +0200
Subject: [PATCH] efi: fix typo in Makefile
--- arch/x86/boot/compressed/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/boot/compressed/Makefile +1 -1
@@ -29,7 +29,7 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \ $(obj)/piggy.o $(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone -$(obj)/efi_stub_$(BITS).o: KBUILD_CLFAGS += -fshort-wchar -mno-red-zone +$(obj)/efi_stub_$(BITS).o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone ifeq ($(CONFIG_EFI_STUB), y) VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o
Signature · 1 line
1.7.10.4
Greg KH
AppliedQuoted 8 lines · Daniel Vacek
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Daniel Vacek
s/CLFAGS/CFLAGS/
should go to stable too?
Crap. Yes. Feel free to send that.
Applied, thanks.
greg k-h
Quoted 11 lines · Greg KH
Quoted 8 lines · Daniel Vacek
Quoted 7 lines · Matthew Garrett
Quoted 3 lines · Daniel Vacek
s/CLFAGS/CFLAGS/
should go to stable too?
Crap. Yes. Feel free to send that.
Applied, thanks.
Something went wrong. I responded to the other two emails.
--nX