diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-18 12:50:23 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-18 12:50:23 -0700 |
commit | 9b51084c27d8dd9c020dca2161b092587255e4a4 (patch) | |
tree | 555f8d9451107198987c57673af0e06471604235 /host/utils | |
parent | 62e5350573157b6d41a92740a740fee7964144c5 (diff) | |
parent | e02be1c84ff8c333bcc93379256bda934711dbe4 (diff) | |
download | uhd-9b51084c27d8dd9c020dca2161b092587255e4a4.tar.gz uhd-9b51084c27d8dd9c020dca2161b092587255e4a4.tar.bz2 uhd-9b51084c27d8dd9c020dca2161b092587255e4a4.zip |
Merge branch 'maint'
Diffstat (limited to 'host/utils')
-rw-r--r-- | host/utils/uhd_config_info.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/utils/uhd_config_info.cpp b/host/utils/uhd_config_info.cpp index c4034e560..78fcb201b 100644 --- a/host/utils/uhd_config_info.cpp +++ b/host/utils/uhd_config_info.cpp @@ -17,6 +17,7 @@ #include <uhd/build_info.hpp> #include <uhd/version.hpp> +#include <uhd/utils/paths.hpp> #include <uhd/utils/safe_main.hpp> #include <boost/format.hpp> @@ -37,6 +38,8 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) { ("install-prefix", "Print install prefix") ("boost-version", "Print Boost version") ("libusb-version", "Print libusb version") + ("pkg-path", "Print pkg path") + ("images-dir", "Print images dir") ("print-all", "Print everything") ("version", "Print this UHD build's version") ("help", "Print help message") @@ -85,6 +88,12 @@ int UHD_SAFE_MAIN(int argc, char* argv[]) { std::string _libusb_version = uhd::build_info::libusb_version(); std::cout << "Libusb version: " << (_libusb_version.empty() ? "N/A" : _libusb_version) << std::endl; } + if(vm.count("pkg-path") > 0 or print_all) { + std::cout << "Package path: " << uhd::get_pkg_path() << std::endl; + } + if(vm.count("images-dir") > 0 or print_all) { + std::cout << "Images directory: " << uhd::get_images_dir("") << std::endl; + } return EXIT_SUCCESS; } |