From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 9 Oct 2006 10:29:45 +1000 From: David Gibson To: Segher Boessenkool Subject: Re: powerpc: Fix make rules for dtc Message-ID: <20061009002945.GA2259@localhost.localdomain> References: <20061004033753.GB20636@localhost.localdomain> <3711678A-7AA9-493F-B046-2F459604C028@kernel.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <3711678A-7AA9-493F-B046-2F459604C028@kernel.crashing.org> 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 Thu, Oct 05, 2006 at 07:58:59PM +0200, Segher Boessenkool wrote: > > clean-files := $(zlib) $(zlibheader) $(zliblinuxheader) \ > > - $(obj)/empty.c > > + $(obj)/empty.c *.dtb > > If this wildcard works at all, it will still do the wrong thing: > deleting all .dtb files (even the ones that the Makefile cannot > create again, e.g., the user put them in the tree manually) is > at best not very polite. It certainly works at all (the preceding $(obj)/empty.c, however, is wrong, I've sent a separate patch for that). One could say the same thing for *.o in clean targets, though I guess adding .dtb files is rather more likely. However, I can't seen an obvious way of generating a list of the re-creatable dtbs, without an explicit listing of every file in arch/powerpc/boot/dts which sounds like a bit of a pain. Suggestions? -- 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