Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 1998 20:45:12 +0100 (MET)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        dillon@apollo.backplane.com (Matthew Dillon)
Cc:        current@FreeBSD.ORG
Subject:   Re: -DKERNEL option when compiling kernels ?
Message-ID:  <199812301945.UAA18533@labinfo.iet.unipi.it>
In-Reply-To: <199812301852.KAA90467@apollo.backplane.com> from "Matthew Dillon" at Dec 30, 98 10:52:07 am

next in thread | previous in thread | raw e-mail | index | archive | help
> :Hi,
> :
> :i see that now -DKERNEL is the only define left in the command line,
> :most things being in opt_global.h
> :
> :Couldn't it also go into opt_global.h ?
> :
> :	luigi
> 
>     No, else how do source moduels know whether to #include opt_global.h
>     or not ?  If they aren't being compiled as part of the kernel no
>     opt_global.h would exist.

perhaps i wasn't clear. It is just a cosmetic issue.

A kernel compile is now run as

	cc ... -DKERNEL -include opt_global.h ...

so opt_global.h is not explicitly included by any file, and one could
as well put a #define KERNEL into it.
Now the only thing would be that opt_global.h contains almost nothing,
which makes me think that it could also disappear at some point...

	luigi

-----------------------------------+-------------------------------------
  Luigi RIZZO                      .
  EMAIL: luigi@iet.unipi.it        . Dip. di Ing. dell'Informazione
  HTTP://www.iet.unipi.it/~luigi/  . Universita` di Pisa
  TEL/FAX: +39-050-568.533/522     . via Diotisalvi 2, 56126 PISA (Italy)
-----------------------------------+-------------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812301945.UAA18533>