[kernel] refresh generic-2.4 patches
[openwrt.git] / target / linux / generic-2.4 / patches / 051-remove_pcmcia_modinst_compat.patch
1 Index: linux-2.4.35.4/Makefile
2 ===================================================================
3 --- linux-2.4.35.4.orig/Makefile
4 +++ linux-2.4.35.4/Makefile
5 @@ -428,18 +428,9 @@ else
6  depmod_opts    := -b $(INSTALL_MOD_PATH) -r
7  endif
8  .PHONY: _modinst_post
9 -_modinst_post: _modinst_post_pcmcia
10 +_modinst_post:
11         if [ -r System.map ]; then $(DEPMOD) -ae -F System.map $(depmod_opts) $(KERNELRELEASE); fi
12  
13 -# Backwards compatibilty symlinks for people still using old versions
14 -# of pcmcia-cs with hard coded pathnames on insmod.  Remove
15 -# _modinst_post_pcmcia for kernel 2.4.1.
16 -.PHONY: _modinst_post_pcmcia
17 -_modinst_post_pcmcia:
18 -       cd $(MODLIB); \
19 -       mkdir -p pcmcia; \
20 -       find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
21 -
22  .PHONY: $(patsubst %, _modinst_%, $(SUBDIRS))
23  $(patsubst %, _modinst_%, $(SUBDIRS)) :
24         $(MAKE) -C $(patsubst _modinst_%, %, $@) modules_install