mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de>,
	Russell King <rmk@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: kbuild/arm: archhelp + $(build)
Date: Sat, 28 Dec 2002 00:00:12 +0100	[thread overview]
Message-ID: <20021227230012.GA24310@mars.ravnborg.org> (raw)

Introduced usage of archhelp for arm.
Introduced usage of $(build)

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.960, 2002-12-27 23:32:51+01:00, sam@mars.ravnborg.org
  kbuild/arm: archhelp and $(build)
  
  Moved archhelp to arch/arm/Makefile
  Introduced usage of $(build) and $(clean)


 Makefile      |   34 +++++++++++++++++++++++-----------
 boot/Makefile |   15 ++-------------
 2 files changed, 25 insertions(+), 24 deletions(-)


diff -Nru a/arch/arm/Makefile b/arch/arm/Makefile
--- a/arch/arm/Makefile	Fri Dec 27 23:55:52 2002
+++ b/arch/arm/Makefile	Fri Dec 27 23:55:52 2002
@@ -139,7 +139,7 @@
 # Default target when executing plain make
 all: zImage
 
-makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/arm/boot $(1)
+boot := arch/arm/boot
 
 #	Update machine arch and proc symlinks if something which affects
 #	them changed.  We use .arch and .proc to indicate when they were
@@ -162,17 +162,17 @@
 .PHONY: maketools FORCE
 maketools: include/asm-arm/.arch include/asm-arm/.proc \
 	   include/asm-arm/constants.h include/linux/version.h FORCE
-	$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/arm/tools include/asm-arm/mach-types.h
+	$(Q)$(MAKE) $(build)=arch/arm/tools include/asm-arm/mach-types.h
 
 # Convert bzImage to zImage
 bzImage: vmlinux
-	$(call makeboot,arch/arm/boot/zImage)
+	$(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
 
 zImage Image bootpImage: vmlinux
-	$(call makeboot,arch/arm/boot/$@)
+	$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
 
 zinstall install: vmlinux
-	$(call makeboot,$@)
+	$(Q)$(MAKE) $(build)=$(boot) $@
 
 MRPROPER_FILES	+= \
 	include/asm-arm/arch include/asm-arm/.arch \
@@ -183,14 +183,14 @@
 # We use MRPROPER_FILES and CLEAN_FILES now
 archmrproper:
 archclean:
-	$(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/arm/boot
+	$(Q)$(MAKE) $(clean)=$(boot)
 
 # My testing targets (that short circuit a few dependencies)
-zImg:;	$(call makeboot, arch/arm/boot/zImage)
-Img:;	$(call makeboot, arch/arm/boot/Image)
-bp:;	$(call makeboot, arch/arm/boot/bootpImage)
-i:;	$(call makeboot, install)
-zi:;	$(call makeboot, zinstall)
+zImg:;	$(Q)$(MAKE) $(build)=$(boot) $(boot)/zImage
+Img:;	$(Q)$(MAKE) $(build)=$(boot) $(boot)/Image
+bp:;	$(Q)$(MAKE) $(build)=$(boot) $(boot)/bootpImage
+i:;	$(Q)$(MAKE) $(build)=$(boot) install
+zi:;	$(Q)$(MAKE) $(build)=$(boot) zinstall
 
 #
 # Configuration targets.  Use these to select a
@@ -216,3 +216,15 @@
 	@echo -n '  Generating $@'
 	@$(generate-asm-offsets.h) < $< > $@.tmp
 	@$(update-if-changed)
+
+define archhelp
+  echo  '* zImage        - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
+  echo  '  Image         - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
+  echo  '  bootpImage    - Combined zImage and initial RAM disk' 
+  echo  '  initrd        - Create an initial image'
+  echo  '  install       - Install uncompressed kernel'
+  echo  '  zinstall      - Install compressed kernel'
+  echo  '                  Install using (your) ~/bin/installkernel or'
+  echo  '                  (distribution) /sbin/installkernel or'
+  echo  '                  install to $$(INSTALL_PATH) and run lilo'
+endef
diff -Nru a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
--- a/arch/arm/boot/Makefile	Fri Dec 27 23:55:52 2002
+++ b/arch/arm/boot/Makefile	Fri Dec 27 23:55:52 2002
@@ -84,10 +84,10 @@
 	@echo '  Kernel: $@ is ready'
 
 $(obj)/compressed/vmlinux: vmlinux FORCE
-	$(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed $@
+	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
 
 $(obj)/bootp/bootp: $(obj)/zImage initrd FORCE
-	$(Q)$(MAKE) -f scripts/Makefile.build obj=$(obj)/compressed $@
+	$(Q)$(MAKE) $(build)=$(obj)/compressed $@
 
 .PHONY: initrd
 initrd:
@@ -108,14 +108,3 @@
 
 clean-files := $(addprefix $(obj)/,Image zImage bootpImage)
 subdir-	    := bootp compressed
-
-archhelp:
-	@echo  '* zImage        - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
-	@echo  '  Image         - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
-	@echo  '  bootpImage    - Combined zImage and initial RAM disk' 
-	@echo  '  initrd        - Create an initial image'
-	@echo  '  install       - Install uncompressed kernel'
-	@echo  '  zinstall      - Install compressed kernel'
-	@echo  '                  Install using (your) ~/bin/installkernel or'
-	@echo  '                  (distribution) /sbin/installkernel or'
-	@echo  '                  install to $$(INSTALL_PATH) and run lilo'

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


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


begin 664 bkpatch24237
M'XL(`'C:##X``[U7_V_B-A3_N?XKGG1(P)T@MA,"86(JZYU6=.W6]:Z_39J<
MQ#0925S92;>KT/[V>TEH@+9`J;:%$(?X\WEY7_W,.[@Q4H]/C$C).SA7)A^?
MI$*;OA;WF:_T;1^_.'.M%,Y8D4JEA5C+Z,!*XJSXVUI(G<G$\A?6PB_B)"2(
MOA)Y$,&]U&9\POIV\R3_=B?')]>??KZYF%X3,IG`622R6_E%YC"9D%SI>Y&$
MYE3D4:*R?JY%9E*9BWZ@TF4#77)*.7X&;&C3@;MD+G6&RX"%C`F'R9!R9^0Z
M!-4\?6;*$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<(4
2Z63NBX%'J23?`52S"/*L#```
`
end

                 reply	other threads:[~2002-12-27 22:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021227230012.GA24310@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®