HomeFreeBSD

Fix the KCSAN_ENABLED check when building modules

Description

Fix the KCSAN_ENABLED check when building modules

The KCSAN_ENABLED variable is non-empty when the kernel is being built
with KCSAN. This allows us to disable modules that are known to be
broken.

There was a bug where we would check if it was defined. As this is
always the case the KCSAN_ENABLED variable would be set when building
modules so we would never build such a module. Fix this by checking
if the value is empty before passing it on to the module stage.

This doesn't affect how modules are built as the CFLAGS passed to
modules has the correct check.

PR: 280212
Reported by: rstone
Sponsored by: Innovate UK

(cherry picked from commit 2422138952d86dd8b02ff33c55f747ca8e381afe)

Details

Provenance
andrewAuthored on Jun 2 2021, 10:07 AM
markjCommitted on Jul 29 2024, 4:10 PM
Parents
rGe5236f640510: dhclient: Ignore SIP servers DHCP option defined in RFC 3361
Branches
Unknown
Tags
Unknown