From patchwork Thu Jul 9 17:51:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 241145 List-Id: U-Boot discussion From: joaomarcos.costa at bootlin.com (Joao Marcos Costa) Date: Thu, 9 Jul 2020 19:51:44 +0200 Subject: [PATCH 0/4] Add support for the SquashFS filesystem Message-ID: <20200709175148.17193-1-joaomarcos.costa@bootlin.com> Hello! This series adds support for the SquashFS filesystem. For now, zlib is the only supported compression type. This is my first contribution to U-Boot as well as to a major Open Source project. Best regards, Joao Marcos Costa Joao Marcos Costa (4): fs/squashfs: new filesystem fs/squashfs: add filesystem commands fs/squashfs: add sources for zlib decompression fs/squashfs: add support for zlib decompression cmd/Kconfig | 6 + cmd/Makefile | 1 + cmd/sqfs.c | 43 + common/spl/Kconfig | 9 + fs/Kconfig | 2 + fs/Makefile | 2 + fs/fs.c | 15 + fs/squashfs/Kconfig | 10 + fs/squashfs/Makefile | 7 + fs/squashfs/sqfs.c | 1625 +++++++++++++++++++++++++++++++ fs/squashfs/sqfs_decompressor.c | 53 + fs/squashfs/sqfs_decompressor.h | 58 ++ fs/squashfs/sqfs_dir.c | 107 ++ fs/squashfs/sqfs_filesystem.h | 301 ++++++ fs/squashfs/sqfs_inode.c | 142 +++ fs/squashfs/sqfs_utils.h | 49 + include/fs.h | 13 + include/squashfs.h | 24 + include/u-boot/zlib.h | 32 + lib/zlib/uncompr.c | 93 ++ lib/zlib/zlib.c | 1 + 21 files changed, 2593 insertions(+) create mode 100644 cmd/sqfs.c create mode 100644 fs/squashfs/Kconfig create mode 100644 fs/squashfs/Makefile create mode 100644 fs/squashfs/sqfs.c create mode 100644 fs/squashfs/sqfs_decompressor.c create mode 100644 fs/squashfs/sqfs_decompressor.h create mode 100644 fs/squashfs/sqfs_dir.c create mode 100644 fs/squashfs/sqfs_filesystem.h create mode 100644 fs/squashfs/sqfs_inode.c create mode 100644 fs/squashfs/sqfs_utils.h create mode 100644 include/squashfs.h create mode 100644 lib/zlib/uncompr.c --- 2.17.1