lkml.org 
[lkml]   [2002]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectkbuild/x86_64: archhelp + various clean-up
    Hi Andi.

    [This is one step of the Makefile clean-up as discussed in private mail]

    Moved archhelp to arch/x86_64/Makefile
    Introduced usage of $(build) and $(clean)
    Use kbuild clean infrastructure

    Please apply,
    Sam


    You can import this changeset into BK by piping this whole message to:
    '| bk receive [path to repository]' or apply the patch as usual.

    ===================================================================


    ChangeSet@1.962, 2002-12-27 23:54:14+01:00, sam@mars.ravnborg.org
    kbuild/x86_64: archhelp, $(build) usage and cleaning

    Moved archhelp to arch/x86_64/Makefile
    Introduced usage of $(build) and $(clean)
    Use kbuild clean infrastructure


    Makefile | 26 ++++++++++++++++----------
    boot/Makefile | 18 ++----------------
    boot/compressed/Makefile | 4 ----
    3 files changed, 18 insertions(+), 30 deletions(-)


    diff -Nru a/arch/x86_64/Makefile b/arch/x86_64/Makefile
    --- a/arch/x86_64/Makefile Fri Dec 27 23:56:21 2002
    +++ b/arch/x86_64/Makefile Fri Dec 27 23:56:21 2002
    @@ -55,32 +55,30 @@
    core-$(CONFIG_IA32_EMULATION) += arch/x86_64/ia32/
    drivers-$(CONFIG_PCI) += arch/x86_64/pci/

    -makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/x86_64/boot $(1)
    +boot := arch/x86_64/boot

    .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \
    - clean archclean archmrproper
    + archclean

    BOOTIMAGE=arch/x86_64/boot/bzImage
    zImage zlilo zdisk: BOOTIMAGE=arch/x86_64/boot/zImage

    zImage bzImage: vmlinux
    - $(call makeboot,$(BOOTIMAGE))
    + $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE)

    compressed: zImage

    zlilo bzlilo: vmlinux
    - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) zlilo)
    + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zlilo

    zdisk bzdisk: vmlinux
    - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) zdisk)
    + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zdisk

    install: vmlinux
    - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) install)
    + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) install

    archclean:
    - $(call makeboot,clean)
    -
    -archmrproper:
    + $(Q)$(MAKE) $(clean)=$(boot)

    prepare: include/asm-$(ARCH)/offset.h

    @@ -95,4 +93,12 @@
    @$(update-if-changed)

    CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \
    - include/asm-$(ARCH)/offset.h
    \ No newline at end of file
    + include/asm-$(ARCH)/offset.h
    +
    +define archhelp
    + echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
    + echo ' install - Install kernel using'
    + echo ' (your) ~/bin/installkernel or'
    + echo ' (distribution) /sbin/installkernel or'
    + echo ' install to $$(INSTALL_PATH) and run lilo'
    +endef
    diff -Nru a/arch/x86_64/boot/Makefile b/arch/x86_64/boot/Makefile
    --- a/arch/x86_64/boot/Makefile Fri Dec 27 23:56:21 2002
    +++ b/arch/x86_64/boot/Makefile Fri Dec 27 23:56:21 2002
    @@ -31,7 +31,7 @@
    CFLAGS += -m32

    host-progs := tools/build
    -
    +subdir- := compressed #Let make clean descend in compressed/
    # ---------------------------------------------------------------------------

    $(obj)/zImage: IMAGE_OFFSET := 0x1000
    @@ -58,8 +58,7 @@
    $(call if_changed,ld)

    $(obj)/compressed/vmlinux: FORCE
    - $(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed \
    - IMAGE_OFFSET=$(IMAGE_OFFSET) $@
    + $(Q)$(MAKE) $(build)=$(obj)/compressed IMAGE_OFFSET=$(IMAGE_OFFSET) $@

    zdisk: $(BOOTIMAGE)
    dd bs=8192 if=$(BOOTIMAGE) of=/dev/fd0
    @@ -73,16 +72,3 @@

    install: $(BOOTIMAGE)
    sh $(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"
    -
    -clean:
    - @echo 'Cleaning up (boot)'
    - @rm -f $(host-progs) $(EXTRA_TARGETS)
    - +@$(call descend,$(obj)/compressed) clean
    -
    -archhelp:
    - @echo '* bzImage - Compressed kernel image (arch/$(ARCH)/boot/bzImage)'
    - @echo ' install - Install kernel using'
    - @echo ' (your) ~/bin/installkernel or'
    - @echo ' (distribution) /sbin/installkernel or'
    - @echo ' install to $$(INSTALL_PATH) and run lilo'
    -
    diff -Nru a/arch/x86_64/boot/compressed/Makefile b/arch/x86_64/boot/compressed/Makefile
    --- a/arch/x86_64/boot/compressed/Makefile Fri Dec 27 23:56:21 2002
    +++ b/arch/x86_64/boot/compressed/Makefile Fri Dec 27 23:56:21 2002
    @@ -30,7 +30,3 @@

    $(obj)/piggy.o: $(obj)/vmlinux.scr $(obj)/vmlinux.bin.gz FORCE
    $(call if_changed,ld)
    -
    -clean:
    - @echo 'Cleaning up (boot/compressed)'
    - @rm -f $(EXTRA_TARGETS)
    ===================================================================

    This BitKeeper patch contains the following changesets:
    1.962
    ## Wrapped with gzip_uu ##


    begin 664 bkpatch24301
    M'XL(`)7:##X``[U7;4_C.!#^7/^*D:A$>WMM[+RW4D]T:8%JX>!*5SKI[H2<
    MQ*6YI@F*$VY91??;;^*^`J5`M5Q:K-3V/!Z/GWD\',!7*=)V1?(9.8"S1&;M
    MRHRGLIGR^]A+TMLF_N'(,$EP1)LD,Z'A7$VFOA:%<?Y-FXHT%I'F3;6IEX=1
    M0'#V%<_\"=R+5+8KK&FL>K*'.]&N#/NG7\^[0T(Z'3B>\/A67(L,.AV2)>D]
    MCP)YQ+-)E,3-+.6QG(F,-_UD5JRF%CJE.GXLYAC4L@MF4],I?!8PQDTF`JJ;
    MKFT2=//HV5:>H#!==W3=I,PHJ&F;.ND!:[9L':BN,5W3'="-MF6V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H2#8P8SM9M]0_K_!V[Y+L;13>49`MV<Q,A@PJV6R_E\P4&N:'
    M</G)5:O.N+VX<9LX?H+[D*@=,A/JS/N_CX;=FU%W>-H?70,6`.D"P'O88`E2
    G5Q6?KU%W2]#V8K$!YOJ?.G\B_*G,9QV[Y0KJV8+\!W4'Q39##@``
    `
    end
    -
    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: 2005-03-22 13:31    [W:0.030 / U:64.908 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site