summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1996-03-16 01:35:48 +0000
committerjmz <jmz@FreeBSD.org>1996-03-16 01:35:48 +0000
commit7547786cc6cbfe89c0b3a610428e80c6dcdf37d9 (patch)
treee646b3af497a56a684c32a27d284ff9a99fbafca /sys/modules
parent30f513a82be56871bcfeda567d68a083badc1a38 (diff)
downloadFreeBSD-src-7547786cc6cbfe89c0b3a610428e80c6dcdf37d9.zip
FreeBSD-src-7547786cc6cbfe89c0b3a610428e80c6dcdf37d9.tar.gz
Build LKM for joystick driver.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/joy/Makefile17
-rw-r--r--sys/modules/joy/joy4
-rw-r--r--sys/modules/joy/joy.846
-rw-r--r--sys/modules/joy/joy.sh4
4 files changed, 71 insertions, 0 deletions
diff --git a/sys/modules/joy/Makefile b/sys/modules/joy/Makefile
new file mode 100644
index 0000000..77b969d
--- /dev/null
+++ b/sys/modules/joy/Makefile
@@ -0,0 +1,17 @@
+.PATH: ${.CURDIR}/../../sys/i386/isa
+KMOD = joy_mod
+SRCS = joy.c joy.h
+MAN8 = joy.8
+
+CFLAGS += -I. -I/sys -DJOY_MODULE -DACTUALLY_LKM_NOT_KERNEL
+CLEANFILES += joy.h
+
+joy.h:
+ echo "#define NJOY 1" > joy.h
+
+
+afterinstall:
+ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
+ ${.CURDIR}/joy ${DESTDIR}/usr/bin
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/joy/joy b/sys/modules/joy/joy
new file mode 100644
index 0000000..3f5bbb9
--- /dev/null
+++ b/sys/modules/joy/joy
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $Id$
+
+modload -q -u -A `sysctl -n kern.bootfile` /lkm/joy_mod.o
diff --git a/sys/modules/joy/joy.8 b/sys/modules/joy/joy.8
new file mode 100644
index 0000000..795d586
--- /dev/null
+++ b/sys/modules/joy/joy.8
@@ -0,0 +1,46 @@
+.\"
+.\" Copyright (c) 1996 Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
+.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
+.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+.\"
+.\" $Id$
+.\"
+.Dd March 16, 1996
+.Dt JOY 8
+.Os FreeBSD
+.Sh NAME
+.Nm joy
+.Nd load the joystick driver kernel module
+.Sh SYNOPSIS
+.Nm joy
+.Sh DESCRIPTION
+The
+.Nm
+utility loads the joystick driver kernel module.
+.Sh FILES
+.Bl -tag -width /lkm/joy_mod.o
+.It Pa /lkm/joy_mod.o
+joystick loadable kernel module.
+.Sh "SEE ALSO"
+.Xr joy 4 ,
+.Xr modload 8 ,
+.Xr lkm 4
diff --git a/sys/modules/joy/joy.sh b/sys/modules/joy/joy.sh
new file mode 100644
index 0000000..3f5bbb9
--- /dev/null
+++ b/sys/modules/joy/joy.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# $Id$
+
+modload -q -u -A `sysctl -n kern.bootfile` /lkm/joy_mod.o
OpenPOWER on IntegriCloud