tce-load -i compiletc liblzma-dev lzo-dev zstd-dev liblz4-dev zlib_base-dev https://github.com/plougher/squashfs-tools/archive/4.4.tar.gz cd squashfs-tools-4.4 cd squashfs-tools patch -N -i '../../squashfs-tools-fix build failure against gcc-10.patch' patch -N -i '../../squashfs-tools_block_size.patch' Edit Makefile XZ_SUPPORT = 1 LZO_SUPPORT = 1 LZ4_SUPPORT = 1 ZSTD_SUPPORT = 1 INSTALL_DIR ?=..... CFLAGS ?= make -j4 CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" \ CXX="g++ -march=armv8-a+crc -mtune=cortex-a53 -Os -pipe -fno-exceptions -fno-rtti" make CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" \ CXX="g++ -march=armv8-a+crc -mtune=cortex-a53 -Os -pipe -fno-exceptions -fno-rtti" \ INSTALL_DIR=/tmp/squashfs-tools/usr/local/bin install EXTNAM=squashfs-tools TMPDIR=/tmp/squashfs-tools # Adjust directory access rigths find $TMPDIR/ -type d | xargs chmod -v 755; # Strip executables find $TMPDIR | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ################################################### # Create base extension in temp dir # ################################################### cd $TMPDIR cd .. mksquashfs $TMPDIR $EXTNAM.tcz cd $TMPDIR find usr -not -type d > $EXTNAM.tcz.list mv ../$EXTNAM.tcz . # Create md5 file md5sum $EXTNAM.tcz > $EXTNAM.tcz.md5.txt # Cleanup temp directory rm -r -f usr