diff options
author | Martin Braun <martin.braun@ettus.com> | 2016-08-18 09:36:09 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2016-08-18 09:36:09 -0700 |
commit | 0d14cb248b90deac68fbba58ce8c6c73f3f6d541 (patch) | |
tree | 0f6ab1a4c0c0810fea06ca438321098fc6b7a52d | |
parent | 689de194733951e5a79a17fc329112d601e4eb2f (diff) | |
download | uhd-0d14cb248b90deac68fbba58ce8c6c73f3f6d541.tar.gz uhd-0d14cb248b90deac68fbba58ce8c6c73f3f6d541.tar.bz2 uhd-0d14cb248b90deac68fbba58ce8c6c73f3f6d541.zip |
utils: uhd_config_info can now also report image dir and pkg path
-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; } |