Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofono: New config to control wasm build #14

Merged
merged 2 commits into from
Jan 14, 2025
Merged
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
2 changes: 1 addition & 1 deletion dbus/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,6 @@ BIN := $(APPDIR)/staging/libtelephony.a
endif

WASM_INITIAL_MEMORY = 131072
WASM_BUILD = n
WASM_BUILD = both

include $(APPDIR)/Application.mk
2 changes: 1 addition & 1 deletion glib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ ifneq ($(NOEXPORTSRCS),)
BIN := $(APPDIR)/staging/libtelephony.a
endif

WASM_BUILD = y
WASM_BUILD = both

include $(APPDIR)/Application.mk
7 changes: 7 additions & 0 deletions ofono/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ config OFONO_PLUGIN_DIR
---help---
Directory for the loading plugins.

config OFONO_WASM
bool "Compile to Wasm"
default n
---help---
Compile ofono to Wasm module instead of builitn app,
only available if any wasm runtime eanbled.

config OFONO_DATA_LOG_OVER_MIWEAR
bool "support data log over miwear"
default n
Expand Down
4 changes: 3 additions & 1 deletion ofono/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ clean::

endif

ifneq ($(CONFIG_OFONO_WASM),)
WASM_INITIAL_MEMORY = 327680
WASM_BUILD = n
WASM_BUILD = y
endif

include $(APPDIR)/Application.mk
Loading