Move most of the contents of opt_compat.h to opt_global.h.opt_compat.h is mentioned in nearly 180 files. In-progress networkdriver compabibility improvements may add over 100 more so this isclose
Move most of the contents of opt_compat.h to opt_global.h.opt_compat.h is mentioned in nearly 180 files. In-progress networkdriver compabibility improvements may add over 100 more so this iscloser to "just about everywhere" than "only some files" per theguidance in sys/conf/options.Keep COMPAT_LINUX32 in opt_compat.h as it is confined to a subset ofsys/compat/linux/*.c. A fake _COMPAT_LINUX option ensure opt_compat.his created on all architectures.Move COMPAT_LINUXKPI to opt_dontuse.h as it is only used to control theset of compiled files.Reviewed by: kib, cem, jhb, jtlSponsored by: DARPA, AFRLDifferential Revision: https://reviews.freebsd.org/D14941
show more ...
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
Move most of the 15 variations on generating opt_inet.h andopt_inet6.h into kmod.mk by forcing almost everybody to eat the samedogfood. While at it, consolidate the opt_bpf.h and opt_mroute.htarge
Move most of the 15 variations on generating opt_inet.h andopt_inet6.h into kmod.mk by forcing almost everybody to eat the samedogfood. While at it, consolidate the opt_bpf.h and opt_mroute.htargets here too.
Per email to arch@ a little while ago (that was greeted with silence),prefer the more common > ${.TARGET} over > opt_foo.h in modulesmakefiles.
Fix our ioctl(2) implementation when the argument is "int". Newioctls passing integer arguments should use the _IOWINT() macro.This fixes a lot of ioctl's not working on sparc64, most notablebein
Fix our ioctl(2) implementation when the argument is "int". Newioctls passing integer arguments should use the _IOWINT() macro.This fixes a lot of ioctl's not working on sparc64, most notablebeing keyboard/syscons ioctls.Full ABI compatibility is provided, with the bonus of fixing thehandling of old ioctls on sparc64.Reviewed by: bde (with contributions)Tested by: emax, mariusMFC after: 1 week
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
Mechanically tidy up the contents of CLEANFILES:M*.h: kmod.mkautomatically removes opt_*.h and if_*.h found in SRCS.
Use a consistent style and one much closer to the rest of /usr/src
Avoid the modules madness I inadvertently introduced by making thecloning infrastructure standard in kern_conf. Modules are nowthe same with or without devfs support.If you need to detect if dev
Avoid the modules madness I inadvertently introduced by making thecloning infrastructure standard in kern_conf. Modules are nowthe same with or without devfs support.If you need to detect if devfs is present, in modules or elsewhere,check the integer variable "devfs_present".This happily removes an ugly hack from kern/vfs_conf.c.This forces a rename of the eventhandler and the standard clonehelper function.Include <sys/eventhandler.h> in <sys/conf.h>: it's a helper #includelike <sys/queue.h>Remove all #includes of opt_devfs.h they no longer matter.
Somehow the module makefile got missed in the big commit.