lkml.org 
[lkml]   [2012]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[ 104/122] efi: Build EFI stub with EFI-appropriate options
    Date
    3.6-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Matthew Garrett <mjg@redhat.com>

    commit 9dead5bbb825d7c25c0400e61de83075046322d0 upstream.

    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 <mjg@redhat.com>
    Signed-off-by: Matt Fleming <matt.fleming@intel.com>
    Acked-by: Josh Boyer <jwboyer@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    arch/x86/boot/compressed/Makefile | 3 +++
    1 file changed, 3 insertions(+)

    --- a/arch/x86/boot/compressed/Makefile
    +++ b/arch/x86/boot/compressed/Makefile
    @@ -28,6 +28,9 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)
    $(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



    \
     
     \ /
      Last update: 2012-10-11 03:21    [W:4.134 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site