summaryrefslogtreecommitdiffstats
path: root/openwrt/target/linux/linux-2.4/Makefile
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-22 13:56:53 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-22 13:56:53 +0000
commitfed8b1e84bd45c6ae226102021e3b982acb07be6 (patch)
treedb2696925421abb1175a9e3c64e7dd4a92ea4b80 /openwrt/target/linux/linux-2.4/Makefile
parente5188ccee2e64dd02c123e101b47438146b1b58f (diff)
fix atm driver build, fix static build of sched and crypto stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1724 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/target/linux/linux-2.4/Makefile')
-rw-r--r--openwrt/target/linux/linux-2.4/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/openwrt/target/linux/linux-2.4/Makefile b/openwrt/target/linux/linux-2.4/Makefile
index afff6c11f..71b8420f5 100644
--- a/openwrt/target/linux/linux-2.4/Makefile
+++ b/openwrt/target/linux/linux-2.4/Makefile
@@ -142,9 +142,12 @@ $(eval $(call KMOD_template,VFAT,vfat,\
$(MODULES_DIR)/kernel/fs/vfat/vfat.o \
$(MODULES_DIR)/kernel/fs/fat/fat.o \
,CONFIG_VFAT_FS,,30,fat vfat))
+ifneq (${shell ls $(MODULES_DIR)/kernel/crypto/*.o},)
+CONFIG_CRYPTO:=m
+endif
$(eval $(call KMOD_template,CRYPTO,crypto,\
$(MODULES_DIR)/kernel/crypto/*.o \
-))
+,CONFIG_CRYPTO))
$(eval $(call KMOD_template,PPP,ppp,\
$(MODULES_DIR)/kernel/drivers/net/ppp_async.o \
$(MODULES_DIR)/kernel/drivers/net/ppp_generic.o \
@@ -163,9 +166,12 @@ $(eval $(call KMOD_template,TUN,tun,\
$(eval $(call KMOD_template,GRE,gre,\
$(MODULES_DIR)/kernel/net/ipv4/ip_gre.o \
,CONFIG_NET_IPGRE))
+ifneq (${shell ls $(MODULES_DIR)/kernel/net/sched/*.o},)
+CONFIG_SCHED:=m
+endif
$(eval $(call KMOD_template,SCHED,sched,\
$(MODULES_DIR)/kernel/net/sched/*.o \
-))
+,CONFIG_SCHED))
$(eval $(call KMOD_template,VIDEODEV,videodev,\
$(MODULES_DIR)/kernel/drivers/media/video/videodev.o \
,CONFIG_VIDEO_DEV))