diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c index a7df7ab22f8c..8f6f8079e83a 100644 --- a/usr.sbin/config/mkmakefile.c +++ b/usr.sbin/config/mkmakefile.c @@ -309,9 +309,15 @@ read_files() else isdup = 0; tp = 0; - if (first == 3 && fl_lookup(this) == 0 && (tp = fltail_lookup(this)) != 0) - printf("%s: Local file %s overrides %s.\n", - fname, this, tp->f_fn); + if (first == 3 && pf == 0 && (tp = fltail_lookup(this)) != 0) { + if (tp->f_type != INVISIBLE || tp->f_flags) + printf("%s: Local file %s overrides %s.\n", + fname, this, tp->f_fn); + else + printf("%s: Local file %s could override %s" + " with a different kernel configuration.\n", + fname, this, tp->f_fn); + } nreqs = 0; special = 0; depends = 0;