Re: [PATCH] out-of-tree builds

From: Geert Uytterhoeven
Date: Mon Mar 15 2004 - 07:42:06 EST


On Sun, 14 Mar 2004, Geert Uytterhoeven wrote:
> Although I like the feature to build a kernel in a different directory a lot, I
> don't like its syntax. I prefer to just have a build directory where I can run
> `make whatever'.
>
> The following patch adds a configure script to the kernel. If you run
>
> /path/to/kernel/source/tree/configure
>
> it will create a Makefile in the current directory, after which you can just do
> `make whatever', just like in the source directory.

Unfortunately not everything works.

E.g. I need to build usr/ with a different (newer) binutils, so when the build
fails on assembling usr/initramfs_data.o, I used to do the following, which no
longer works:

| tux$ PATH=/usr/bin/:$PATH make usr/
| make: `usr/' is up to date.
| tux$

I guess I need a catch-all .PHONY rule, but don't know how to implement it...

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/