blob: f1c1406e8e83fce1c487b1ba927550f9e34912f7 [file] [log] [blame]
# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_files",
srcs = glob(["**"]) + [
"//hw/ip/otbn/data:all_files",
],
)
genrule(
name = "otbn_simple_smoke_test_obj",
srcs = [
"dv/smoke/smoke_test.s",
],
outs = [
"otbn_simple_smoke_test.o",
],
cmd = """
export RV32_TOOL_AS=$(location @com_lowrisc_toolchain_rv32imc_compiler//:bin/riscv32-unknown-elf-as)
$(location //hw/ip/otbn/util:otbn_as) -o $@ $<
""",
tools = [
"//hw/ip/otbn/util:otbn_as",
"@com_lowrisc_toolchain_rv32imc_compiler//:bin/riscv32-unknown-elf-as",
],
)
genrule(
name = "otbn_simple_smoke_test_elf",
srcs = [
":otbn_simple_smoke_test.o",
],
outs = [
"otbn_simple_smoke_test.elf",
],
cmd = """
export RV32_TOOL_LD=$(location @com_lowrisc_toolchain_rv32imc_compiler//:bin/riscv32-unknown-elf-ld)
$(location //hw/ip/otbn/util:otbn_ld) -o $@ $<
""",
tools = [
"//hw/ip/otbn/util:otbn_ld",
"@com_lowrisc_toolchain_rv32imc_compiler//:bin/riscv32-unknown-elf-ld",
],
)