1#
2# Copyright 2018, Data61
3# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4# ABN 41 687 119 230.
5#
6# This software may be distributed and modified according to the terms of
7# the GNU General Public License version 2. Note that NO WARRANTY is provided.
8# See "LICENSE_GPLv2.txt" for details.
9#
10# @TAG(DATA61_GPL)
11#
12
13cmake_minimum_required(VERSION 3.7.2)
14
15if(KernelPlatformImx7Sabre)
16    set(KernelArmCortexA7 ON)
17    set(KernelArchArmV7a ON)
18    config_set(KernelPlatImx7 PLAT_IMX7 ON)
19    config_set(KernelPlatform PLAT "imx7")
20    set(KernelArmMach "imx" CACHE INTERNAL "")
21else()
22    config_set(KernelPlatImx7 PLAT_IMX7 OFF)
23endif()
24
25add_sources(
26    DEP "KernelPlatImx7"
27    CFILES src/plat/imx7/machine/io.c
28           src/plat/imx7/machine/hardware.c
29           src/arch/arm/machine/generic_timer.c
30)
31