diff options
author | Ben Hilburn <ben.hilburn@ettus.com> | 2015-02-11 16:28:35 -0800 |
---|---|---|
committer | Ben Hilburn <ben.hilburn@ettus.com> | 2015-02-11 16:28:35 -0800 |
commit | 08267a8c0264e08fe6631ce2ede0ec2c2933463f (patch) | |
tree | 4e65d128fcc7f3888880f54863a2b2831965364a /host | |
parent | b10c9dd446f0b0567e6b16add0fc8004d465d76e (diff) | |
download | uhd-08267a8c0264e08fe6631ce2ede0ec2c2933463f.tar.gz uhd-08267a8c0264e08fe6631ce2ede0ec2c2933463f.tar.bz2 uhd-08267a8c0264e08fe6631ce2ede0ec2c2933463f.zip |
Creating the $UHD_CONFIG_DIR env var, here used for custom cal data storage.
This is a renaming of the previously created $UHDCALIBPATH.
Diffstat (limited to 'host')
-rw-r--r-- | host/docs/calibration.dox | 18 | ||||
-rw-r--r-- | host/lib/utils/paths.cpp | 2 |
2 files changed, 14 insertions, 6 deletions
diff --git a/host/docs/calibration.dox b/host/docs/calibration.dox index 603ae22e4..eecb7af5c 100644 --- a/host/docs/calibration.dox +++ b/host/docs/calibration.dox @@ -57,15 +57,23 @@ daughterboard's EEPROM: : \subsection calibration_data Calibration Data -Calibration files are stored in the user's home/application directory. -They can easily be moved from machine to another by copying the "cal" -directory. Re-running a calibration utility will replace the existing -calibration file. The old calibration file will be renamed so it may be -recovered by the user. +By default, calibration files are stored in the user's home/application +directory: - **Linux:** `${HOME}/.uhd/cal/` - **Windows:** `%APPDATA%\.uhd\cal\` +If you would like to specify a custom directory, you can do so with the +`$UHD_CONFIG_DIR` environment variable: + +- **Custom (any OS):** `${UHD_CONFIG_DIR}/.uhd/cal/` + +Calibration files can easily be moved from one machine to another by copying the +"cal" directory. Re-running a calibration utility will replace the existing +calibration file. The old calibration file will be renamed so it may be +recovered by the user. + + \subsection ignore_cal_file Ignoring Calibration Files At runtime, the user can choose to ignore a daughterboard's calibration file by adding "ignore-cal-file" to the arguments. With the UHD API, it can be done as follows: diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp index 235c2607d..88bd25fbd 100644 --- a/host/lib/utils/paths.cpp +++ b/host/lib/utils/paths.cpp @@ -173,7 +173,7 @@ std::string uhd::get_tmp_path(void){ } std::string uhd::get_app_path(void){ - const std::string uhdcalib_path = get_env_var("UHDCALIBPATH"); + const std::string uhdcalib_path = get_env_var("UHD_CONFIG_DIR"); if (not uhdcalib_path.empty()) return uhdcalib_path; const std::string appdata_path = get_env_var("APPDATA"); |