zephyr/cmake/modules
Marc Herbert f7414ab859 cmake: dts: resolve symlinks before de-duplicating DTS_ROOT
DTS directories can come from multiple places. Some places like a user's
CMakeLists.txt can preserve symbolic links. Others like
`scripts/zephyr_module.py --settings-out` resolve symbolic
links.

list(REMOVE_DUPLICATES ...) does not know anything about directories;
only about strings. To fix it the de-duplication, resolve all symbolic
links in DTS_ROOT first using file(REAL_PATH ...).

Fixes this somewhat confusing error:
```
-- Found BOARD.dts:    /home/proj/mymodule/boards/myboard/myboard.dts
devicetree error: both /home/proj/mymodule/dts/bindings/intel,stuff.yaml
             and /disk1/home/proj/mymodule/dts/bindings/intel,stuff.yaml
have 'compatible: intel,stuff'
```

Also, print `gen_defines.py` arguments in case of an error so anyone can
see what failed and not just west+CMake experts.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
2022-06-24 20:26:02 +02:00
..
arch.cmake
boards.cmake
ccache.cmake
configuration_files.cmake everywhere: fix typos 2022-03-18 13:24:08 -04:00
doc.cmake cmake: doc: created a doc.cmake CMake module in Zephyr CMake modules dir 2022-02-22 10:02:39 -08:00
dts.cmake cmake: dts: resolve symlinks before de-duplicating DTS_ROOT 2022-06-24 20:26:02 +02:00
extensions.cmake cmake: use all compile options arguments for uniqueness 2022-06-08 12:42:28 +02:00
generic_toolchain.cmake
host-tools.cmake
kconfig.cmake Kconfig: add CONFIG_BOARD_REVISION 2022-04-08 10:30:54 -07:00
kernel.cmake everywhere: fix typos 2022-03-18 13:24:08 -04:00
python.cmake
root.cmake
shields.cmake everywhere: fix typos 2022-03-18 13:24:08 -04:00
soc.cmake
target_toolchain.cmake
unittest.cmake ztest: Fix userspace ztests in new API 2022-05-25 11:20:13 +09:00
user_cache.cmake
verify-toolchain.cmake cmake: Use Zephyr SDK by default on all host operating systems 2022-03-24 11:45:05 +01:00
version.cmake
west.cmake
zephyr_default.cmake cmake: test CMake and issue error if using 3.22.1 / 3.22.2 from PyPI 2022-02-25 10:16:25 -08:00
zephyr_module.cmake scripts: enforce module name uniqueness 2022-03-10 09:47:58 -05:00