Skip to content

Commit

Permalink
make jerryscript compilable with pico (& compile by default) (#1618)
Browse files Browse the repository at this point in the history
* switch docker to Alpine

* make jerryscript compile-able with pico (& compile by default)

* Update importBuildRepos.sh
  • Loading branch information
recursiveforte authored Apr 26, 2024
1 parent a41e615 commit 5325168
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 1,131 deletions.
3 changes: 3 additions & 0 deletions firmware/spade/docker/buildScript.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cd ~/spade
./src/pc/jerry/refresh.sh

cd ~/spade
./src/rpi/jerry/refresh.sh

touch game.js

mkdir -p src/build
Expand Down
5 changes: 2 additions & 3 deletions firmware/spade/docker/importBuildRepos.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
mkdir ~/jerryscript_build
cd ~/jerryscript_build
git clone https://github.com/jerryscript-project/jerryscript.git
git clone https://github.com/hackclub/jerryscript-pico.git jerryscript
cd jerryscript
git checkout 8ba0d1b6ee5a065a42f3b306771ad8e3c0d819bc # version 2.4.0

mkdir ~/raspberrypi
cd ~/raspberrypi
Expand All @@ -12,4 +11,4 @@ cd pico-sdk
git checkout 7070d230c0cdf1add83fa86b6832b47b2da47788
git submodule update --init
cd ../pico-extras
git submodule update --init
git submodule update --init
2 changes: 1 addition & 1 deletion firmware/spade/src/rpi/jerry/include/jerryscript-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

// Generated differences from default by CMake based on build options:
#define JERRY_ERROR_MESSAGES 1
#define JERRY_GLOBAL_HEAP_SIZE 202
#define JERRY_GLOBAL_HEAP_SIZE 190
#define JERRY_GC_LIMIT (0)
#define JERRY_LINE_INFO 1
#define JERRY_LOGGING 1
Expand Down
48 changes: 0 additions & 48 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/handlers.h

This file was deleted.

34 changes: 0 additions & 34 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/print.h

This file was deleted.

91 changes: 0 additions & 91 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/properties.h

This file was deleted.

27 changes: 0 additions & 27 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/repl.h

This file was deleted.

31 changes: 0 additions & 31 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/sources.h

This file was deleted.

27 changes: 0 additions & 27 deletions firmware/spade/src/rpi/jerry/include/jerryscript-ext/test262.h

This file was deleted.

Loading

0 comments on commit 5325168

Please sign in to comment.