summaryrefslogtreecommitdiffstats
path: root/sys/modules
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-12-31 22:33:32 +0000
committeradrian <adrian@FreeBSD.org>2015-12-31 22:33:32 +0000
commit94fddd69f091ba336b22f8c1162cc14d971d31ab (patch)
treeee6c3c67fa09203d3bf8de3de02eb8628a03e788 /sys/modules
parent376d34ac4fa3ba477bb001b3b0fe3c76cf8e9eae (diff)
downloadFreeBSD-src-94fddd69f091ba336b22f8c1162cc14d971d31ab.zip
FreeBSD-src-94fddd69f091ba336b22f8c1162cc14d971d31ab.tar.gz
[rtwn] Add rtwn firmware and driver module.
Submitted by: kevlo
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile2
-rw-r--r--sys/modules/rtwnfw/Makefile5
-rw-r--r--sys/modules/rtwnfw/Makefile.inc15
-rw-r--r--sys/modules/rtwnfw/rtwnrtl8192cU/Makefile6
-rw-r--r--sys/modules/rtwnfw/rtwnrtl8192cUB/Makefile6
5 files changed, 34 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 1b3b7eb..0fad8aa 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -311,6 +311,8 @@ SUBDIR= \
re \
reiserfs \
rl \
+ rtwn \
+ rtwnfw \
${_s3} \
${_safe} \
${_sbni} \
diff --git a/sys/modules/rtwnfw/Makefile b/sys/modules/rtwnfw/Makefile
new file mode 100644
index 0000000..7a679df
--- /dev/null
+++ b/sys/modules/rtwnfw/Makefile
@@ -0,0 +1,5 @@
+# $FreeBSD$
+
+SUBDIR= rtwnrtl8192cU rtwnrtl8192cUB
+
+.include <bsd.subdir.mk>
diff --git a/sys/modules/rtwnfw/Makefile.inc b/sys/modules/rtwnfw/Makefile.inc
new file mode 100644
index 0000000..ce5bcee
--- /dev/null
+++ b/sys/modules/rtwnfw/Makefile.inc
@@ -0,0 +1,15 @@
+# $FreeBSD$
+#
+# Common rules for building firmware. Note this gets auto-included
+# by the subdir Makefile's as a consequence of included bsd.kmod.mk.
+
+_FIRM= ${IMG}.fw
+
+CLEANFILES+= ${_FIRM}
+
+FIRMWS= ${_FIRM}:${KMOD}:111
+
+FIRMWARE_LICENSE= realtek
+
+${_FIRM}: ${.CURDIR}/../../../contrib/dev/rtwn/${_FIRM}.uu
+ uudecode -p $? > ${.TARGET}
diff --git a/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile
new file mode 100644
index 0000000..643a30f
--- /dev/null
+++ b/sys/modules/rtwnfw/rtwnrtl8192cU/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= rtwn-rtl8192cfwU
+IMG= rtwn-rtl8192cfwU
+
+.include <bsd.kmod.mk>
diff --git a/sys/modules/rtwnfw/rtwnrtl8192cUB/Makefile b/sys/modules/rtwnfw/rtwnrtl8192cUB/Makefile
new file mode 100644
index 0000000..eb878d4
--- /dev/null
+++ b/sys/modules/rtwnfw/rtwnrtl8192cUB/Makefile
@@ -0,0 +1,6 @@
+# $FreeBSD$
+
+KMOD= rtwn-rtl8192cfwU_B
+IMG= rtwn-rtl8192cfwU_B
+
+.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud