tce-load -i compiletc wget https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-30.tar.xz cd kmod-30 CC="gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --sysconfdir=/etc --with-zlib [--with-openssl --with-xz --with-zstd] find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [0m 24.12s] make install for target in depmod insmod modinfo modprobe rmmod; do ln -sfv /usr/local/bin/kmod /usr/local/sbin/$target done ln -sfv kmod /usr/local/bin/lsmod libkmod 130.85kb kmod 131.16kb kmod 30 ======= prefix: /usr/local sysconfdir: /etc libdir: ${exec_prefix}/lib rootlibdir: ${exec_prefix}/lib includedir: ${prefix}/include bindir: ${exec_prefix}/bin Bash completions dir: ${datarootdir}/bash-completion/completions compiler: gcc -flto -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe cflags: -pipe -DANOTHER_BRICK_IN_THE -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=3 -Wwrite-strings -Wno-long-long -Wno-overlength-strings -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wnested-externs -Wchar-subscripts -Wtype-limits -Wuninitialized -fno-common -fdiagnostics-show-option -fvisibility=hidden -ffunction-sections -fdata-sections -g -O2 ldflags: -Wl,--as-needed -Wl,--no-undefined -Wl,--gc-sections experimental features: no tools: yes python bindings: no logging: yes compression: zstd=no xz=no zlib=yes debug: no coverage: no doc: no man: yes test-modules: yes features: -ZSTD -XZ +ZLIB -LIBCRYPTO -EXPERIMENTAL