Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2000 13:21:49 -0800 (PST)
From:      Brian Beattie <beattie@aracnet.com>
To:        current@freebsd.org
Subject:   building modules
Message-ID:  <Pine.LNX.4.10.10001251306570.30605-100000@shell1.aracnet.com>

next in thread | raw e-mail | index | archive | help
I'm trying to figure out how to make a makefile to build a module and have
run into something I do not understand.  I am working with freshly
cvsup'ed sources.

When I try to build a module in /sys/modules, the command line contains a
-DKERNEL, which I find in bsd.kmod.mk.  This causes the wrong definitions
to be defined, since the correct ones are protected by #ifdef _KERNEL.
(note the _).  This is the case for running make from /sys, /sys/module,
or /sys/module/<module name>

I looked a buildworld log from Jan 25, unknown cvs date, and the modules
are built with -D_KERNEL, as I would expect.

Am I doing something wrong, did something change, or do I just not
understand?

Brian Beattie            | The only problem with
beattie@aracnet.com      | winning the rat race ...
www.aracnet.com/~beattie | in the end you're still a rat



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?Pine.LNX.4.10.10001251306570.30605-100000>