uhd/mpm/python/usrp_mpm/chips
Martin Braun 09d94529e5 cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR
See the CMake 3.8 documentation on these two variables:
https://cmake.org/cmake/help/v3.8/variable/PROJECT-NAME_SOURCE_DIR.html
https://cmake.org/cmake/help/v3.8/variable/CMAKE_SOURCE_DIR.html

Under normal circumstances, these two are identical. For sub-projects
(i.e., when building UHD as part of something else that is also a CMake
project), only the former is useful. There is no discernible downside of
using UHD_SOURCE_DIR over CMAKE_SOURCE_DIR.

This was changed using sed:

$ sed -i "s/CMAKE_SOURCE_DIR/UHD_SOURCE_DIR/g" \
    `ag -l CMAKE_SOURCE_DIR **/{CMakeLists.txt,*.cmake}`
$ sed -i "s/CMAKE_BINARY_DIR/UHD_BINARY_DIR/g" \
    `ag -l CMAKE_BINARY_DIR **/{CMakeLists.txt,*.cmake}`

At the same time, we also replace the CMake variable UHD_HOST_ROOT (used
in MPM) with UHD_SOURCE_DIR. There's no reason to have two variables
with the same meaning and different names, but more importantly, this
means that UHD_SOURCE_DIR is defined even in those cases where MPM calls
into CMake files from UHD without any additional patches.

Shoutout to GitHub user marcobergamin for bringing this up.
2021-09-10 15:08:10 -05:00
..
ic_reg_maps cmake: Replace CMAKE_{SOURCE,BINARY}_DIR with UHD_*_DIR 2021-09-10 15:08:10 -05:00
__init__.py mpm: Add chip driver for LMK05318 PLL 2021-06-03 10:21:00 -05:00
adf400x.py adf400x: Fix adf400x driver for ref counter and charge pump mode 2018-08-02 16:07:15 -07:00
CMakeLists.txt uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
ds125df410.py mpm: Add basic driver for QSFP board's retimer 2018-11-07 18:26:13 -08:00
lmk03328.py mpm: Add an LMK03328 base chip driver 2021-02-22 10:15:13 -06:00
lmk04828.py mpm: Fix some Pylint warnings 2018-03-06 15:45:15 -08:00
lmk04832.py mpm: lmk04832: Clean up driver 2021-05-10 15:03:00 -05:00
lmk05318.py mpm: Add chip driver for LMK05318 PLL 2021-06-03 10:21:00 -05:00
lmx2572.py uhd: Add support for the USRP X410 2021-06-10 12:01:53 -05:00
max10_cpld_flash_ctrl.py mpm: max10_cpld_flash_ctrl: improve programming log 2021-07-07 00:15:31 -07:00