I wasn't able to build anything with your script (maybe something different in toolchain), but I was able to build executable that works! (And yes, I wasn't able to create proper Makefile, so building manually)
Thank you!
Next point is to compile something like htop.
And figure out hot to properly rebuild rootfs squashfs or connect overlayfs.