summaryrefslogtreecommitdiff
path: root/openwrt/target/linux/package/switch/src
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-12-25 15:15:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-12-25 15:15:32 +0000
commite86714af0824fb817ff9ad798f42f22aece6728b (patch)
tree897061a4627a2935edd3116773d1cba98cf89f6c /openwrt/target/linux/package/switch/src
parent874b56053e03ccb74ab4bc20378476cc6dafd3e3 (diff)
downloadmtk-20170518-e86714af0824fb817ff9ad798f42f22aece6728b.zip
mtk-20170518-e86714af0824fb817ff9ad798f42f22aece6728b.tar.gz
mtk-20170518-e86714af0824fb817ff9ad798f42f22aece6728b.tar.bz2
fix switch driver makefiles for 2.4
SVN-Revision: 2779
Diffstat (limited to 'openwrt/target/linux/package/switch/src')
-rw-r--r--openwrt/target/linux/package/switch/src/Makefile14
1 files changed, 2 insertions, 12 deletions
diff --git a/openwrt/target/linux/package/switch/src/Makefile b/openwrt/target/linux/package/switch/src/Makefile
index dd8a426..e4b2b7f 100644
--- a/openwrt/target/linux/package/switch/src/Makefile
+++ b/openwrt/target/linux/package/switch/src/Makefile
@@ -10,19 +10,9 @@
# 2 of the License, or (at your option) any later version.
#
-KERNEL_VERSION = $(shell uname -r | cut -d. -f1,2)
-
obj-m := switch-core.o switch-adm.o switch-robo.o
+export-objs := switch-core.o
-ifeq ($(KERNEL_VERSION),2.4)
-
-O_TARGET := $(obj-m)
-
+ifeq ($(MAKING_MODULES),1)
-include $(TOPDIR)/Rules.make
-
endif
-
-all: modules
-
-modules:
- $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules