zephyr/cmake/modules
Grzegorz Swiderski 4acb615c14 cmake: boards: Error out if multiple boards use the same name
Detecting this requires `boards.cmake` being able to handle multi-line
output from `list_boards.py`. Implement a similar line reading loop to
the one used in `hwm_v2.cmake`.

Failing to handle this could result in an incorrectly parsed list of
valid board qualifiers. Here's the expected list for `nrf52_bsim`:

  - "native"

and here's what would happen if two copies of that board were found:

  - "native\nNAME"
  - "nrf52_bsim"
  - "native"

Instead of that, there would now be a proper error message listing all
board directories which contain `nrf52_bsim`.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2024-03-26 16:20:08 -04:00
..
FindBabbleSim.cmake nrf5_bsim cmake: Check that the simulator version is new enough 2024-03-19 21:18:13 -05:00
FindDeprecated.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
FindDtc.cmake
FindGnuLd.cmake
FindHostTools.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
FindLlvmLld.cmake
FindScaTools.cmake
FindTargetTools.cmake
FindZephyr-sdk.cmake
Findarmclang.cmake
FindoneApi.cmake
arch_v1.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
arch_v2.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
basic_settings.cmake
boards.cmake cmake: boards: Error out if multiple boards use the same name 2024-03-26 16:20:08 -04:00
ccache.cmake
configuration_files.cmake cmake: configuration_files: Add missing FILE_SUFFIX handling 2024-03-22 12:41:32 +00:00
doc.cmake
dts.cmake terminology: adopt CMake, python, and Kconfig code to use qualifiers 2024-03-21 15:32:17 +01:00
extensions.cmake cmake: extensions: Change zephyr_file() argument parser prefix 2024-03-22 12:41:32 +00:00
generated_file_directories.cmake
hwm_v2.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
kconfig.cmake scripts: remove boards_legacy sub-folder from list_boards.py 2024-03-22 11:51:58 +01:00
kernel.cmake
pre_dt.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
python.cmake
root.cmake
shields.cmake
snippets.cmake
soc_v1.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
soc_v2.cmake cmake: add CMake configure dependency to board.yml 2024-03-22 13:02:00 +00:00
unittest.cmake unittest: update unittest to hwmv2 2024-03-22 11:51:58 +01:00
user_cache.cmake
version.cmake
west.cmake
zephyr_default.cmake hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
zephyr_module.cmake