ppc: Update to ppc specific makefiles

Tom Rini trini at kernel.crashing.org
Sat Mar 15 07:21:48 EST 2003


On Fri, Mar 14, 2003 at 08:44:27PM +0100, Sam Ravnborg wrote:

> Made on top of ppc.bkbits.net/linuxppc-2.5

Looks good:

[snip]
> 5) Deleted rules for find_name
>         -> I could not see it referenced anywhere,
>            but find_name.c is still present

Yeah, that's gone.

[snip]
> The kernel builds and when a rebuild is made no files are compiled again.
> arch/ppc/boot/{openfirmware,prep,simple}/Makefile could use more
> attention - but wanted to see this applied first.

I'm open to ideas for how to clean those up.  Please CC me with those
(I'll read it quicker, most likley :)

[snip]
> ===== arch/ppc/boot/utils/Makefile 1.5 vs edited =====
> --- 1.5/arch/ppc/boot/utils/Makefile	Sat Dec 14 13:38:56 2002
> +++ edited/arch/ppc/boot/utils/Makefile	Fri Mar 14 19:16:28 2003
> @@ -5,16 +5,10 @@
>  # License.  See the file "COPYING" in the main directory of this archive
>  # for more details.
>
> -HOSTCFLAGS += -I$(TOPDIR)/arch/$(ARCH)/boot/include
>
> -all: FORCE
> +HOST_EXTRACFLAGS += -Iarch/$(ARCH)/boot/include
>
> -# Simple programs with 1 file and no extra CFLAGS
> -UTILS = addnote hack-coff mkprep mknote mkbugboot mktree \
> -	addSystemMap addRamdDisk
> +host-progs	:=	addnote hack-coff mkprep mknote mkbugboot mktree \
> +			addSystemMap addRamdDisk
>
> -$(UTILS):
> -	$(HOSTCC) $(HOSTCFLAGS) -o $@ $@.c
> -
> -clean:
> -	rm -f $(UTILS)
> +build-targets	:= $(host-progs)

Maybe I'm missing something, but won't this cause all of host-progs to
be compiled on any build?  They're small / quick enough to build that I
suppose it wouldn't kill anyone to build extra tools they don't need,
but in that case, the tools- stuff could die in arch/ppc/boot/Makefile,
right?

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list