All forked code is here:
https://github.com/thelamer/retrostash
We build these cores using emsdk 3.1.46.
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install 3.1.46
./emsdk activate 3.1.46
Follow instructions for sourcing paths to shell
git clone https://github.com/thelamer/retrostash.git
cd retrostash/libretro-fceumm
emmake make -f Makefile -j6 platform=emscripten
cd ../Retroarch/dist-scripts
cp ../../libretro-fceumm/fceumm_libretro_emscripten.bc .
emmake ./dist-cores.sh emscripten
Resulting build output will be in ../pkg/emscripten
.
Built at commit 1efc0309b65ce77ad5121a6c5f329ad9e26a6ded before breaking filestream changes. Slight makefile tweaks for static chd support:
Need to swap the static linking include in Makefile.common
Forked here also https://github.com/thelamer/beetle-psx-libretro
Tweaks for memory limits.