浏览代码

net: ec_bhf: Add runtime dependencies

The ec_bhf driver is specific to the Beckhoff CX embedded PC series.
These are based on Intel x86 CPU. So we can add a dependency on
X86, with COMPILE_TEST as an alternative to still allow for broader
build-testing.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Darek Marcinkiewicz <reksio@newterm.pl>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Jean Delvare 11 年之前
父节点
当前提交
3aab01d800
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/net/ethernet/Kconfig

+ 1 - 0
drivers/net/ethernet/Kconfig

@@ -39,6 +39,7 @@ source "drivers/net/ethernet/cisco/Kconfig"
 config CX_ECAT
 config CX_ECAT
 	tristate "Beckhoff CX5020 EtherCAT master support"
 	tristate "Beckhoff CX5020 EtherCAT master support"
 	depends on PCI
 	depends on PCI
+	depends on X86 || COMPILE_TEST
 	---help---
 	---help---
 	  Driver for EtherCAT master module located on CCAT FPGA
 	  Driver for EtherCAT master module located on CCAT FPGA
 	  that can be found on Beckhoff CX5020, and possibly other of CX
 	  that can be found on Beckhoff CX5020, and possibly other of CX