Andrew, I am working on megapile_8 today (that is a fun name).
$ git am --whitespace=fix megapile_8/*
Question? we already decided on blds/termux.bld and added that awhile back.  So now why abandon that and add  "termux_dyn.sh" instead as in patch:  0047-Dynamic-termux-configure.patch   ??