tce-load -i compiletc sstrip

cd busybox-1.31.1

patch -Np0 -i ../busybox-1.24.1_tc_depmod.patch
patch -Np1 -i ../busybox-1.27.1-wget-make-default-timeout-configurable.patch
patch -Np1 -i ../busybox-1.29.3_root_path.patch

patch -Rp1 -i ../busybox-1.31.1_use_loop-control_if_exists.patch

cp busybox-1.31.1_config.suid .config

make oldconfig

make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" [0m 19.15s]

mkdir /tmp/pkg

sudo make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" CONFIG_PREFIX=/tmp/pkg install

sudo mv /tmp/pkg/bin/busybox /tmp/pkg/bin/busybox.suid

make your busybox binary setuid root

cp busybox-1.25.1_config.nosuid .config

make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" [1m 25.13s]

sudo make CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe" CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" CONFIG_PREFIX=/tmp/pkg install
