From owner-freebsd-current Wed Dec 30 13:54:34 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05355 for freebsd-current-outgoing; Wed, 30 Dec 1998 13:54:34 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA05350 for ; Wed, 30 Dec 1998 13:54:29 -0800 (PST) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id UAA18533; Wed, 30 Dec 1998 20:45:12 +0100 From: Luigi Rizzo Message-Id: <199812301945.UAA18533@labinfo.iet.unipi.it> Subject: Re: -DKERNEL option when compiling kernels ? To: dillon@apollo.backplane.com (Matthew Dillon) Date: Wed, 30 Dec 1998 20:45:12 +0100 (MET) Cc: current@FreeBSD.ORG In-Reply-To: <199812301852.KAA90467@apollo.backplane.com> from "Matthew Dillon" at Dec 30, 98 10:52:07 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > :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