2006-05-30 22:38:38 +03:00
|
|
|
ifneq ($(CONFIG_BIG_ENDIAN),y)
|
2006-06-05 00:57:59 +03:00
|
|
|
ENDIAN := le
|
2006-05-30 22:38:38 +03:00
|
|
|
else
|
2006-06-05 00:57:59 +03:00
|
|
|
ENDIAN := be
|
2006-01-11 04:55:09 +02:00
|
|
|
endif
|
2006-01-09 18:03:36 +02:00
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
$(STAGING_DIR)/bin/mksquashfs-lzma:
|
|
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
|
2005-06-12 00:18:26 +03:00
|
|
|
|
2006-06-01 02:29:05 +03:00
|
|
|
squashfs-clean: FORCE
|
2006-06-05 00:57:59 +03:00
|
|
|
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs clean
|
2005-06-12 00:18:26 +03:00
|
|
|
rm -f $(KDIR)/root.squashfs
|
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
define Image/mkfs/squashfs
|
2006-05-31 23:14:08 +03:00
|
|
|
@mkdir -p $(BUILD_DIR)/root/jffs
|
2006-06-05 00:57:59 +03:00
|
|
|
$(STAGING_DIR)/bin/mksquashfs-lzma $(BUILD_DIR)/root $(KDIR)/root.squashfs -nopad -noappend -root-owned -$(ENDIAN)
|
|
|
|
$(call Image/Build,squashfs)
|
|
|
|
endef
|
2005-06-12 00:18:26 +03:00
|
|
|
|
2006-06-05 00:57:59 +03:00
|
|
|
FILESYSTEMS += squashfs
|
|
|
|
compile-targets: $(STAGING_DIR)/bin/mksquashfs-lzma
|
|
|
|
clean-targets: squashfs-clean
|