In #27, we updated littlefs to a patched version that backports a change
from littlefs v2.11 (filesystem shrinking) and adds a feature that has
not been merged upstream yet (config flag to disable block count check
on mount). To be able to cut a new release without rolling out these
changes to all users, this patch adds the new unstable-littlefs-patched
feature that enables these changes.
Upstream PR: https://github.com/littlefs-project/littlefs/pull/584 introduced a check
that the block count matches the superblock.
However that can cause some issues for filesystem that were formatted with a wrong block count
and later corrected.
During rebasing of https://github.com/trussed-dev/littlefs2-sys/pull/19,
the line that enables the LFS_MULTIVERSION feature flag not only for the
compilation but also for the code generation somehow got lost. This
patch updates the build script and prepares the bugfix release v0.3.1.
This patch:
- Bumps the littlefs version to the latest released (v2.9.3)
- Adds a "multiversion" feature flag that exposes the littlefs feature
of the same name
- Patch lfs.h before building to avoid errors from clang failing to find
the string.h header (this step is not required for the compilation
because compilation is done through gcc by default)