1#
2# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
3#
4# SPDX-License-Identifier: GPL-2.0-only
5#
6
7cmake_minimum_required(VERSION 3.7.2)
8
9macro(register_driver compatibility_strings match_strings)
10    foreach(match_string IN ITEMS ${match_strings})
11        list(FIND ${compatibility_strings} ${match_string} res)
12        if(NOT (res EQUAL -1))
13            add_sources(${ARGN})
14            break()
15        endif()
16    endforeach()
17endmacro()
18
19include(src/drivers/serial/config.cmake)
20include(src/drivers/smmu/config.cmake)
21include(src/drivers/timer/config.cmake)
22