| load("//rules:matcha.bzl", "NEXUS_CORE_TARGETS", "sec_flash_binary", "smc_flash_binary") | 
 |  | 
 | sec_flash_binary( | 
 |     name = "spi_to_host_sc", | 
 |     srcs = [ | 
 |         "spi_to_host_sc.c", | 
 |         "spi_to_host_smc_fpga_nexus_bin_c.h", | 
 |     ], | 
 |     copts = [ | 
 |         "-nostdlib", | 
 |         "-ffreestanding", | 
 |     ], | 
 |     per_device_deps = { | 
 |         "fpga_nexus": [NEXUS_CORE_TARGETS.get("secure_core")], | 
 |     }, | 
 |     deps = [ | 
 |         "//sw/device/lib/dif:rv_plic_sec", | 
 |         "//sw/device/lib/dif:smc_ctrl", | 
 |         "//sw/device/lib/spi_to_host", | 
 |         "//sw/device/tests:test_lib", | 
 |     ], | 
 | ) | 
 |  | 
 | smc_flash_binary( | 
 |     name = "spi_to_host_smc", | 
 |     srcs = [ | 
 |         "spi_to_host_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:rv_plic_smc", | 
 |         "//sw/device/tests:test_lib_smc", | 
 |     ], | 
 | ) |