add global make download target
[openwrt.git] / target / linux / image / squashfs.mk
1 ifneq ($(CONFIG_BIG_ENDIAN),y)
2 ENDIAN := le
3 else
4 ENDIAN := be
5 endif
6
7 squashfs-source: FORCE
8         $(MAKE) -C $(TOPDIR)/target/linux/image/squashfs source
9
10 $(STAGING_DIR)/bin/mksquashfs-lzma:
11         $(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
12         
13 squashfs-clean: FORCE
14         $(MAKE) -C $(TOPDIR)/target/linux/image/squashfs clean
15         rm -f $(KDIR)/root.squashfs
16
17 define Image/mkfs/squashfs
18         @mkdir -p $(BUILD_DIR)/root/jffs
19         $(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $(KDIR)/root.squashfs -nopad -noappend -root-owned -$(ENDIAN)
20         $(call Image/Build,squashfs)
21 endef
22
23 FILESYSTEMS += squashfs
24 compile-targets: $(STAGING_DIR)/bin/mksquashfs-lzma
25 clean-targets: squashfs-clean