#
-# initrd.git/Makefile
+# initrd/Makefile
#
TOPDIR = $(shell pwd)
$(WORK)/busybox-$(BUSYBOX_VERSION).tar.bz2:
wget -P $(WORK) -c $(BUSYBOX_SOURCE)
-$(WORK)/busybox-$(BUSYBOX_VERSION): $(WORK)/busybox-$(BUSYBOX_VERSION).tar.bz2 $(TOPDIR)/busybox-$(BUSYBOX_VERSION).config
+$(WORK)/busybox-$(BUSYBOX_VERSION): $(WORK)/busybox-$(BUSYBOX_VERSION).tar.bz2 $(TOPDIR)/busybox-$(BUSYBOX_VERSION).config $(WORK)/fix-resource_header.patch
tar -C $(WORK) -xvjf $(WORK)/busybox-$(BUSYBOX_VERSION).tar.bz2
cd $(WORK)/busybox-$(BUSYBOX_VERSION) && \
patch -p1 -i $(WORK)/fix-resource_header.patch
initrd: $(WORK)/initrd.gz
initrd-clean: check-root
- rm -vf $(WORK)/initrd.gz
+ rm -vf $(WORK)/initrd.gz $(WORK)/mnt
initrd-distclean: initrd-clean