f7414ab859
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> |
||
---|---|---|
.. | ||
app | ||
bintools | ||
compiler | ||
emu | ||
flash | ||
ide | ||
linker | ||
linker_script | ||
makefile_exports | ||
modules | ||
reports | ||
toolchain | ||
usage | ||
util | ||
cfb.cmake | ||
extra_flags.cmake | ||
gcc-m-cpu.cmake | ||
gcc-m-fpu.cmake | ||
gen_version_h.cmake | ||
hex.cmake | ||
kobj.cmake | ||
mcuboot.cmake | ||
package_helper.cmake | ||
pristine.cmake | ||
target_toolchain_flags.cmake |