summaryrefslogtreecommitdiffstats
path: root/host/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-09-05 12:27:16 -0700
committerJosh Blum <josh@joshknows.com>2011-09-05 12:27:16 -0700
commit1df3e9b1619af5c4e652ec143930916a87d4789a (patch)
tree428336b76bdc29da40dc1df814e02ffba8f7b015 /host/utils
parent583c7624b2bc53f9cccd2768212d10dec0e378c6 (diff)
downloaduhd-1df3e9b1619af5c4e652ec143930916a87d4789a.tar.gz
uhd-1df3e9b1619af5c4e652ec143930916a87d4789a.tar.bz2
uhd-1df3e9b1619af5c4e652ec143930916a87d4789a.zip
uhd: updated docs usb post-install, added uhd-usrp.rules
Diffstat (limited to 'host/utils')
-rw-r--r--host/utils/CMakeLists.txt8
-rw-r--r--host/utils/uhd-usrp.rules19
2 files changed, 27 insertions, 0 deletions
diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt
index b2dd697fc..1b70be7a4 100644
--- a/host/utils/CMakeLists.txt
+++ b/host/utils/CMakeLists.txt
@@ -45,6 +45,14 @@ IF(ENABLE_USRP1)
)
ENDIF(ENABLE_USRP1)
+IF(LINUX AND ENABLE_USB)
+ INSTALL(FILES
+ uhd-usrp.rules
+ DESTINATION ${PKG_DATA_DIR}/utils
+ COMPONENT utilities
+ )
+ENDIF(LINUX AND ENABLE_USB)
+
#for each source: build an executable and install
FOREACH(util_source ${util_share_sources})
GET_FILENAME_COMPONENT(util_name ${util_source} NAME_WE)
diff --git a/host/utils/uhd-usrp.rules b/host/utils/uhd-usrp.rules
new file mode 100644
index 000000000..65b9121a4
--- /dev/null
+++ b/host/utils/uhd-usrp.rules
@@ -0,0 +1,19 @@
+#
+# Copyright 2011 Ettus Research LLC
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", MODE:="0666"
+ACTION=="add", BUS=="usb", SYSFS{idVendor}=="2500", SYSFS{idProduct}=="0001", MODE:="0666"