Relocate common tooling.
This commit is contained in:
8
Makefile
8
Makefile
@ -199,7 +199,7 @@ POSIX_BOOT = $(COMMON_PHASE1) \
|
|||||||
posix/sockets.fs posix/telnetd.fs posix/httpd.fs posix/web_interface.fs \
|
posix/sockets.fs posix/telnetd.fs posix/httpd.fs posix/web_interface.fs \
|
||||||
posix/autoboot.fs \
|
posix/autoboot.fs \
|
||||||
common/fini.fs
|
common/fini.fs
|
||||||
$(GEN)/posix_boot.h: common/source_to_string.js $(POSIX_BOOT) | $(GEN)
|
$(GEN)/posix_boot.h: tools/source_to_string.js $(POSIX_BOOT) | $(GEN)
|
||||||
$< boot $(VERSION) $(REVISION) $(POSIX_BOOT) >$@
|
$< boot $(VERSION) $(REVISION) $(POSIX_BOOT) >$@
|
||||||
|
|
||||||
WINDOWS_BOOT = $(COMMON_PHASE1) \
|
WINDOWS_BOOT = $(COMMON_PHASE1) \
|
||||||
@ -214,7 +214,7 @@ WINDOWS_BOOT = $(COMMON_PHASE1) \
|
|||||||
windows/graphics.fs \
|
windows/graphics.fs \
|
||||||
posix/autoboot.fs \
|
posix/autoboot.fs \
|
||||||
common/fini.fs
|
common/fini.fs
|
||||||
$(GEN)/windows_boot.h: common/source_to_string.js $(WINDOWS_BOOT) | $(GEN)
|
$(GEN)/windows_boot.h: tools/source_to_string.js $(WINDOWS_BOOT) | $(GEN)
|
||||||
$< -win boot $(VERSION) $(REVISION) $(WINDOWS_BOOT) >$@
|
$< -win boot $(VERSION) $(REVISION) $(WINDOWS_BOOT) >$@
|
||||||
|
|
||||||
ESP32_BOOT = $(COMMON_PHASE1) \
|
ESP32_BOOT = $(COMMON_PHASE1) \
|
||||||
@ -226,7 +226,7 @@ ESP32_BOOT = $(COMMON_PHASE1) \
|
|||||||
esp32/bterm.fs posix/telnetd.fs \
|
esp32/bterm.fs posix/telnetd.fs \
|
||||||
esp32/camera.fs esp32/camera_server.fs \
|
esp32/camera.fs esp32/camera_server.fs \
|
||||||
esp32/autoboot.fs common/fini.fs
|
esp32/autoboot.fs common/fini.fs
|
||||||
$(GEN)/esp32_boot.h: common/source_to_string.js $(ESP32_BOOT) | $(GEN)
|
$(GEN)/esp32_boot.h: tools/source_to_string.js $(ESP32_BOOT) | $(GEN)
|
||||||
$< boot $(VERSION) $(REVISION) $(ESP32_BOOT) >$@
|
$< boot $(VERSION) $(REVISION) $(ESP32_BOOT) >$@
|
||||||
|
|
||||||
$(GEN)/dump_web_opcodes: web/dump_web_opcodes.c common/opcodes.h | $(GEN)
|
$(GEN)/dump_web_opcodes: web/dump_web_opcodes.c common/opcodes.h | $(GEN)
|
||||||
@ -243,7 +243,7 @@ WEB_BOOT = $(COMMON_PHASE1) \
|
|||||||
$(COMMON_PHASE2) \
|
$(COMMON_PHASE2) \
|
||||||
posix/autoboot.fs \
|
posix/autoboot.fs \
|
||||||
common/fini.fs
|
common/fini.fs
|
||||||
$(GEN)/web_boot.js: common/source_to_string.js $(WEB_BOOT) | $(GEN)
|
$(GEN)/web_boot.js: tools/source_to_string.js $(WEB_BOOT) | $(GEN)
|
||||||
$< -web boot $(VERSION) $(REVISION) $(WEB_BOOT) >$@
|
$< -web boot $(VERSION) $(REVISION) $(WEB_BOOT) >$@
|
||||||
|
|
||||||
# ---- RESOURCES ----
|
# ---- RESOURCES ----
|
||||||
|
|||||||
@ -107,7 +107,7 @@ function create(name, opcode) {
|
|||||||
i32[i32[g_heap>>2]>>2] = name.length; // length
|
i32[i32[g_heap>>2]>>2] = name.length; // length
|
||||||
i32[g_heap>>2] += 4;
|
i32[g_heap>>2] += 4;
|
||||||
|
|
||||||
i32[i32[g_heap>>2]>>2] = i32[i32[g_current]>>2]>>2]; // link
|
i32[i32[g_heap>>2]>>2] = i32[i32[i32[g_current]>>2]>>2]; // link
|
||||||
i32[g_heap>>2] += 4;
|
i32[g_heap>>2] += 4;
|
||||||
|
|
||||||
i32[i32[g_heap>>2]>>2] = 0; // flags
|
i32[i32[g_heap>>2]>>2] = 0; // flags
|
||||||
|
|||||||
Reference in New Issue
Block a user