aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-01-25 10:53:51 -0800
committerMartin Braun <martin.braun@ettus.com>2018-01-29 11:34:48 +0100
commitcf1bf696649c958c53d7f4cf0a280242c254e4be (patch)
treee3d68a2a733d61270bb3f4d0a79a6063075f6b95 /host/cmake
parent8f5f38e4f98a30ab88729ac52105a4d0f4e928a9 (diff)
downloaduhd-cf1bf696649c958c53d7f4cf0a280242c254e4be.tar.gz
uhd-cf1bf696649c958c53d7f4cf0a280242c254e4be.tar.bz2
uhd-cf1bf696649c958c53d7f4cf0a280242c254e4be.zip
utils: images downloader: forced update of CMake variable
Moved the uhd_images_downloader.py.in configuration to its own script so that the manifest file is added as a dependency and read into a CMake variable. Reviewed-by: Ashish Chaudhari <ashish@ettus.com> Reviewed-by: Martin Braun <martin.braun@ettus.com>
Diffstat (limited to 'host/cmake')
-rw-r--r--host/cmake/Modules/UHDImagesDownloader.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/cmake/Modules/UHDImagesDownloader.cmake b/host/cmake/Modules/UHDImagesDownloader.cmake
new file mode 100644
index 000000000..63c5ded75
--- /dev/null
+++ b/host/cmake/Modules/UHDImagesDownloader.cmake
@@ -0,0 +1,6 @@
+#UHD images downloader configuration
+FILE(READ ${CURRENT_DIR}/../../images/manifest.txt CMAKE_MANIFEST_CONTENTS)
+CONFIGURE_FILE(
+ ${CURRENT_DIR}/uhd_images_downloader.py.in
+ ${INSTALL_DIR}/uhd_images_downloader.py
+@ONLY)