#
# Copyright 2018, Data61
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230.
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE_BSD2.txt" for details.
#
# @TAG(DATA61_BSD)
#

cmake_minimum_required(VERSION 3.7.2)

project(system)

include(${CMAKE_CURRENT_LIST_DIR}/rust.cmake)

RustAddLibrary(
  kata_debug_console
  SOURCE_DIR
  ${CMAKE_CURRENT_LIST_DIR}/components/DebugConsole
  TARGET
  "riscv32imc-unknown-none-elf"
  LIB_FILENAME
  libkata_debug_console.a
)

DeclareCAmkESComponent(DebugConsole
  LIBS kata_debug_console
)

DeclareCAmkESComponent(UartDriver
  SOURCES components/UartDriver/src/driver.c
)

DeclareCAmkESRootserver(system.camkes)

#
# Copyright 2018, Data61
# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
# ABN 41 687 119 230.
#
# This software may be distributed and modified according to the terms of
# the BSD 2-Clause license. Note that NO WARRANTY is provided.
# See "LICENSE_BSD2.txt" for details.
#
# @TAG(DATA61_BSD)
#

cmake_minimum_required(VERSION 3.7.2)

project(system)

include(${CMAKE_CURRENT_LIST_DIR}/rust.cmake)

RustAddLibrary(
  kata_debug_console
  SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/components/DebugConsole
  TARGET "riscv32imc-unknown-none-elf"
  LIB_FILENAME libkata_debug_console.a
)

DeclareCAmkESComponent(DebugConsole
  LIBS kata_debug_console
)

DeclareCAmkESComponent(UartDriver
  SOURCES components/UartDriver/src/driver.c
)

DeclareCAmkESRootserver(system.camkes)

Put cmake keywords on the same line as their parameters
style: Put cmake keywords on the same line as their parameters

Change-Id: I8e6ecfa1e99e4f880f88928f561fc060d53dca0d
GitOrigin-RevId: 229aa4fddf2dc4ba496e8870d1b4f5f6ee919f35
