Move <sys/termios.h> to <termios.h>. CCEQ() is moved to <sys/_termios.h>. The kernel needs nothing else from it. The few dports that were including <sys/termios.h> were mostly missing some kind of "... || defined(__DragonFly__)" to go with FreeBSD's adjustments. Thanks to zrj and tuxillo for taking care of dports.
Remove MACHINE_ARCH=amd64 and legacy make instructions from makefiles Apparently the x86_64 platform used to be referred to as "amd64" so some makefile code was added to help with the transition. It probably should have been removed when bringing bmake in. With the commit, the makefiles expect bmake and will break if an older make is used (e.g. from DragonFly 3.2). That means an upgrade to DragonFly 3.6 will have to be upgraded to DragonFly 3.4 first. There may be other reasons to do this as well, besides just bmake. The recent symbol versioning makefile for libraries requires bmake, so legacy make can't build world anymore in any case.
bug #2442: Fix bmake regression of kernel build Kernel modules such as acpi.ko didn't load due to missing symbols after bmake replaced legacy make. The cause was traced back to a badly generated header which in turn was caused by the file kern.fwd.mk. That file contained ":U" modifiers that should have been converted to ":tu" modifiers. The actual cause of the missing symbols were due to atomic.h not getting included into atomic.c twice. Case sensitivity prevented a macro from being properly unset. The modifiers in question turn everything to upper case. A full kernel build is required to fix the module loading.
Generate forwarding header files to mimic /usr/include -> /usr/include/sys linkages for the benefit of virtual kernel builds and virtual kernel driver builds. Certain header files, such as <fcntl.h>, have to be generated this way to allow virtual kernel and virtual kernel driver source files to do standard #include's.
- Add kern.fwd.mk to generate forward headers for missing machine/*.h It avoids unnecessary regeneration of forward headers by default, thus quickkernel is speedy again :) - Nuke no longer needed generate_forwarding_headers() in config(8) - Add forward headers generation to the dependency list of "beforedepend" in kmod.mk. This unbreaks module building which does not happen along with kernel building. The original patch was submitted by y0netan1@, changes made to the original patch are OKed by him too. Reviewed-by: dillon@ corecode@