summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rw-r--r--make/busybox.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/make/busybox.mk b/make/busybox.mk
index 36c0c41fc..f12fa5bc7 100644
--- a/make/busybox.mk
+++ b/make/busybox.mk
@@ -23,18 +23,24 @@ $(DL_DIR)/$(BUSYBOX_SOURCE):
busybox-source: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_PATCH)
-$(BUSYBOX_DIR)/Config.h: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_PATCH)
+$(BUSYBOX_DIR)/.unpacked: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_PATCH)
$(BUSYBOX_UNZIP) $(DL_DIR)/$(BUSYBOX_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ touch $(BUSYBOX_DIR)/.unpacked
+
+$(BUSYBOX_DIR)/.patched: $(BUSYBOX_DIR)/.unpacked
cat $(BUSYBOX_PATCH) | patch -d $(BUSYBOX_DIR) -p1
ifeq ($(strip $(BUILD_WITH_LARGEFILE)),true)
perl -i -p -e "s/^DOLFS.*/DOLFS=true/;" $(BUSYBOX_DIR)/Makefile
endif
+ touch $(BUSYBOX_DIR)/.patched
-$(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/Config.h
+$(BUSYBOX_DIR)/busybox: $(BUSYBOX_DIR)/.patched
make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(BUSYBOX_DIR)
+ touch $(BUSYBOX_DIR)/busybox
$(TARGET_DIR)/bin/busybox: $(BUSYBOX_DIR)/busybox
make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(BUSYBOX_DIR) install
+ cp -a $(BUSYBOX_DIR)/busybox $(TARGET_DIR)/bin/busybox
busybox: uclibc $(TARGET_DIR)/bin/busybox