WITHOUT_MODULES=if_lmc not working in NanoBSD

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Fri, 4 Mar 2016 13:17:17 +0100
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
Received on Fri Mar 04 2016 - 11:17:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC