patch-2.1.110 linux/drivers/net/Makefile
Next file: linux/drivers/net/Space.c
Previous file: linux/drivers/net/8390.c
Back to the patch index
Back to the overall index
- Lines: 55
- Date:
Mon Jul 20 17:22:35 1998
- Orig file:
v2.1.109/linux/drivers/net/Makefile
- Orig date:
Wed Jun 24 22:54:06 1998
diff -u --recursive --new-file v2.1.109/linux/drivers/net/Makefile linux/drivers/net/Makefile
@@ -22,6 +22,8 @@
CONFIG_PPPDEF_MODULE :=
CONFIG_7990_BUILTIN :=
CONFIG_7990_MODULE :=
+CONFIG_82596_BUILTIN :=
+CONFIG_82596_MODULE :=
ifeq ($(CONFIG_ISDN),y)
ifeq ($(CONFIG_ISDN_PPP),y)
@@ -573,10 +575,26 @@
endif
ifeq ($(CONFIG_APRICOT),y)
-L_OBJS += apricot.o
+CONFIG_82596_BUILTIN = y
else
ifeq ($(CONFIG_APRICOT),m)
- M_OBJS += apricot.o
+ CONFIG_82596_MODULE = y
+ endif
+endif
+
+ifeq ($(CONFIG_MVME16x_NET),y)
+CONFIG_82596_BUILTIN = y
+else
+ ifeq ($(CONFIG_MVME16x_NET),m)
+ CONFIG_82596_MODULE = y
+ endif
+endif
+
+ifeq ($(CONFIG_BVME6000_NET),y)
+CONFIG_82596_BUILTIN = y
+else
+ ifeq ($(CONFIG_BVME6000_NET),m)
+ CONFIG_82596_MODULE = y
endif
endif
@@ -700,6 +718,16 @@
else
ifdef CONFIG_7990_MODULE
M_OBJS += 7990.o
+ endif
+endif
+
+# If anything built-in uses the 82596, then build it into the kernel also.
+# If not, but a module uses it, build as a module.
+ifdef CONFIG_82596_BUILTIN
+L_OBJS += 82596.o
+else
+ ifdef CONFIG_82596_MODULE
+ M_OBJS += 82596.o
endif
endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov