Re: Linus's include file strategy redux

From: Peter Samuelson (peter@cadcamlab.org)
Date: Sat Dec 16 2000 - 18:10:00 EST


[Miquel van Smoorenburg]
> In fact, the 2.2.18 kernel already puts a 'build' symlink in
> /lib/modules/`uname -r` that points to the kernel source,
> which should be sufficient to solve this problem.. almost.
>
> It doesn't tell you the specific flags used to compile the kernel,
> such as -m486 -DCPU=686

Sure it does.

  make -C /lib/modules/`uname -r`/build modules SUBDIRS=$(pwd)

or, if you like clumsy and slow:

  SRCDIR := /lib/modules/`uname -r`/build
  CFLAGS := $(shell $(MAKE) -s -C $(SRCDIR) script SCRIPT='echo $$$$CFLAGS')

Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Dec 23 2000 - 21:00:17 EST