Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2016 13:17:17 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-current <freebsd-current@freebsd.org>
Subject:   WITHOUT_MODULES=if_lmc not working in NanoBSD
Message-ID:  <20160304131717.5f8e8623@freyja.zeit4.iv.bundesimmobilien.de>

next in thread | raw e-mail | index | archive | help
I try to disable device bpf in the kernel, which results in a compilation error
of if_lmc:

[...]
--- /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:4357:33:
error: use of undeclared identifier 'DEV_BPF' ALTQ_PRESENT ? "ALTQ " : "",
NBPFILTER ? "BPF " : "",
^ /empty/src/ALG/CURRENT/sys/modules/lmc/../../dev/lmc/if_lmc.c:94:20: note:
expanded from macro 'NBPFILTER' # define NBPFILTER DEV_BPF ^ 4 errors
generated. *** [if_lmc.o] Error code 1

In NanoBSD's common.conf, I defined therefore

CONF_WORLD='
WITHOUT_MODULES=if_lmc
...
'

or, since it doesn't work as expected,

CONF_WORLD='
WITHOUT_MODULES=lmc
...
'

It doesn't work as expected! WITHOUT_MODULES= doesn't work at all. Module/driver
if_lmc (lmc) is compiled everytime and running therefore into that error, the
build of the driver/module is not skipped.

How can I securely disable bpf AND exclude modules from being build?


Thanks in advance,

O. Hartmann



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