From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 22 Mar 2007 14:46:49 +1100 From: David Gibson To: Milton Miller Subject: Re: [PATCH 8/8] boot: use a common zImage rule Message-ID: <20070322034649.GL2295@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Mar 21, 2007 at 09:03:23AM -0600, Milton Miller wrote: > Before the plethora of platforms gets any worse, establish a common > rule to invoke the wrapper for any platform. Add arguments to > the rule for initrd, dts, dtb, etc. Show example usage with initrd. > > Create default rules for zImage, and zImage.initrd. initrd targets > depend on the ramdisk file. > > Don't consider targets for zImage.initrd that are targets for zImage. > This means uImage is no longer considered a target for > zImage.initrd. This seems happy enough on Ebony now (with Ebony overriding the default targets). Just one nit.. > Index: kernel/arch/powerpc/boot/Makefile > =================================================================== > --- kernel.orig/arch/powerpc/boot/Makefile 2007-03-21 03:27:37.000000000 -0500 > +++ kernel/arch/powerpc/boot/Makefile 2007-03-21 03:37:32.000000000 -0500 > @@ -116,50 +116,10 @@ CROSSWRAP := -C "$(CROSS_COMPILE)" > endif > endif > > +# args (to if_changed): 1 = (this rule), 2 = platform, 3 = dts 4=dtb 5=initrd > quiet_cmd_wrap = WRAP $@ > - cmd_wrap =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) vmlinux > -quiet_cmd_wrap_initrd = WRAP $@ > - cmd_wrap_initrd =$(CONFIG_SHELL) $(wrapper) -c -o $@ -p $2 $(CROSSWRAP) \ > - -i $(obj)/ramdisk.image.gz vmlinux The mixture of tabs and spaces in the line above causes emacs to whinge about a suspicious line every time you try to save. Needless to say, that's kind of irritating... -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson