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)
Jan 8 2024, 5:20 PM
Unknown Object (File)
Dec 23 2023, 9:10 PM
Unknown Object (File)
Dec 20 2023, 12:24 AM
Unknown Object (File)
Sep 22 2023, 9:40 PM
Unknown Object (File)
May 15 2023, 5:47 AM
Unknown Object (File)
Apr 26 2023, 3:35 PM
Unknown Object (File)
Jan 16 2023, 3:01 AM
Unknown Object (File)
Nov 28 2022, 4:13 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.