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