1# 2# Copyright 2017, 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 BSD 2-Clause license. Note that NO WARRANTY is provided. 8# See "LICENSE_BSD2.txt" for details. 9# 10# @TAG(DATA61_BSD) 11# 12 13cmake_minimum_required(VERSION 3.7.2) 14 15project(libutils C) 16 17file(GLOB deps src/*.c src/arch/${KernelArch}/*.c) 18 19list(SORT deps) 20 21set(configure_string "") 22 23config_string( 24 LibUtilsDefaultZfLogLevel 25 LIB_UTILS_DEFAULT_ZF_LOG_LEVEL 26 "Default ZF_LOG_LEVEL for the ZF_LOG library. 5 is LOG_LEVEL_ERROR. 0 is \ 27 the most verbose setting." 28 DEFAULT 29 5 30 UNQUOTE 31) 32mark_as_advanced(LibUtilsDefaultZfLogLevel) 33add_config_library(utils "${configure_string}") 34 35add_library(utils STATIC EXCLUDE_FROM_ALL ${deps}) 36target_include_directories(utils 37 PUBLIC 38 include 39 arch_include/${KernelArch} 40) 41target_link_libraries(utils muslc utils_Config sel4_autoconf) 42