Skip to contentSkip to conversation

accel: ethosu: Add hardware dependency hint

PATCH Applied Jean Delvare 2 participants 2 messages Apr 1 – Apr 2

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accel: ethosu: Add hardware dependency hint

The Ethos-U NPU is only available on ARM systems, so add a hardware dependency hint to prevent this driver from being needlessly included in kernels built for other architectures.

---
 drivers/accel/ethosu/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/accel/ethosu/Kconfig +1 -0
@@ -4,6 +4,7 @@ config DRM_ACCEL_ARM_ETHOSU
 	tristate "Arm Ethos-U65/U85 NPU"
 	depends on HAS_IOMEM
 	depends on DRM_ACCEL
+	depends on ARM || ARM64 || COMPILE_TEST
 	select DRM_GEM_DMA_HELPER
 	select DRM_SCHED
 	select GENERIC_ALLOCATOR
Signature · 2 lines
Jean Delvare
SUSE L3 Support
maintainer Applied
#1 lore raw
Quoted 8 lines · Jean Delvare

The Ethos-U NPU is only available on ARM systems, so add a hardware dependency hint to prevent this driver from being needlessly included in kernels built for other architectures.

---
 drivers/accel/ethosu/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Rob