summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/nfs-modules.mk
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-08-24 23:50:14 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-08-24 23:50:14 +0000
commit097635b79bc6ddd6066a8369db6e298a25daa96e (patch)
treedb8218863c9124ae287832ccd846ad4d96c2e05e /obsolete-buildroot/make/nfs-modules.mk
parent54da0f9e4ba892d2613d4f0d0c4bf4eecdcfd0a4 (diff)
massive changes
- sstrip cleanup from mjn3 - various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@145 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/make/nfs-modules.mk')
-rw-r--r--obsolete-buildroot/make/nfs-modules.mk49
1 files changed, 49 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/nfs-modules.mk b/obsolete-buildroot/make/nfs-modules.mk
new file mode 100644
index 0000000000..f00fe7fb96
--- /dev/null
+++ b/obsolete-buildroot/make/nfs-modules.mk
@@ -0,0 +1,49 @@
+## nfs-modules
+
+NFS_MODULES_VERSION := $(SNAPSHOT)
+NFS_MODULES_RELEASE := 1
+
+NFS_MODULES_BUILD_DIR := $(BUILD_DIR)/nfs-modules_$(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE)
+NFS_MODULES_IPK_DIR := $(OPENWRT_IPK_DIR)/nfs-modules
+NFS_MODULES_IPK := $(NFS_MODULES_BUILD_DIR)_$(ARCH).ipk
+
+
+$(NFS_MODULES_BUILD_DIR)/CONTROL/control: $(BASE_DIR)/openwrt-kmodules.tar.bz2
+ rm -rf $(NFS_MODULES_BUILD_DIR)
+ mkdir -p $(NFS_MODULES_BUILD_DIR)/lib/
+ bzcat $(BASE_DIR)/openwrt-kmodules.tar.bz2 | tar -C $(NFS_MODULES_BUILD_DIR)/lib/ -xvf - \
+ modules/$(LINUX_VERSION)/kernel/fs/lockd/lockd.o \
+ modules/$(LINUX_VERSION)/kernel/fs/nfs/nfs.o \
+ modules/$(LINUX_VERSION)/kernel/net/sunrpc/sunrpc.o
+ mv -f \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/lockd/*.o \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
+ mv -f \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/fs/nfs/*.o \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
+ mv -f \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel/net/sunrpc/*.o \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/
+ rm -rf \
+ $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/kernel
+ chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib
+ chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules
+ chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)
+ chmod 0755 $(NFS_MODULES_BUILD_DIR)/lib/modules/$(LINUX_VERSION)/*
+ cp -a $(NFS_MODULES_IPK_DIR)/CONTROL $(NFS_MODULES_BUILD_DIR)/
+ perl -pi -e "s/^Vers.*:.*$$/Version: $(NFS_MODULES_VERSION)-$(NFS_MODULES_RELEASE)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control
+ perl -pi -e "s/^Arch.*:.*$$/Architecture: $(ARCH)/" $(NFS_MODULES_BUILD_DIR)/CONTROL/control
+
+ touch $(NFS_MODULES_BUILD_DIR)/CONTROL/control
+
+
+$(NFS_MODULES_IPK): $(NFS_MODULES_BUILD_DIR)/CONTROL/control
+ cd $(BUILD_DIR); $(IPKG_BUILD) $(NFS_MODULES_BUILD_DIR)
+
+
+nfs-modules-ipk: ipkg-utils $(NFS_MODULES_IPK)
+
+nfs-modules-clean:
+ rm -rf $(NFS_MODULES_IPK)
+ rm -rf $(NFS_MODULES_BUILD_DIR)
+