Skip to content

Instantly share code, notes, and snippets.

@zwhitchcox
Created September 2, 2022 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zwhitchcox/7fe9e9b4f60a021e378938f592dd5284 to your computer and use it in GitHub Desktop.
Save zwhitchcox/7fe9e9b4f60a021e378938f592dd5284 to your computer and use it in GitHub Desktop.
build e2fsprogs
make clean
emconfigure ./configure --host=x86_64-gnu-linux --prefix=$(readlink -f prefix) --disable-imager --disable-defrag --disable-tls --disable-uuidd --disable-mmp --disable-tdb --disable-bmap-stats --disable-nls --disable-fuse2fs --disable-fsck --disable-libuuid --without-pthread CFLAGS=""
cp -f ../e2fsprogs/lib/ext2fs/gen_crc32ctable ./lib/ext2fs/gen_crc32ctable
cp -f ../e2fsprogs/util/subst ./util/subst
chmod +x ./util/subst
emmake make
echo 'resize2fs.js: $(RESIZE_OBJS) $(DEPLIBS)
$(E) " LD $@"
$(Q) $(CC) $(ALL_LDFLAGS) -o resize2fs.js -sNODERAWFS=1 -gsource-map $(RESIZE_OBJS) $(LIBS)' >> resize/Makefile
cd resize
emmake make PROGS=resize2fs.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment