diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-08-10 10:25:15 -0700 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2015-08-10 11:01:43 -0700 |
commit | 377850c9699331a24650a8bc41142627f3ab4330 (patch) | |
tree | 3d8cd936f3413c059a84e8f3d0ea4d9adc564179 /host/lib/usrp/e300/e300_common.cpp | |
parent | 8c0731276af9c82f9419ec16334ec919d0414fc0 (diff) | |
download | uhd-377850c9699331a24650a8bc41142627f3ab4330.tar.gz uhd-377850c9699331a24650a8bc41142627f3ab4330.tar.bz2 uhd-377850c9699331a24650a8bc41142627f3ab4330.zip |
e300: added -DE300_FORCE_NETWORK flag to CMake configuration
* Fixes building E300 support in native mode on any Linux system with libudev headers
* Added E300_NATIVE check to e300_common.cpp
* Improved network mode documentation
Diffstat (limited to 'host/lib/usrp/e300/e300_common.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_common.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_common.cpp b/host/lib/usrp/e300/e300_common.cpp index 29117e21f..216713bc6 100644 --- a/host/lib/usrp/e300/e300_common.cpp +++ b/host/lib/usrp/e300/e300_common.cpp @@ -29,6 +29,7 @@ #include <fstream> #include <string> +#ifdef E300_NATIVE namespace uhd { namespace usrp { namespace e300 { namespace common { @@ -90,3 +91,18 @@ UHD_STATIC_BLOCK(register_e300_image_loader) { } }}} + +#else +namespace uhd { namespace usrp { namespace e300 { + +namespace common { + +void load_fpga_image(const std::string&) +{ + throw uhd::assertion_error("load_fpga_image() !E300_NATIVE"); +} + +} + +}}} +#endif |