summaryrefslogtreecommitdiff
path: root/target/linux/image/squashfs.mk
blob: 6890daec680b5df6ce9e854fc4f67b69af5d6760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ifneq ($(CONFIG_BIG_ENDIAN),y)
ENDIAN := le
else
ENDIAN := be
endif

$(STAGING_DIR)/bin/mksquashfs-lzma:
	$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
	
squashfs-clean: FORCE
	$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs clean
	rm -f $(KDIR)/root.squashfs

define Image/mkfs/squashfs
	@mkdir -p $(BUILD_DIR)/root/jffs
	$(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $(KDIR)/root.squashfs -nopad -noappend -root-owned -$(ENDIAN)
	$(call Image/Build,squashfs)
endef

FILESYSTEMS += squashfs
compile-targets: $(STAGING_DIR)/bin/mksquashfs-lzma
clean-targets: squashfs-clean