kbuild: archhelp update and $(build)+$(clean)
Moving archhelp to arch/$(ARCH)/Makefile allow us to use this for all architectures. Not all architecture had a boot directory. The following patch implement the common bits, and moved archhelp for i386. Patches for other architectures (arm,sparc64,x86_64) will follow.
The defines $(build) and $(clean) simplify recursive make invocations. $(Q)$(MAKE) -f scripts/Makefile.build obj=arch/i386/boot bzImage is reduced to
$(Q)$(MAKE) $(build)=arch/i386/boot bzImage
It keeps the commandlines sorter than 80 characters in common case. Made it possible to use in all makefiles, and introduced usage for i386.
Updates to a few architectures will follow (same list as before for now).
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.
===================================================================
[email protected], 2002-12-27 21:15:49+01:00, [email protected]
kbuild: Move archhelp to arch/$(ARCH)/Makefile
arch/$(ARCH)/Makefile already contains the kbuild required additions to allow the kernel to be built for the architecture in question. Moving archhelp centralise this information, and no longer require a boot directory to exist to utilise this feature.
Update i386 to define archhelp in arch/$(ARCH)/Makefile Other architectures will be updated in next cset.
[email protected], 2002-12-27 20:50:55+01:00, [email protected]
kbuild: $(build) and $(clean) macros for make invocation
The former macro $(descend ...) hide for make the fact that a recursively make was invoked. The replacement $(Q)$(MAKE) -f scripts/Makefile.build obj=dir was too verbose. Introduced $(build) and $(clean) allowing the following syntax: $(Q)$(MAKE) $(build)=arch/i386/boot target and similar for clean. Introduced $(build) and $(clean) in general, and for i386 architecture.
Makefile | 3 ++- arch/i386/Makefile | 9 +++++++++ arch/i386/boot/Makefile | 8 -------- 3 files changed, 11 insertions(+), 9 deletions(-)
Makefile +2 -1
@@ -821,7 +821,8 @@ @$(MAKE) --no-print-directory -f Documentation/DocBook/Makefile dochelp @echo '' @echo 'Architecture specific targets ($(ARCH)):' - @$(MAKE) --no-print-directory -f arch/$(ARCH)/boot/Makefile archhelp + @$(if $(archhelp),$(archhelp),\ + echo ' No architecture specific help defined for $(ARCH)') @echo '' @echo 'Execute "make" or "make all" to build all targets marked with [*] ' @echo 'For further info browse Documentation/kbuild/*'
arch/i386/Makefile +9 -0
@@ -104,3 +104,12 @@ archclean: $(Q)$(MAKE) $(clean)=arch/i386/boot + +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 +
arch/i386/boot/Makefile +0 -8
@@ -74,11 +74,3 @@ install: $(BOOTIMAGE) sh $(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)" - -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' -
===================================================================
This BitKeeper patch contains the following changesets:
1.958..1.959
## Wrapped with gzip_uu ##
begin 664 bkpatch24452 M'XL(`&'<##X``]U::V_;.!;];/T*8B:#Q#N.+>HMUDDK8MI,.VTV\>G[2*@ M)-K61!8]E)0TV-^^]Y+RJ_8LF.CF2VV34/9NKPD+P_/?;_DL\%E_U6P2;& MC^2U*,I^:\)DT97L+H^$''7A'[SY(2\Z8W%A/=`ME?(N)>E>?6U=\MESK-> M=-N[C:HT2PR0?L_*>$SNN"SZ+=JU%]^4#U/>;WUX]<OG-U<?#./B@KP<LWS$ M/_*27%P8I9!W+$N*2U:.,Y%W2\GR8L)+UHW%9+80G5FF:<%?E_JVZ7HSZIF. M/XMI0BES*$],RPD\QX!I7FXLY9$6:ED^]9S0=F:FZYJ.,2"T&[H!,:T>M7J6 M3RRS[\*/^[-)^Z9)MBHE/[ODW#1>D&^[@)=&3+1-^^3D3#VT"<L3^!!GG.5M M,F&Q%49"@F/MYRD^9V(69F*'+K"SZ<QQY<3+K4H]$QX$7/0T>UVVV2<)GS9 MNT1I%I?PP$K"B.1Q)8OTCF</6N">%:4![GE25=IEWR:L9A/>%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