fix the jffs2 build for separate 4M/8M images
[openwrt.git] / openwrt / target / squashfs-lzma / squashfslzmaroot.mk
index 6f41f93..1aa80e0 100644 (file)
@@ -39,7 +39,8 @@ squashfslzma-dirclean:
 squashfslzmaroot: squashfslzma
        @rm -rf $(TARGET_DIR)/usr/man
        @rm -rf $(TARGET_DIR)/usr/info
-       $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma $(TARGET_DIR) $(IMAGE).squashfslzma -noappend -root-owned -le
+       $(SQUASHFSLZMA_DIR)/squashfs-tools/mksquashfs-lzma \
+       $(TARGET_DIR) $(IMAGE).squashfslzma -noappend -root-owned -le
 
 squashfslzmaroot-source: squashfslzma-source
 
@@ -48,3 +49,14 @@ squashfslzmaroot-clean:
 
 squashfslzmaroot-dirclean:
        rm -rf $(SQUASHFSLZMA_DIR)
+
+ifeq ($(strip $(BR2_TARGET_ROOTFS_SQUASHFS_LZMA)),y)
+TARGETS+=squashfslzmaroot openwrt-image
+ROOTFS=squashfslzma
+
+openwrt-image:  openwrt
+       @make openwrt-code.bin TAG=W54G \
+       EXTRAVERSION=$(EXTRAVERSION)-SQUASHFSLZMA
+       @make openwrt-code.bin TAG=W54S \
+       EXTRAVERSION=$(EXTRAVERSION)-SQUASHFSLZMA
+endif
This page took 0.019677 seconds and 4 git commands to generate.