X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/fa8fb4e7c3be746703fee0dd34285f462ba104ec..eee99ea9c7a0d6577d1bfeb1009c65bab5b46822:/openwrt/target/linux/package/switch/src/Makefile?ds=sidebyside diff --git a/openwrt/target/linux/package/switch/src/Makefile b/openwrt/target/linux/package/switch/src/Makefile index dd8a426ec..4c5f911ea 100644 --- a/openwrt/target/linux/package/switch/src/Makefile +++ b/openwrt/target/linux/package/switch/src/Makefile @@ -10,19 +10,10 @@ # 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 -ifeq ($(KERNEL_VERSION),2.4) - -O_TARGET := $(obj-m) +ifeq ($(MAKING_MODULES),1) +export-objs := switch-core.o -include $(TOPDIR)/Rules.make - endif - -all: modules - -modules: - $(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(shell pwd) TOPDIR="$(KERNEL_DIR)" modules