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)
Thu, Nov 14, 3:17 AM
Unknown Object (File)
Thu, Nov 7, 8:33 AM
Unknown Object (File)
Sep 28 2024, 10:08 AM
Unknown Object (File)
Sep 27 2024, 7:13 PM
Unknown Object (File)
Sep 27 2024, 7:12 PM
Unknown Object (File)
Sep 24 2024, 6:25 PM
Unknown Object (File)
Sep 23 2024, 11:22 PM
Unknown Object (File)
Sep 23 2024, 5: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 Passed
Unit
No Test Coverage
Build Status
Buildable 1368
Build 1373: arc lint + arc unit

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

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.