Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,28 @@ The low-level emulator APIs are expsed to the web app presentation layer via a T

</div>

## How to build

Before building, you must have installed those dependencies:
- node
- texinfo
- emsdk
- musl-gcc
- make
- gcc
- flex
- bison

then you can run the individual scripts to build the dependencies needed for the webapp:
- `init_blink.sh`
- `compile_blink.sh`
- `compile_musl_binutils.sh`
- `compile_musl_nasm.sh`

Finally you can build the web application by going in the `webapp` folder and running:
- `npm i`
- `npm run build`


## Licenses

Expand Down
7 changes: 3 additions & 4 deletions compile_musl_binutils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ CC=musl-gcc CFLAGS="-O3 -static --static -static-libgcc -static-libstdc++" CXXFL
#---------------------
make all
strip --strip-unneeded gas/as-new
strip --strip-unneeded gas/ld-new
strip --strip-unneeded ld/ld-new

#---------------------
# copy as and ld in
# the web assets folder
#---------------------
cp gas/as-new ../webapp/src/assets/assemblers/gnu-as.elf
cp ld/ld-new ../webapp/src/assets/assemblers/gnu-ld.elf

cp gas/as-new ../../webapp/src/assets/assemblers/gnu-as.elf
cp ld/ld-new ../../webapp/src/assets/assemblers/gnu-ld.elf
2 changes: 1 addition & 1 deletion init_blink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exported_runtime_methods=(
# Convert the array into a comma-separated string
exported_runtime_methods_str=$(IFS=,; echo "${exported_runtime_methods[*]}")
emscripten_flags="\
-sENVIRONMENT=web \
-sENVIRONMENT=web,node \
-sALLOW_MEMORY_GROWTH=1 \
-sALLOW_TABLE_GROWTH=1 \
-sEXIT_RUNTIME=0 \
Expand Down