From 41b86f4811408dd76bbec1e9f4a89ab922cb6a02 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz Date: Mon, 7 Apr 2025 16:53:12 +0200 Subject: [PATCH] docs: update LICENSE file with more details --- LICENSE | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/LICENSE b/LICENSE index 22704efa..640d8eed 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,30 @@ MIT WITH GPL-3.0-only + +Parts of the DwarFS project are licensed under the MIT license, while others are +licensed under the GPL-3.0 license. In general, the code used to *read* DwarFS +images is licensed under the MIT license, while the code used to *write* DwarFS +images is licensed under the GPL-3.0 license. Also, all testing/benchmarking +code is currently licensed under the GPL-3.0 license. + +That means you can use `mkdwarfs` to create images and then use these images +with only the MIT-licensed code. + +The following libraries and associated header files are licensed under the +MIT license: + +- `dwarfs_common` +- `dwarfs_compressor` +- `dwarfs_decompressor` +- `dwarfs_extractor` +- `dwarfs_reader` + +The following libraries and associated header files are licensed under the +GPL-3.0 license: + +- `dwarfs_rewrite` +- `dwarfs_writer` + +Each header and source file should contain an SPDX identifier near the top +of the file. + +Please also check the licenses of the projects that DwarFS depends on.