athoune / resurrected-make-ext4fs

Build make_ext4fs in a container
MIT License
0 stars 0 forks source link

Resurrected make_ext4fs

For Android 7, Google explored deterministic file system creation. This day, Android used ext4 (the mainstream Linux file system), and provide make_ext4fs. Recent Android version use F2FS, a file system conceived for flash storage, not plain rotating disks storage.

Recent Android use bazel, making code reusing harder, and make_ext4fs vanished.

Some forks appears, and OpenWRT's fork has also fresh patches.

Flavors

Debian package

Debian 8 did a tedious work of packaging android tools, dispatched in lots of packages. Ascendent compatibility has real meaning with Debian packaging : it's possible to rebuild this package done for Debian 8, in a Debian 12.

OpenWRT fork

OpenWRT eradicate all dependencies and boring stuffs. The project is now a bunch of C file, handled by a plain old Makefile. The unique dependency is zlib, and you can statically linked it. Even glibc is not a dependency, you can use musl.

Build it

Here is two Dockerfiles to build make_ext4fs.

# git, make, and that's all
make build-openwrt
# The Debian danse for build the old package and installing it
make build-debian
# You can fetch built debian packages
make deb