Openwrt/openwrt/target/linux/image/squashfs.mk

23 lines
593 B
Makefile
Raw Normal View History

ifneq ($(CONFIG_BIG_ENDIAN),y)
ENDIAN := le
else
ENDIAN := be
endif
$(STAGING_DIR)/bin/mksquashfs-lzma:
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs compile
2005-06-11 21:18:26 +00:00
squashfs-clean: FORCE
$(MAKE) -C $(TOPDIR)/target/linux/image/squashfs clean
2005-06-11 21:18:26 +00:00
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
2005-06-11 21:18:26 +00:00
FILESYSTEMS += squashfs
compile-targets: $(STAGING_DIR)/bin/mksquashfs-lzma
clean-targets: squashfs-clean