config BR2_PACKAGE_SQUASHFS
	bool "squashfs"
	depends on BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU # fork()
	# ensure at least on compression backend (defaults to gzip)
	select BR2_PACKAGE_SQUASHFS_GZIP if !( \
	       BR2_PACKAGE_SQUASHFS_LZ4 || \
	       BR2_PACKAGE_SQUASHFS_LZMA || \
	       BR2_PACKAGE_SQUASHFS_LZO || \
	       BR2_PACKAGE_SQUASHFS_XZ || \
	       BR2_PACKAGE_SQUASHFS_ZSTD)
	help
	  Tools to generate SquashFS filesystems.

	  https://github.com/plougher/squashfs-tools

if BR2_PACKAGE_SQUASHFS

config BR2_PACKAGE_SQUASHFS_GZIP
	bool "gzip support"
	default y
	select BR2_PACKAGE_ZLIB
	help
	  Support GZIP compression algorithm

config BR2_PACKAGE_SQUASHFS_LZ4
	bool "lz4 support"
	select BR2_PACKAGE_LZ4
	help
	  Support LZ4 compression algorithm

config BR2_PACKAGE_SQUASHFS_LZMA
	bool "lzma support"
	select BR2_PACKAGE_XZ
	help
	  Support LZMA compression algorithm

config BR2_PACKAGE_SQUASHFS_LZO
	bool "lzo support"
	select BR2_PACKAGE_LZO
	help
	  Support LZO compression algorithm

config BR2_PACKAGE_SQUASHFS_XZ
	bool "xz support"
	select BR2_PACKAGE_XZ
	help
	  Support XZ compression algorithm

config BR2_PACKAGE_SQUASHFS_ZSTD
	bool "zstd support"
	select BR2_PACKAGE_ZSTD
	help
	  Support ZSTD compression algorithm

endif

comment "squashfs needs a toolchain w/ threads"
	depends on !BR2_TOOLCHAIN_HAS_THREADS
	depends on BR2_USE_MMU
