summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/kmod-ipv6.mk
diff options
context:
space:
mode:
Diffstat (limited to 'obsolete-buildroot/make/kmod-ipv6.mk')
-rw-r--r--obsolete-buildroot/make/kmod-ipv6.mk19
1 files changed, 4 insertions, 15 deletions
diff --git a/obsolete-buildroot/make/kmod-ipv6.mk b/obsolete-buildroot/make/kmod-ipv6.mk
index 62c7b27..ce7959e 100644
--- a/obsolete-buildroot/make/kmod-ipv6.mk
+++ b/obsolete-buildroot/make/kmod-ipv6.mk
@@ -1,15 +1,4 @@
-KMOD-IPV6:=kmod-ipv6
-KMOD-IPV6_IPK:=$(KMOD-IPV6)_2.4.20-1_mipsel.ipk
-KMOD-IPV6_IPK_DIR:=$(BUILD_DIR)/$(KMOD-IPV6)-2.4.20-ipk
-
-$(BUILD_DIR)/$(KMOD-IPV6_IPK):
- mkdir -p $(KMOD-IPV6_IPK_DIR)/CONTROL
- mkdir -p $(KMOD-IPV6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6
- install -m 644 $(OPENWRT_IPK_DIR)/$(KMOD-IPV6)/$(KMOD-IPV6).control $(KMOD-IPV6_IPK_DIR)/CONTROL/control
- install -m 644 $(BUILD_DIR)/linux/modules/lib/modules/2.4.20/kernel/net/ipv6/ipv6.o $(KMOD-IPV6_IPK_DIR)/lib/modules/2.4.20/kernel/net/ipv6
- cd $(BUILD_DIR); $(STAGING_DIR)/bin/ipkg-build -c -o root -g root $(KMOD-IPV6_IPK_DIR)
-
-kmod-ipv6-ipk: $(BUILD_DIR)/$(KMOD-IPV6_IPK)
-
-kmod-ipv6-distclean:
- rm -rf $(KMOD-IPV6_IPK_DIR)
+kmod-ipv6-ipk: ipkg-utils $(OPENWRT_IPK_DIR)/kmod-ipv6/CONTROL/*
+ chmod a+x $(OPENWRT_IPK_DIR)/kmod-ipv6/CONTROL/rules
+ cd $(OPENWRT_IPK_DIR)/kmod-ipv6 ; $(IPKG_BUILDPACKAGE)
+ mv $(OPENWRT_IPK_DIR)/kmod-ipv6_*.ipk $(BUILD_DIR) \ No newline at end of file