stmmac: dwmac-loongson: Add architecture dependency
[platform/kernel/linux-starfive.git] / drivers / net / ethernet / stmicro / stmmac / Kconfig
index 06c6871..25f2d42 100644 (file)
@@ -269,7 +269,7 @@ config DWMAC_INTEL
 config DWMAC_LOONGSON
        tristate "Loongson PCI DWMAC support"
        default MACH_LOONGSON64
-       depends on STMMAC_ETH && PCI
+       depends on (MACH_LOONGSON64 || COMPILE_TEST) && STMMAC_ETH && PCI
        depends on COMMON_CLK
        help
          This selects the LOONGSON PCI bus support for the stmmac driver,