[sw/autogen] remove meson.build templates
Since we have removed all `meson.build` files in a prior commit, we no
longer should generate these build files.
Signed-off-by: Timothy Trippel <ttrippel@google.com>
diff --git a/util/autogen_testutils/gen.py b/util/autogen_testutils/gen.py
index 0616819..e58b328 100644
--- a/util/autogen_testutils/gen.py
+++ b/util/autogen_testutils/gen.py
@@ -58,13 +58,11 @@
comment=comment_syntax)))
# Format autogenerated file with clang-format.
- # Note: do not format meson build file.
- if testutils.suffix != ".build":
- try:
- subprocess.check_call(["clang-format", "-i", testutils])
- except subprocess.CalledProcessError:
- logging.error(
- f"failed to format {testutils} with clang-format.")
- sys.exit(1)
+ try:
+ subprocess.check_call(["clang-format", "-i", testutils])
+ except subprocess.CalledProcessError:
+ logging.error(
+ f"failed to format {testutils} with clang-format.")
+ sys.exit(1)
print(f"testutils successfully written to {str(testutils)}.")
diff --git a/util/autogen_testutils/templates/meson.build.tpl b/util/autogen_testutils/templates/meson.build.tpl
deleted file mode 100644
index 5f19009..0000000
--- a/util/autogen_testutils/templates/meson.build.tpl
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright lowRISC contributors.
-# Licensed under the Apache License, Version 2.0, see LICENSE for details.
-# SPDX-License-Identifier: Apache-2.0
-
-${autogen_banner}
-
-# ISR test utilities
-sw_lib_testing_isr_testutils = declare_dependency(
- link_with: static_library(
- 'sw_lib_testing_isr_testutils',
- sources: ['isr_testutils.c'],
- dependencies: [
-% for ip in ips_with_difs:
- % if ip.irqs:
- sw_lib_dif_${ip.name_snake},
- % endif
-% endfor
- ],
- ),
-)
diff --git a/util/topgen.py b/util/topgen.py
index bb266f2..7f7d608 100755
--- a/util/topgen.py
+++ b/util/topgen.py
@@ -1280,7 +1280,7 @@
# Auto-generate tests in "sw/device/tests/autogen" area.
gencmd = warnhdr + GENCMD.format(topname=topname)
- for fname in ["plic_all_irqs_test.c", "alert_test.c", "meson.build", "BUILD"]:
+ for fname in ["plic_all_irqs_test.c", "alert_test.c", "BUILD"]:
outfile = SRCTREE_TOP / "sw/device/tests/autogen" / fname
render_template(TOPGEN_TEMPLATE_PATH / f"{fname}.tpl",
outfile,
diff --git a/util/topgen/templates/meson.build.tpl b/util/topgen/templates/meson.build.tpl
deleted file mode 100644
index fccb098..0000000
--- a/util/topgen/templates/meson.build.tpl
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright lowRISC contributors.
-# Licensed under the Apache License, Version 2.0, see LICENSE for details.
-# SPDX-License-Identifier: Apache-2.0
-${gencmd.replace("//", "#")}
-
-<%
-irq_peripheral_names = sorted({p.name for p in helper.irq_peripherals})
-alert_peripheral_names = sorted({p.name for p in helper.alert_peripherals})
-%>\
-# IP Integration Tests
-plic_all_irqs_test_lib = declare_dependency(
- link_with: static_library(
- 'plic_all_irqs_test_lib',
- sources: [
- 'plic_all_irqs_test.c',
- ],
- dependencies: [
- sw_lib_irq,
- sw_lib_mmio,
-% for n in sorted(irq_peripheral_names + ["rv_plic"]):
- sw_lib_dif_${n},
-% endfor
- sw_lib_runtime_log,
- sw_lib_testing_rv_plic_testutils,
- sw_lib_testing_test_status,
- top_earlgrey,
- ],
- ),
-)
-sw_tests += {
- 'plic_all_irqs_test': {
- 'library': plic_all_irqs_test_lib,
- }
-}
-
-alert_test_lib = declare_dependency(
- link_with: static_library(
- 'alert_test_lib',
- sources: [hw_ip_alert_handler_reg_h,
- 'alert_test.c'],
- dependencies: [
- sw_lib_mem,
- sw_lib_mmio,
- sw_lib_testing_alert_handler_testutils,
- sw_lib_dif_rv_plic,
- sw_lib_runtime_log,
- sw_lib_testing_test_status,
-% for n in sorted(alert_peripheral_names):
- sw_lib_dif_${n},
-% endfor
- ],
- ),
-)
-sw_tests += {
- 'alert_test': {
- 'library': alert_test_lib,
- }
-}