f00fe7fb9665d003bd95787bb976fb72007eabce
[openwrt.git] / obsolete-buildroot / make / nfs-modules.mk
1 ## nfs-modules
2
3 NFS_MODULES_VERSION := $(SNAPSHOT)
4 NFS_MODULES_RELEASE := 1
5
6 NFS_MODULES_BUILD_DIR := $(BUILD_DIR)/nfs-modules_$(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE)
7 NFS_MODULES_IPK_DIR := $(OPENWRT_IPK_DIR)/nfs-modules
8 NFS_MODULES_IPK := $(NFS_MODULES_BUILD_DIR)_$(ARCH).ipk
9
10
11 $(NFS_MODULES_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2
12 rm -rf $(NFS_MODULES_BUILD_DIR)
13 mkdir -p $(NFS_MODULES_BUILD_DIR)/lib/
14 bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(NFS_MODULES_BUILD_DIR)/lib/ -xvf - \
15 modules/$(LINUX_VERSION)/kernel/fs/lockd/lockd.o \
16 modules/$(LINUX_VERSION)/kernel/fs/nfs/nfs.o \
17 modules/$(LINUX_VERSION)/kernel/net/sunrpc/sunrpc.o
18 mv -f \
19 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/lockd/*.o \
20 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
21 mv -f \
22 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/nfs/*.o \
23 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
24 mv -f \
25 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/net/sunrpc/*.o \
26 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
27 rm -rf \
28 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel
29 chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib
30 chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules
31 chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)
32 chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/*
33 cp -a $(NFS_MODULES_IPK_DIR)/CONTROL $(NFS_MODULES_BUILD_DIR)/
34 perl -pi -e "s/^Vers.*:.*$$/Version: $(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control
35 perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control
36
37 touch $(NFS_MODULES_BUILD_DIR)/CONTROL/control
38
39
40 $(NFS_MODULES_IPK): $(NFS_MODULES_BUILD_DIR)/CONTROL/control
41 cd $(BUILD_DIR); $(IPKG_BUILD) $(NFS_MODULES_BUILD_DIR)
42
43
44 nfs-modules-ipk: ipkg-utils $(NFS_MODULES_IPK)
45
46 nfs-modules-clean:
47 rm -rf $(NFS_MODULES_IPK)
48 rm -rf $(NFS_MODULES_BUILD_DIR)
49
This page took 0.040795 seconds and 3 git commands to generate.