File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 46
46
mkdir /tmp/rv32emu-demo
47
47
mv assets/html/index.html /tmp/rv32emu-demo
48
48
mv assets/js/coi-serviceworker.min.js /tmp/rv32emu-demo
49
+ mv build/elf_list.js /tmp/rv32emu-demo
49
50
mv build/rv32emu.js /tmp/rv32emu-demo
50
51
mv build/rv32emu.wasm /tmp/rv32emu-demo
51
52
mv build/rv32emu.worker.js /tmp/rv32emu-demo
63
64
run : |
64
65
mv /tmp/rv32emu-demo/index.html .
65
66
mv /tmp/rv32emu-demo/coi-serviceworker.min.js .
67
+ mv /tmp/rv32emu-demo/elf_list.js .
66
68
mv /tmp/rv32emu-demo/rv32emu.js .
67
69
mv /tmp/rv32emu-demo/rv32emu.wasm .
68
70
mv /tmp/rv32emu-demo/rv32emu.worker.js .
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ EXPORTED_FUNCS := _main,_indirect_rv_halt
7
7
DEMO_DIR := demo
8
8
WEB_FILES := $(BIN ) .js \
9
9
$(BIN ) .wasm \
10
- $(BIN ) .worker.js
10
+ $(BIN ) .worker.js \
11
+ $(OUT ) /elf_list.js
11
12
12
13
ifeq ("$(CC_IS_EMCC ) ", "1")
13
14
BIN := $(BIN ) .js
@@ -37,11 +38,11 @@ CFLAGS_emcc += -sINITIAL_MEMORY=2GB \
37
38
-O3 \
38
39
-w
39
40
40
- $(DEMO_DIR ) /elf_list.js : tools/gen-elf-list-js.py
41
+ $(OUT ) /elf_list.js : tools/gen-elf-list-js.py
41
42
$(Q ) tools/gen-elf-list-js.py > $@
42
43
43
44
# used to download all dependencies of elf executable and bundle into single wasm
44
- deps_emcc += $(DEMO_DIR ) /elf_list.js $(DOOM_DATA ) $(QUAKE_DATA ) $(TIMIDITY_DATA )
45
+ deps_emcc += $(OUT ) /elf_list.js $(DOOM_DATA ) $(QUAKE_DATA ) $(TIMIDITY_DATA )
45
46
46
47
# check browser MAJOR version if supports TCO
47
48
CHROME_MAJOR :=
You can’t perform that action at this time.
0 commit comments