lkml.org 
[lkml]   [2007]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 30/47] Update CRISv32 boot Kbuild makefile.
    - Remove old specific targets, use more generic ones instead.
    - Use if_changed to avoid creating new images when no change.

    Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
    ---
    arch/cris/arch-v32/boot/Makefile | 23 +++++++++++++++--------
    1 files changed, 15 insertions(+), 8 deletions(-)

    diff --git a/arch/cris/arch-v32/boot/Makefile b/arch/cris/arch-v32/boot/Makefile
    index 26f293a..3f91349 100644
    --- a/arch/cris/arch-v32/boot/Makefile
    +++ b/arch/cris/arch-v32/boot/Makefile
    @@ -1,14 +1,21 @@
    #
    # arch/cris/arch-v32/boot/Makefile
    #
    -target = $(target_boot_dir)
    -src = $(src_boot_dir)

    -zImage: compressed/vmlinuz
    +OBJCOPY = objcopy-cris
    +OBJCOPYFLAGS = -O binary -R .note -R .comment

    -compressed/vmlinuz: $(objtree)/vmlinux
    - @$(MAKE) -f $(src)/compressed/Makefile $(objtree)/vmlinuz
    +subdir- := compressed rescue
    +targets := Image

    -clean:
    - rm -f zImage tools/build compressed/vmlinux.out
    - @$(MAKE) -f $(src)/compressed/Makefile clean
    +$(obj)/Image: vmlinux FORCE
    + $(call if_changed,objcopy)
    + @echo ' Kernel: $@ is ready'
    +
    +$(obj)/compressed/vmlinux: $(obj)/Image FORCE
    + $(Q)$(MAKE) $(build)=$(obj)/compressed $@
    + $(Q)$(MAKE) $(build)=$(obj)/rescue $(obj)/rescue/rescue.bin
    +
    +$(obj)/zImage: $(obj)/compressed/vmlinux
    + @cp $< $@
    + @echo ' Kernel: $@ is ready'
    --
    1.5.3.6.970.gd25430


    \
     
     \ /
      Last update: 2007-12-06 15:31    [W:0.020 / U:0.976 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site