summaryrefslogtreecommitdiff
path: root/package/kexec/kexec.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/kexec/kexec.mk')
-rw-r--r--package/kexec/kexec.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/kexec/kexec.mk b/package/kexec/kexec.mk
index 9c4ead42b..6d279a1dc 100644
--- a/package/kexec/kexec.mk
+++ b/package/kexec/kexec.mk
@@ -52,15 +52,15 @@ $(KEXEC_DIR)/.configured: $(KEXEC_DIR)/.unpacked
);
touch $@
-$(KEXEC_DIR)/$(KEXEC_BINARY): $(KEXEC_DIR)/.configured
+$(KEXEC_DIR)/objdir-$(GNU_TARGET_NAME)/build/sbin/$(KEXEC_BINARY): $(KEXEC_DIR)/.configured
$(TARGET_CONFIGURE_OPTS) $(MAKE) CC=$(TARGET_CC) -C $(KEXEC_DIR)
- $(STRIP) -s $@
+ touch -c $@
-$(TARGET_DIR)/$(KEXEC_TARGET_BINARY): $(KEXEC_DIR)/$(KEXEC_BINARY)
+$(TARGET_DIR)/$(KEXEC_TARGET_BINARY): $(KEXEC_DIR)/objdir-$(GNU_TARGET_NAME)/build/sbin/$(KEXEC_BINARY)
cp -dpf $(KEXEC_DIR)/objdir-$(GNU_TARGET_NAME)/build/sbin/$(KEXEC_BINARY) \
$(KEXEC_DIR)/objdir-$(GNU_TARGET_NAME)/build/sbin/kdump \
$(TARGET_DIR)/sbin/
- touch -c $@
+ $(STRIP) -s $(TARGET_DIR)/sbin/k{exec,dump}
kexec: uclibc $(TARGET_DIR)/$(KEXEC_TARGET_BINARY)