samples: basic: minimal: add no-sw-isr-table option

Add option to build without software isr table for platforms which
support it (ARM and RISCV). The software ISR table takes up
kilobytes of RAM and introduces latency, and it is not needed if
CONFIG_MULTITHREADING=n.

The initially supported nrf54l15 and nrf54lm20 boards additionally
need CONFIG_CLOCK_CONTROL=n for the minimal sample so board configs
have been added for them. Note that the entry in sample.yaml uses
EXTRA_CONF_FILE to not overwrite the board specific CONF_FILE.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
diff --git a/samples/basic/minimal/README.rst b/samples/basic/minimal/README.rst
index 6021d80..7572df9 100644
--- a/samples/basic/minimal/README.rst
+++ b/samples/basic/minimal/README.rst
@@ -17,6 +17,7 @@
 * :file:`no-preempt.conf`: Disable preemption
 * :file:`no-timers.conf`: Disable timers
 * :file:`arm.conf`: Arm-specific disabling of features
+* :file:`no-sw-isr-table.conf`: Disable software isr table generation
 
 Building and measuring ROM size
 *******************************
diff --git a/samples/basic/minimal/boards/nrf54l15dk_nrf54l15_cpuapp.conf b/samples/basic/minimal/boards/nrf54l15dk_nrf54l15_cpuapp.conf
new file mode 100644
index 0000000..c21cb5c
--- /dev/null
+++ b/samples/basic/minimal/boards/nrf54l15dk_nrf54l15_cpuapp.conf
@@ -0,0 +1 @@
+CONFIG_CLOCK_CONTROL=n
diff --git a/samples/basic/minimal/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf b/samples/basic/minimal/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf
new file mode 100644
index 0000000..c21cb5c
--- /dev/null
+++ b/samples/basic/minimal/boards/nrf54lm20dk_nrf54lm20a_cpuapp.conf
@@ -0,0 +1 @@
+CONFIG_CLOCK_CONTROL=n
diff --git a/samples/basic/minimal/no-sw-isr-table.conf b/samples/basic/minimal/no-sw-isr-table.conf
new file mode 100644
index 0000000..3de01e7
--- /dev/null
+++ b/samples/basic/minimal/no-sw-isr-table.conf
@@ -0,0 +1,3 @@
+# No software ISR table, only direct ISR support in the kernel
+
+CONFIG_GEN_SW_ISR_TABLE=n
diff --git a/samples/basic/minimal/sample.yaml b/samples/basic/minimal/sample.yaml
index d1b276a..3330ea4 100644
--- a/samples/basic/minimal/sample.yaml
+++ b/samples/basic/minimal/sample.yaml
@@ -105,3 +105,15 @@
       - kernel
     integration_platforms:
       - qemu_riscv32
+  sample.minimal.no-mt-no-sw-isr-table.arm:
+    extra_args: EXTRA_CONF_FILE='common.conf;no-mt.conf;no-sw-isr-table.conf;arm.conf'
+    build_only: true
+    platform_allow:
+      - nrf54l15dk/nrf54l15/cpuapp
+      - nrf54lm20dk/nrf54lm20a/cpuapp
+  sample.minimal.no-mt-no-sw-isr-table.riscv:
+    extra_args: CONF_FILE='common.conf;no-mt.conf;no-sw-isr-table.conf;riscv.conf'
+    build_only: true
+    platform_allow:
+      - nrf54l15dk/nrf54l15/cpuflpr
+      - nrf54lm20dk/nrf54lm20a/cpuflpr