sys/modules: normalize .CURDIR-relative paths to SRCTOPThis simplifies make output/logicTested with: `cd sys/modules; make ALL_MODULES=` on amd64MFC after: 1 monthSponsored by: Dell EMC Isilon
Per email to arch@ a little while ago (that was greeted with silence),prefer the more common > ${.TARGET} over > opt_foo.h in modulesmakefiles.
Let modules use the kernel's opt_*.h files if built along withthe kernel by wrapping all targets for fake opt_*.h files in.if defined(KERNBUILDDIR). Thus, such fake files won't becreated at all i
Let modules use the kernel's opt_*.h files if built along withthe kernel by wrapping all targets for fake opt_*.h files in.if defined(KERNBUILDDIR). Thus, such fake files won't becreated at all if modules are built with the kernel.Some modules undergo cleanup like removing unused or unneededoptions or .h files, without which they wouldn't build this wayor the other.Reviewed by: ruTested by: no binary changes in modules built aloneTested on: i386 sparc64 amd64
show more ...
Mechanically tidy up the contents of CLEANFILES:M*.h: kmod.mkautomatically removes opt_*.h and if_*.h found in SRCS.
Clean CLEANFILES.
bsd.kmod.mk does not deal with manpages anymore.
Updated cx driver commit part 1: bring in the new kernel driver.This is the vastly updated cx drvier from Roman Kurakin <[email protected]>who has been patiently waiting for this update for sometime.
Updated cx driver commit part 1: bring in the new kernel driver.This is the vastly updated cx drvier from Roman Kurakin <[email protected]>who has been patiently waiting for this update for sometime.The driver is mostly a rewrite from the version we have in the tree.While some similarities remain, losing the little history that the olddriver has is not a big loss, and the re@ felt it was easier this way (lesserror prone).The userland parts of this update will be committed shortly.The driver is not connected to the build yet. I want to make sure Idon't break any platform at any time, so I want to test that withthese files in the tree before I continue (on the off chance I'mforgetting a file).I changed the DEBUG macro to CX_DEBUG from the code that was submitted(to not break when we go to building with opt_global.h after therelease), as well adding $FreeBSD$.Submitted by: Roman KurakinApproved by: re@ <scottl>