summaryrefslogtreecommitdiff
path: root/drivers/net/phy/mscc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/mscc/Makefile')
-rw-r--r--drivers/net/phy/mscc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/phy/mscc/Makefile b/drivers/net/phy/mscc/Makefile
index e419ed1a3213..10af42cd9839 100644
--- a/drivers/net/phy/mscc/Makefile
+++ b/drivers/net/phy/mscc/Makefile
@@ -2,4 +2,9 @@
#
# Makefile for MSCC networking PHY driver
-obj-$(CONFIG_MICROSEMI_PHY) += mscc.o
+obj-$(CONFIG_MICROSEMI_PHY) := mscc.o
+mscc-objs := mscc_main.o
+
+ifdef CONFIG_MACSEC
+mscc-objs += mscc_macsec.o
+endif