blob: 9a0406c66b90ce1bf5c2b017ab5ae19916b2dcd6 [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
spiflash_bin = executable(
'spiflash',
sources: [
'ftdi_spi_interface.cc',
'spiflash.cc',
'updater.cc',
'verilator_spi_interface.cc',
],
implicit_include_directories: false,
dependencies: [
dependency('libcrypto', native: true),
# The libftdi1 dependency needs to be explicit to manage
# include paths on some systems.
dependency('libftdi1', native: true),
libmpsse
],
native: true,
)
custom_target(
'spiflash_export',
output: 'spiflash_export',
command: export_target_command,
depend_files: [export_target_depend_files,],
input: spiflash_bin,
build_always_stale: true,
build_by_default: true,
)