make the kernel compile process more generic
authorFelix Fietkau <nbd@openwrt.org>
Sat, 11 Jun 2005 23:36:33 +0000 (23:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 11 Jun 2005 23:36:33 +0000 (23:36 +0000)
SVN-Revision: 1208

openwrt/target/linux/linux-2.4/Makefile
openwrt/target/linux/linux-2.4/broadcom.mk

index 5997275e8857cf1f0c6cdde667c0991ba5235366..969a882181b42aff6fbd8d3fdc0c13f88cdbdeee 100644 (file)
@@ -44,25 +44,17 @@ KERNEL_IPKG:=$(LINUX_BUILD_DIR)/kernel_$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)_
 KERNEL_IDIR:=$(LINUX_BUILD_DIR)/kernel-ipkg
 
 include $(LINUX_KCONFIG)
+
+INSTALL_TARGETS := $(KERNEL_IPKG)
+TARGETS := 
+
 ifeq ($(BOARD),brcm)
 include ./broadcom.mk
 endif
 
-TARGETS := 
-INSTALL_TARGETS := $(KERNEL_IPKG)
-
-$(eval $(call KMOD_template,DIAG,diag,\
-       $(MODULES_DIR)/kernel/drivers/net/diag/diag.o \
-))
-$(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
-       $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
-,CONFIG_WL))
 $(eval $(call KMOD_template,B44,b44,\
        $(MODULES_DIR)/kernel/drivers/net/b44.o \
 ,CONFIG_B44))
-$(eval $(call KMOD_template,BRCM_ET,brcm-et,\
-       $(MODULES_DIR)/kernel/drivers/net/et/et.o \
-,CONFIG_ET))
 $(eval $(call KMOD_template,ARPT,arptables,\
        $(MODULES_DIR)/kernel/net/ipv4/netfilter/arp*.o \
 ,CONFIG_IP_NF_ARPTABLES))
index d2490c3a844d31dab6ee1c44509fd040d98a488a..a9ea7f5bdc28382c52e616f37b60ed6f72388740 100644 (file)
@@ -5,6 +5,18 @@
 #
 #############################################################
 
+# broadcom specific kmod packages
+$(eval $(call KMOD_template,DIAG,diag,\
+       $(MODULES_DIR)/kernel/drivers/net/diag/diag.o \
+))
+$(eval $(call KMOD_template,BRCM_WL,brcm-wl,\
+       $(MODULES_DIR)/kernel/drivers/net/wl/wl.o \
+,CONFIG_WL))
+$(eval $(call KMOD_template,BRCM_ET,brcm-et,\
+       $(MODULES_DIR)/kernel/drivers/net/et/et.o \
+,CONFIG_ET))
+
+
 LINUX_BINARY_DRIVER_SITE=http://openwrt.org/downloads/
 
 # proprietary driver, extracted from asus GPL sourcetree GPL_1941.zip