blob: e9775f21d3202d3c8ae23c4b244cb483699c8e62 [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
foreach device_name, device_lib : sw_lib_arch_core_devices
hello_world_elf = executable(
'hello_world_' + device_name,
sources: ['hello_world.c'],
name_suffix: 'elf',
dependencies: [
sw_examples_demos,
sw_lib_runtime_hart,
sw_lib_base_print,
sw_lib_base_log,
sw_lib_pinmux,
sw_lib_dif_gpio,
sw_lib_irq,
sw_lib_dif_spi_device,
sw_lib_uart,
riscv_crt,
sw_lib_irq_handlers,
device_lib,
sw_lib_testing_test_status,
],
)
hello_world_embedded = custom_target(
'hello_world_' + device_name,
command: make_embedded_target,
input: hello_world_elf,
output: make_embedded_target_outputs,
build_by_default: true,
)
custom_target(
'hello_world_export_' + device_name,
command: export_embedded_target,
input: [hello_world_elf, hello_world_embedded],
output: 'hello_world_export_' + device_name,
build_always_stale: true,
build_by_default: true,
)
endforeach