Page MenuHomeFreeBSD

Restore cleaning of auto-generated kobj files.
ClosedPublic

Authored by jhb on Dec 1 2015, 6:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 9:14 PM
Unknown Object (File)
Sat, Oct 11, 6:00 PM
Unknown Object (File)
Thu, Oct 9, 7:09 PM
Unknown Object (File)
Wed, Sep 17, 1:30 PM
Unknown Object (File)
Sep 14 2025, 1:08 PM
Unknown Object (File)
Sep 12 2025, 8:04 PM
Unknown Object (File)
Sep 12 2025, 1:28 PM
Unknown Object (File)
Aug 31 2025, 4:50 AM
Subscribers

Details

Summary

Restore cleaning of auto-generated kobj files after the recent MFILES
changes. Use the list of MFILES found by find to identify the set of
possible auto-generated files and add the intersection of this set and
SRCS to CLEANFILES.

Test Plan
  • make -V CLEANFILES in sys/modules/oce which has one of the files that the currently commented hack incorrectly removes

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb retitled this revision from to Restore cleaning of auto-generated kobj files..
jhb updated this object.
jhb edited the test plan for this revision. (Show Details)
jhb added a reviewer: imp.
jhb added a subscriber: sbruno.
imp edited edge metadata.

This should nicely deal with the foo_if.c files that we have in the tree in modules builds that we have today.

This revision is now accepted and ready to land.Dec 1 2015, 6:32 PM
jhb edited edge metadata.

Only pass __MPATH down to the modules to reduce duplication.

This revision now requires review to proceed.Dec 1 2015, 7:46 PM
sbruno added a reviewer: sbruno.

Yep, this removes the leftover files when I try to build sys/modules/em when I do a make clean.

This revision is now accepted and ready to land.Dec 1 2015, 9:02 PM
sys/conf/kern.pre.mk
231 ↗(On Diff #10645)

Even simpler would be to pass the raw __MPATH down to sub-makes directly. Would then only do the make magic in one place (kmod.mk).

This revision was automatically updated to reflect the committed changes.