blob: dd1397c107decb6ae97c5eaecb07330e8b85287b [file] [log] [blame]
# Copyright 2023 Google LLC.
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
load("//rules:matcha.bzl", "OPENTITAN_CPU")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "puppeteer_utils",
srcs = [
"elf_loader.c",
"nostdlib.c",
"tar_loader.c",
"tiny_hmac.cc",
"tiny_io.cc",
"uart.cc",
],
hdrs = [
"base64.h",
"elf_loader.h",
"opentitan_hmac.h",
"opentitan_uart.h",
"tar_loader.h",
"tiny_hmac.h",
"tiny_io.h",
"uart.h",
],
copts = [
"-nostdlib",
],
target_compatible_with = [OPENTITAN_CPU],
deps = [
"//hw/top_matcha:pinmux_regs",
"//hw/top_matcha/sw:top_matcha",
"//sw/device/lib:tar_header",
"@lowrisc_opentitan//hw/ip/hmac/data:hmac_regs",
"@lowrisc_opentitan//hw/ip/uart/data:uart_regs",
],
)