summaryrefslogtreecommitdiff
path: root/package/mdadm
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-18 19:55:14 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-04-18 19:55:14 +0000
commit8159d76b8095c454b8c9db0d49a24096839d884f (patch)
tree1baa274943f7aa865e1d60dde88f37f92774b548 /package/mdadm
parent6bb75e43a42cddfa0a9e6e001d8d0224f124a64a (diff)
- it helps to apply the patches.. ;)
- mdadm-clean tried to uninstall mdadm from the host, which may not be what was intended in the end
Diffstat (limited to 'package/mdadm')
-rw-r--r--package/mdadm/mdadm.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/mdadm/mdadm.mk b/package/mdadm/mdadm.mk
index abcdac601..da883358a 100644
--- a/package/mdadm/mdadm.mk
+++ b/package/mdadm/mdadm.mk
@@ -14,23 +14,25 @@ MDADM_TARGET_BINARY:=sbin/mdadm
$(DL_DIR)/$(MDADM_SOURCE):
$(WGET) -P $(DL_DIR) $(MDADM_SITE)/$(MDADM_SOURCE)
-$(MDADM_DIR)/.source: $(DL_DIR)/$(MDADM_SOURCE)
+$(MDADM_DIR)/.unpacked: $(DL_DIR)/$(MDADM_SOURCE)
$(MDADM_CAT) $(DL_DIR)/$(MDADM_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- touch $(MDADM_DIR)/.source
+ toolchain/patch-kernel.sh $(MDADM_DIR) package/mdadm mdadm-$(MDADM_VERSION)\*.patch
+ touch $@
-$(MDADM_DIR)/$(MDADM_BINARY): $(MDADM_DIR)/.source
+$(MDADM_DIR)/$(MDADM_BINARY): $(MDADM_DIR)/.unpacked
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" CC=$(TARGET_CC) -C $(MDADM_DIR)
$(TARGET_DIR)/$(MDADM_TARGET_BINARY): $(MDADM_DIR)/$(MDADM_BINARY)
$(MAKE) DESTDIR=$(TARGET_DIR) -C $(MDADM_DIR) install
rm -Rf $(TARGET_DIR)/usr/share/man
+ $(STRIP) -s $@
mdadm: uclibc $(TARGET_DIR)/$(MDADM_TARGET_BINARY)
mdadm-source: $(DL_DIR)/$(MDADM_SOURCE)
mdadm-clean:
- $(MAKE) prefix=$(TARGET_DIR)/usr -C $(MDADM_DIR) uninstall
+ $(MAKE) DESTDIR=$(TARGET_DIR) -C $(MDADM_DIR) uninstall
-$(MAKE) -C $(MDADM_DIR) clean
mdadm-dirclean: