1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

fix switch driver makefiles for 2.4

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@2779 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2005-12-25 15:15:32 +00:00
parent 880e31f778
commit d652f305ac
2 changed files with 7 additions and 18 deletions

View File

@@ -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