Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 27 Dec 2002 18:07:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 27 Dec 2002 18:07:27 -0500 Received: from pasmtp.tele.dk ([193.162.159.95]:2578 "EHLO pasmtp.tele.dk") by vger.kernel.org with ESMTP id ; Fri, 27 Dec 2002 18:07:24 -0500 Date: Sat, 28 Dec 2002 00:15:40 +0100 From: Sam Ravnborg To: Andi Kleen , Kai Germaschewski Cc: linux-kernel@vger.kernel.org Subject: kbuild/x86_64: archhelp + various clean-up Message-ID: <20021227231540.GB24461@mars.ravnborg.org> Mail-Followup-To: Andi Kleen , Kai Germaschewski , linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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:%K*'.]&N#/NG7\^[0T(Z'3B>\/A67(L,.AV2)>D] M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