lkml.org 
[lkml]   [2006]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[RFC PATCH 06/35] Add vmlinuz build target.
    The vmlinuz image is a stripped and compressed kernel image, it is
    smaller than the vmlinux image and the Xen domain builder supports
    loading compressed images directly.

    Signed-off-by: Ian Pratt <ian.pratt@xensource.com>
    Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>
    ---
    arch/i386/Makefile | 5 +++--
    arch/i386/boot/Makefile | 10 +++++++++-
    2 files changed, 12 insertions(+), 3 deletions(-)

    --- xen-subarch-2.6.orig/arch/i386/Makefile
    +++ xen-subarch-2.6/arch/i386/Makefile
    @@ -105,15 +105,16 @@ CPPFLAGS += $(mflags-y)
    boot := arch/i386/boot

    .PHONY: zImage bzImage compressed zlilo bzlilo \
    - zdisk bzdisk fdimage fdimage144 fdimage288 install
    + zdisk bzdisk fdimage fdimage144 fdimage288 install vmlinuz

    all: bzImage

    # KBUILD_IMAGE specify target image being built
    KBUILD_IMAGE := $(boot)/bzImage
    zImage zlilo zdisk: KBUILD_IMAGE := arch/i386/boot/zImage
    +vmlinuz: KBUILD_IMAGE := $(boot)/vmlinuz

    -zImage bzImage: vmlinux
    +zImage bzImage vmlinuz: vmlinux
    $(Q)$(MAKE) $(build)=$(boot) $(KBUILD_IMAGE)

    compressed: zImage
    --- xen-subarch-2.6.orig/arch/i386/boot/Makefile
    +++ xen-subarch-2.6/arch/i386/boot/Makefile
    @@ -26,7 +26,7 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
    #RAMDISK := -DRAMDISK=512

    targets := vmlinux.bin bootsect bootsect.o \
    - setup setup.o zImage bzImage
    + setup setup.o zImage bzImage vmlinuz
    subdir- := compressed

    hostprogs-y := tools/build
    @@ -100,5 +100,13 @@ zlilo: $(BOOTIMAGE)
    cp System.map $(INSTALL_PATH)/
    if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi

    +$(obj)/vmlinuz: $(obj)/vmlinux-stripped FORCE
    + $(call if_changed,gzip)
    + @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
    +
    +$(obj)/vmlinux-stripped: OBJCOPYFLAGS := -g --strip-unneeded
    +$(obj)/vmlinux-stripped: vmlinux FORCE
    + $(call if_changed,objcopy)
    +
    install:
    sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-03-22 07:53    [W:5.093 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site