Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: arc_emac: add dependencies on associated arches and compile test

Add dependencies on the architectures that support these devices and
add compile test to ensure ongoing code build coverage.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Peter Robinson and committed by
David S. Miller
530742e7 b26bff6e

+3 -2
+3 -2
drivers/net/ethernet/arc/Kconfig
··· 17 17 18 18 config ARC_EMAC_CORE 19 19 tristate 20 + depends on ARC || ARCH_ROCKCHIP || COMPILE_TEST 20 21 select MII 21 22 select PHYLIB 22 23 23 24 config ARC_EMAC 24 25 tristate "ARC EMAC support" 25 26 select ARC_EMAC_CORE 26 - depends on OF_IRQ && OF_NET && HAS_DMA 27 + depends on OF_IRQ && OF_NET && HAS_DMA && (ARC || COMPILE_TEST) 27 28 ---help--- 28 29 On some legacy ARC (Synopsys) FPGA boards such as ARCAngel4/ML50x 29 30 non-standard on-chip ethernet device ARC EMAC 10/100 is used. ··· 33 32 config EMAC_ROCKCHIP 34 33 tristate "Rockchip EMAC support" 35 34 select ARC_EMAC_CORE 36 - depends on OF_IRQ && OF_NET && REGULATOR && HAS_DMA 35 + depends on OF_IRQ && OF_NET && REGULATOR && HAS_DMA && (ARCH_ROCKCHIP || COMPILE_TEST) 37 36 ---help--- 38 37 Support for Rockchip RK3036/RK3066/RK3188 EMAC ethernet controllers. 39 38 This selects Rockchip SoC glue layer support for the