blob: 8f9c7ebea0f4a4578e0b6ebac2fb358071d90297 [file] [log] [blame]
load("//rules:matcha.bzl", "NEXUS_CORE_TARGETS", "sec_flash_binary", "smc_flash_binary")
sec_flash_binary(
name = "spi_display_sc",
srcs = [
"spi_display_sc.c",
"spi_display_smc_fpga_nexus_bin_c.h",
],
copts = [
"-nostdlib",
"-ffreestanding",
],
per_device_deps = {
"fpga_nexus": [NEXUS_CORE_TARGETS.get("secure_core")],
},
deps = [
"//sw/device/lib:util",
"//sw/device/lib/dif:smc_ctrl",
"//sw/device/lib/dif:tlul_mailbox",
"//sw/device/tests:test_lib",
],
)
smc_flash_binary(
name = "spi_display_smc",
srcs = [
"spi_display_smc.c",
],
copts = [
"-nostdlib",
"-ffreestanding",
],
per_device_deps = {
"fpga_nexus": [NEXUS_CORE_TARGETS.get("smc")],
},
deps = [
"//sw/device/lib:camera_hm01b0",
"//sw/device/lib/dif:cam_ctrl",
"//sw/device/lib/dif:isp_wrapper",
"//sw/device/lib/dif:tlul_mailbox",
"//sw/device/lib/spi_display",
"//sw/device/tests:test_lib_smc",
"@lowrisc_opentitan//sw/device/lib/dif:spi_host",
],
)