1#
2# Copright 2019, 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
15project(libplatsupportports C)
16
17file(GLOB deps src/plat/${KernelPlatform}/*.c src/*.c)
18
19add_library(platsupportports EXCLUDE_FROM_ALL ${deps})
20
21target_include_directories(platsupportports PUBLIC include plat_include/${KernelPlatform})
22target_link_libraries(platsupportports muslc platsupport)
23
24if("${KernelPlatform}" STREQUAL "tx2")
25    target_link_libraries(platsupportports tx2bpmp)
26endif()
27