hackclub / sprig

🍃 Learn to code by making games in a JavaScript web-based game editor.

Home Page:https://sprig.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Spade is missing rp2-toolchain.cmake to compile jerryscript for pico.

recursiveforte opened this issue · comments

Describe the bug
The jerryscript build script for the rpi pico relies on rp2-toolchain.cmake. This is not in the repo.
image

Trying to build jerryscript for rpi pico (by running sh ./src/rpi/jerry/refresh.sh) will fail, as the toolchain file does not exist. Currently, Spade has compiled jerryscript binaries in the repo that need this script to recompile with.

I reached out to Ced regarding this. He doesn't have the file, so we'll have to create it ourselves.
Simply taking the cmake toolchain files from the pico-sdk repo doesn't work; it throws an error about nanosleep not being defined in the pico-sdk's time.h:
Screenshot 2024-04-24 at 15 17 40

hackily fixed by #1618