summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index 4c782b454..3a8721933 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -567,10 +567,12 @@ else
endif
endif
-ifdef CONFIG_MIPS_JAZZ_SONIC
+ifeq ($(CONFIG_MIPS_JAZZ_SONIC),y)
L_OBJS += sonic.o
else
-M_OBJS += sonic.o
+ ifeq ($(CONFIG_MIPS_JAZZ_SONIC),m)
+ M_OBJS += sonic.o
+ endif
endif
ifeq ($(CONFIG_ATARILANCE),y)