This is a kernel module for /dev/rtc device support.
Some apps such as VMware for Linux would be happy with it.
The code was originally written by Vladimir N. Silyaev.
This module can be enabled with:
# kldload rtc
and disabled with:
# kldunload rtc
For it to be loaded automatically at boottime, add "rtc" to your
kld_list entry in /etc/rc.conf . One way to do this is with the
one-off command:
# sysrc kld_list+="rtc"
emulators/rtc: Unbreak build with llvm13
rtc.c:112:6: error: variable 'unit' set but not used
[-Werror,-Wunused-but-set-variable]
int unit;
^
PR: 263616
emulators/rtc: update 2004.02.24.1 -> 2020.07.07.1
- submitter becomes maintainer
- Install kmod into /boot/modules instead of /usr/local
- Cleared out bits dating back to pre-devfs
- Removed #ifdef bits related to FreeBSD <= 4.X and FreeBSD <= 8.X
- Olegs fixes for FreeBSD 11.X and FreeBSD 12.X+
- Removed "USES= linux uidfix" - whilst this provides functionality
that is "often" used by linux programs, that's not necessarily the
case, and this module doesn't require any linux subsystem or
kernel MOD to operate.
- Removed oldstyle rtc.sh - include pkg-message showing how to load
from the rc.conf "kld_list" mechanism.
- Fixed typo in "test.c" -> /dec -> /dev
- Fixed path to "rtc.h" in "test.c"
PR: 233057
Submitted by: Jamie Landeg-Jones <jamie@catflap.org>
Clean up support for FreeBSD 11.2.
While here, modernize some comments in Mk/bsd.*.mk.
Note that graphics/drm-fbsd11.2-kmod is not renamed yet, this was somewhat
under discussion.
Submitted by: rene
Reviewed by: antoine, jbeich, mat, zeising
Differential Revision: https://reviews.freebsd.org/D21974
- Replace Mk/bsd.linux-apps.mk and Mk/bsd.linux-rpm.mk with
Mk/Uses/linux.mk.
- Replace USE_LINUX=yes with USES+=linux and USE_LINUX=(.*) with
USES+=linux:\1 in all ports.
- Replace USE_LINUX_APPS with USE_LINUX in all ports.
- Use INSTALL_SCRIPT instead of INSTALL_PROGRAM to install scripts in some
ports.
- When USE_LINUX_RPM is defined, simplify the way DISTFILES and EXTRACT_ONLY
are defined.
- Remove BRANDELF_DIRS and BRANDELF_FILES handling. In the very rare cases
that it is still necessary ports can run ${BRANDELF} from post-patch.
- Remove AUTOMATIC_PLIST handling. Only one port used it.
- Fix Linux MASTER_SITES.
- Replace OVERRIDE_LINUX_BASE_PORT and OVERRIDE_LINUX_NONBASE_PORTS with
default versions framework.
(Only the first 15 lines of the commit message are shown above )
SSP support has been added to ports with WITH_SSP for i386 and amd64
on FreeBSD 10, and amd64 on earlier versions.
SSP_UNSAFE is added to disable in a port if it fails to build, but
this should only be used in rare circumstances such as kernel modules.
Otherwise, the port may just be failing due to lack of respecting
LDFLAGS.
On FreeBSD 10, this uses an ldscript in /usr/lib/libc.so to pull in
libssp_nonshared.a to address issues linking on i386 [1].
On earlier FreeBSD versions the WITH_SSP knob will add -lssp_nonshared
to LDFLAGS on i386. This is not needed on amd64. However, several hundred
ports do not currently respect LDFLAGS, so this support is disabled currently
as it causes build failures if a dependency is looking for the stack_chk
(Only the first 15 lines of the commit message are shown above )
- re-order, include bsd.port.pre.mk so SRC_BASE is defined before referenced
PR: ports/165994
Submitted by: 4721@hushmail.com
Approved by: maintainer, emulation
Users are confused by a diagnostic message more than they are
helped because it is printing the -current- value of HZ, not the
value requested. This is fixed be rearranging the order of changing
the value and printing the message (they are in adjacent lines).
Submitted by: rgrimes
Change the hz warning so that it doesn't bother you if hz is already
set to 1000 or greater, and take out the check to see if hz is greater
than the requested tick rate.
Inspired by PR: 71536
Change the hz warning so that it doesn't bother you if hz is already
set to 1000 or greater, and take out the check to see if hz is greater
than the requested tick rate.
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
(Only the first 15 lines of the commit message are shown above )
Update the rtc device to use dynamic numbering on -current. In order to
accomdate this change, stop using device nodes in /usr/compat/linux/dev
and instead rely on the linuxalator passing through requests to the
real /dev. (This second change also applies to 4.x).
Update the rtc driver once again. As of this revision, I believe that
the linux rtc device is being emulated as accurately as possible,
at least in terms of its behavior. Further improvements to its
accuracy will require much more precise measurement.
Device cloning is not yet implemented.
Replace rtc with a revamped version that I've been working on. This version
uses tsleep / selrecord and a worker thread to provide a much better emulation
of the rtc driver, as well as greatly decreased processor usage.
Device cloning as well as a few more tweaks to the emulation are still pending.
Substitute BROKEN with IGNORE in cases where the port requires the src tree
to be present, or does not compile on certain versions of FreeBSD. This
will potentially avoid needless compilations on bento, and has the added
benefit of improving certain reporting tools. To most users, this change
is a no-op.
PR: 61090
Submitted by: linimon
Fix panic if the rtc module gets loaded twice: Make rtc_dev static
and destroy the device on cleanup.
Submitted by: Orlando Bassotto <orlando.bassotto@ieo-research.it>
As threatened on freebsd-ports: all startup scripts know about the two options
`start' and `stop' now (unless I have forgotten any). This allows us to call
the scripts from /etc/rc.shutdown with the correct option.