net: ethernet: actions: Add helper dependency on COMPILE_TEST
authorCai Huoqing <caihuoqing@baidu.com>
Wed, 25 Aug 2021 06:25:13 +0000 (14:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 11:06:53 +0000 (12:06 +0100)
it's helpful for complie test in other platform(e.g.X86)

Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/actions/Kconfig

index ccad6a3..f630cac 100644 (file)
@@ -2,8 +2,8 @@
 
 config NET_VENDOR_ACTIONS
        bool "Actions Semi devices"
-       default y
-       depends on ARCH_ACTIONS
+       depends on ARCH_ACTIONS || COMPILE_TEST
+       default ARCH_ACTIONS
        help
          If you have a network (Ethernet) card belonging to this class, say Y.