distclean: clean
-$(WORK)/uImage: $(MKIMAGE) $(ZIMAGE)
+$(WORK):
+ install -d $(WORK)
+
+$(WORK)/uImage: $(WORK) $(MKIMAGE) $(ZIMAGE)
$(MKIMAGE) -A arm -O linux -a 0x90008000 -e 0x90008000 \
-T kernel -C none -n "Linux-2.6.31.14.22-efikamx" \
-d $(ZIMAGE) $(WORK)/uImage
uImage-clean:
rm -f $(WORK)/uImage
-$(WORK)/boot.scr: $(MKIMAGE) $(BOOTSCRIPT)
+$(WORK)/boot.scr: $(WORK) $(MKIMAGE) $(BOOTSCRIPT)
$(MKIMAGE) -A arm -O linux -a 0 -e 0 \
-T script -C none -n "EfikaMX Boot Script" \
-d $(BOOTSCRIPT) $(WORK)/boot.scr
bootscr-clean:
rm -f $(WORK)/boot.scr
-$(WORK)/uInitrd: $(MKIMAGE) $(INITRDGZ)
+$(WORK)/uInitrd: $(WORK) $(MKIMAGE) $(INITRDGZ)
$(MKIMAGE) -A arm -O linux -a 0 -e 0 \
-T ramdisk -C none -n "CRUX-ARM Initrd Image" \
-d $(INITRDGZ) $(WORK)/uInitrd