fix unnecessary kernel rebuild
[openwrt.git] / target / linux / image / squashfs.mk
index abc58da..184330c 100644 (file)
@@ -4,25 +4,25 @@ else
 endian := be
 endif
 
-squashfs-prepare:
+squashfs-prepare: FORCE
        $(MAKE) -C squashfs prepare
 
 squashfs-compile: prepare-targets
        $(MAKE) -C squashfs compile
        
-squashfs-clean:
+squashfs-clean: FORCE
        $(MAKE) -C squashfs clean
        rm -f $(KDIR)/root.squashfs
 
 $(KDIR)/root.squashfs: install-prepare
-       @mkdir -p $(KDIR)/root/jffs
-       $(STAGING_DIR)/bin/mksquashfs-lzma $(KDIR)/root $@ -nopad -noappend -root-owned -$(endian)
+       @mkdir -p $(BUILD_DIR)/root/jffs
+       $(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $@ -nopad -noappend -root-owned -$(endian)
        
 ifeq ($(IB),)
 squashfs-install: compile-targets $(BOARD)-compile
 endif
 
-squashfs-install: $(KDIR)/root.squashfs
+squashfs-install: $(KDIR)/root.squashfs FORCE
        $(MAKE) -C $(BOARD) install KERNEL="$(KERNEL)" FS="squashfs"
 
 squashfs-install-ib: compile-targets
This page took 0.02179 seconds and 4 git commands to generate.