contrib/bmake: Adjust documentation of our custom variables
* Improve the markup styles a bit.
* Move the postition to the end of bmake builtin variables.
make(1): Refactor Makefile
* Include ${srcdir}/VERSION for _MAKE_VERSION instead of hardcoding it.
* Clean up CFLAGS; remove unused ones.
* Move a few variables from CFLAGS to COPTS.main.c where they're only
used.
* Remove other obsolete COPTS.*.
make(1): Undefine USE_EMALLOC to avoid libutil dependency
With USE_EMALLOC undefined, util.h becomes unused and thus remove it.
This improves the zrj's commit ee2cba8aae8c6b2ce0b6c6fc150e61c1736c64e8.
make(1): Directly install vendor's make.1
The vendor's bmake.1 man page intends for the portable bmake
distribution. So just install the vendor's make.1 instead of using
bmake.1.
contrib/bmake: Remove obsolete custom variable '.MAKE.BUILT.BY'
This custom variable was initially added in commit 673bdc16bff3eec8 to
help resolve a C++ ABI change between gcc47 and gcc50. Since the
removal of gcc47 (commit 0f44b32a8fb34e5f), this variable became
obsolete and unused.
vendor/bmake: Add back LICENSE and VERSION
* Keep LICENSE for vendor software, keeping consistent with other vendor
softwares.
* VERSION can be included in the Makefile to avoid hardcoding the
version there.
kernel/apple_ir: Add Apple IR receiver driver.
USB HID driver for Apple IR receivers found in Mac computers
(2006-2011 era). Uses the u4b USB stack with interrupt transfers
and delivers key events through evdev.
Supports Apple Remote (proprietary 5-byte protocol) and generic NEC
IR remotes. Synthetic key-up events are generated via a 125ms callout
since the hardware sends no release reports.
Add UQ_HID_IGNORE quirks for all Apple IR receiver product IDs so
uhid(4) does not claim the device first. DragonFly's newbus probe
short-circuits on a 0 return, so the quirk is necessary to prevent
uhid's class-wide HID match from winning.
kernel/apple_smc: Table-drive sysctl registration and collapse duplicate handlers.
Replace fanminspeed/fanmaxspeed/fantargetspeed with single fanrw handler
using key index packed in arg2 bits [15:8]. Collapse sms_x/y/z, light
left/right, and mssd/mssp wrappers into table-indexed handlers. Table-drive
per-fan and system-state sysctl registration loops.
hammer2: factor out directory mtime update in vnops
Add hammer2_update_dir_mtime() for the repeated mtime/ctime update
pattern used after directory-modifying operations. Easier to maintain
and document in one place.
hammer: factor out blockmap layer CRC verification
Add hammer_verify_layer1_crc() and hammer_verify_layer2_crc() helpers
for the double-check-under-lock CRC pattern used across all blockmap
functions. Easier to maintain and document in one place.
awk(1): Override FOPEN_MAX to handle 64 open files instead of 20
Awk uses a fixed array of size FOPEN_MAX to track the open files, so it
could only open max 20 files as the default FOPEN_MAX is defined to be
20 in <stdio.h>. Override FOPEN_MAX to 64 to support more open files.
Obtained-from: FreeBSD (commit d97cdd33492f5afe2150e1fced657c9a31911c67)