mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 13:55:31 +02:00
fix switch driver makefiles for 2.4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2779 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1bf9e140d4
commit
806b93c027
@ -25,14 +25,13 @@ $(PKG_BUILD_DIR)/.configured:
|
|||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.built:
|
$(PKG_BUILD_DIR)/.built:
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C "$(LINUX_DIR)" \
|
||||||
PATH="$(TARGET_PATH)" \
|
|
||||||
ARCH="$(LINUX_KARCH)" \
|
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
KERNEL_VERSION="$(KERNEL_VERSION)" \
|
ARCH="$(LINUX_KARCH)" \
|
||||||
KERNEL_DIR="$(KERNEL_DIR)" \
|
PATH="$(TARGET_PATH)" \
|
||||||
|
SUBDIRS="$(PKG_BUILD_DIR)" \
|
||||||
EXTRA_CFLAGS="-DBCMGPIO2" \
|
EXTRA_CFLAGS="-DBCMGPIO2" \
|
||||||
all
|
modules
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(IPKG_KMOD_SWITCH):
|
$(IPKG_KMOD_SWITCH):
|
||||||
|
@ -10,19 +10,9 @@
|
|||||||
# 2 of the License, or (at your option) any later version.
|
# 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
|
obj-m := switch-core.o switch-adm.o switch-robo.o
|
||||||
|
export-objs := switch-core.o
|
||||||
|
|
||||||
ifeq ($(KERNEL_VERSION),2.4)
|
ifeq ($(MAKING_MODULES),1)
|
||||||
|
|
||||||
O_TARGET := $(obj-m)
|
|
||||||
|
|
||||||
-include $(TOPDIR)/Rules.make
|
-include $(TOPDIR)/Rules.make
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: modules
|
|
||||||
|
|
||||||
modules:
|
|
||||||
$(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules
|
|
||||||
|
Loading…
Reference in New Issue
Block a user