blob: cf3eee8ba7c36b522e05b919924b48a54525246f [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
package(default_visibility = ["//visibility:public"])
cc_library(
name = "base",
srcs = [
"bitfield.c",
"hardened.c",
"memory.c",
],
hdrs = [
"bitfield.h",
"csr.h",
"csr_registers.h",
"hardened.h",
"macros.h",
"memory.h",
"mmio.h",
"multibits.h",
"multibits_asm.h",
"stdasm.h",
],
copts = [
"-fno-builtin",
],
)
cc_library(
name = "mmio",
srcs = [
"mmio.c",
],
deps = [
":base",
],
)
# tests need to build src with a different set of flags. use this to do so.
filegroup(
name = "mmio_src",
srcs = ["mmio.c"],
)